Skip to content
  • David S. Miller's avatar
    mac80211: Fix error introduced in netdev_mc_count() changes. · 228da6c2
    David S. Miller authored
    Commit 4cd24eaf
    
    
    ("net: use netdev_mc_count and netdev_mc_empty when appropriate")
    added this hunk to net/mac80211/iface.c:
    
     	__dev_addr_unsync(&local->mc_list, &local->mc_count,
    -			  &dev->mc_list, &dev->mc_count);
    +			  &dev->mc_list, dev->mc_count);
    
    which is definitely not correct, introduced a warning (reported
    by Stephen Rothwell):
    
    net/mac80211/iface.c: In function 'ieee80211_stop':
    net/mac80211/iface.c:416: warning: passing argument 4 of '__dev_addr_unsync' makes pointer from integer without a cast
    include/linux/netdevice.h:1967: note: expected 'int *' but argument is of type 'int'
    
    and is thus reverted here.
    
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    228da6c2