]> Pileus Git - ~andy/linux/blobdiff - drivers/net/sb1250-mac.c
ath5k: Use high bitrates for ACK/CTS
[~andy/linux] / drivers / net / sb1250-mac.c
index 564d4d7f855b163c3e937925e3e49a7e335c293c..9944e5d662c0fff7d975cce45bb708301512aa67 100644 (file)
@@ -2161,13 +2161,13 @@ static void sbmac_setmulti(struct sbmac_softc *sc)
         * XXX if the table overflows */
 
        idx = 1;                /* skip station address */
-       mclist = dev->mc_list;
-       while (mclist && (idx < MAC_ADDR_COUNT)) {
+       netdev_for_each_mc_addr(mclist, dev) {
+               if (idx == MAC_ADDR_COUNT)
+                       break;
                reg = sbmac_addr2reg(mclist->dmi_addr);
                port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t));
                __raw_writeq(reg, port);
                idx++;
-               mclist = mclist->next;
        }
 
        /*