Commit f88e6d33 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

staging: ks7010: really iterate over multicast addresses

The loop variable was defined but not really used. Fix this.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 564efd79
...@@ -2105,7 +2105,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv) ...@@ -2105,7 +2105,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv)
struct netdev_hw_addr *ha; struct netdev_hw_addr *ha;
char set_address[NIC_MAX_MCAST_LIST*ETH_ALEN]; char set_address[NIC_MAX_MCAST_LIST*ETH_ALEN];
unsigned long filter_type; unsigned long filter_type;
int i; int i = 0;
DPRINTK(3,"\n"); DPRINTK(3,"\n");
...@@ -2128,6 +2128,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv) ...@@ -2128,6 +2128,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv)
mc_count = netdev_mc_count(dev); mc_count = netdev_mc_count(dev);
netdev_for_each_mc_addr(ha, dev) { netdev_for_each_mc_addr(ha, dev) {
memcpy(&set_address[i*ETH_ALEN], ha->addr, ETH_ALEN); memcpy(&set_address[i*ETH_ALEN], ha->addr, ETH_ALEN);
i++;
} }
priv->sme_i.sme_flag &= ~SME_MULTICAST; priv->sme_i.sme_flag &= ~SME_MULTICAST;
hostif_mib_set_request(priv, LOCAL_MULTICAST_ADDRESS, hostif_mib_set_request(priv, LOCAL_MULTICAST_ADDRESS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment