]> Pileus Git - ~andy/linux/blobdiff - drivers/net/b44.c
ath5k: Use high bitrates for ACK/CTS
[~andy/linux] / drivers / net / b44.c
index bcb6a029a0a8aaf12e7f66d436105e9a4c369c13..332c60356285688fe7807b0f692fcce9a9c153ff 100644 (file)
@@ -1684,9 +1684,11 @@ static int __b44_load_mcast(struct b44 *bp, struct net_device *dev)
        int i, num_ents;
 
        num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE);
-       mclist = dev->mc_list;
-       for (i = 0; mclist && i < num_ents; i++, mclist = mclist->next) {
-               __b44_cam_write(bp, mclist->dmi_addr, i + 1);
+       i = 0;
+       netdev_for_each_mc_addr(mclist, dev) {
+               if (i == num_ents)
+                       break;
+               __b44_cam_write(bp, mclist->dmi_addr, i++ + 1);
        }
        return i+1;
 }