]> Pileus Git - ~andy/linux/blobdiff - drivers/net/sc92031.c
ath5k: Use high bitrates for ACK/CTS
[~andy/linux] / drivers / net / sc92031.c
index fd8cb506a2bb76437aa88259347e4bf11615cea3..d87c4787fffaccd37693ca4fae2ebd09609e2640 100644 (file)
@@ -429,13 +429,13 @@ static void _sc92031_set_mar(struct net_device *dev)
        u32 mar0 = 0, mar1 = 0;
 
        if ((dev->flags & IFF_PROMISC) ||
-           dev->mc_count > multicast_filter_limit ||
+           netdev_mc_count(dev) > multicast_filter_limit ||
            (dev->flags & IFF_ALLMULTI))
                mar0 = mar1 = 0xffffffff;
        else if (dev->flags & IFF_MULTICAST) {
                struct dev_mc_list *mc_list;
 
-               for (mc_list = dev->mc_list; mc_list; mc_list = mc_list->next) {
+               netdev_for_each_mc_addr(mc_list, dev) {
                        u32 crc;
                        unsigned bit = 0;