diff options
Diffstat (limited to 'drivers/net/sis900.c')
-rw-r--r-- | drivers/net/sis900.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index bc7ff411aad5..6293592635be 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -2298,12 +2298,14 @@ static void set_rx_mode(struct net_device *net_dev) | |||
2298 | /* Accept Broadcast packet, destination address matchs our | 2298 | /* Accept Broadcast packet, destination address matchs our |
2299 | * MAC address, use Receive Filter to reject unwanted MCAST | 2299 | * MAC address, use Receive Filter to reject unwanted MCAST |
2300 | * packets */ | 2300 | * packets */ |
2301 | struct dev_mc_list *mclist; | 2301 | struct netdev_hw_addr *ha; |
2302 | rx_mode = RFAAB; | 2302 | rx_mode = RFAAB; |
2303 | 2303 | ||
2304 | netdev_for_each_mc_addr(mclist, net_dev) { | 2304 | netdev_for_each_mc_addr(ha, net_dev) { |
2305 | unsigned int bit_nr = | 2305 | unsigned int bit_nr; |
2306 | sis900_mcast_bitnr(mclist->dmi_addr, sis_priv->chipset_rev); | 2306 | |
2307 | bit_nr = sis900_mcast_bitnr(ha->addr, | ||
2308 | sis_priv->chipset_rev); | ||
2307 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); | 2309 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); |
2308 | } | 2310 | } |
2309 | } | 2311 | } |