]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wireless/airo.c
net: use netdev_mc_count and netdev_mc_empty when appropriate
[net-next-2.6.git] / drivers / net / wireless / airo.c
index ef6b78da370f809490a9ae0b418f1794348be1c9..c22a34c7639c362264309848d42eb9bca47dfb44 100644 (file)
@@ -2310,7 +2310,7 @@ static void airo_set_multicast_list(struct net_device *dev) {
                        airo_set_promisc(ai);
        }
 
-       if ((dev->flags&IFF_ALLMULTI)||dev->mc_count>0) {
+       if ((dev->flags&IFF_ALLMULTI) || !netdev_mc_empty(dev)) {
                /* Turn on multicast.  (Should be already setup...) */
        }
 }