Merge tag 'mac80211-next-for-davem-2016-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says: ==================== Among various cleanups and improvements, we have the following: * client FILS authentication support in mac80211 (Jouni) * AP/VLAN multicast improvements (Michael Braun) * config/advertising support for differing beacon intervals on multiple virtual interfaces (Purushottam Kushwaha, myself) * deprecate the old WDS mode for cfg80211-based drivers, the mode is hardly usable since it doesn't support any "modern" features like WPA encryption (2003), HT (2009) or VHT (2014), I'm not even sure WEP (introduced in 1997) could be done. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1998,3 +1998,19 @@ void ieee80211_iface_exit(void)
|
||||
{
|
||||
unregister_netdevice_notifier(&mac80211_netdev_notifier);
|
||||
}
|
||||
|
||||
void ieee80211_vif_inc_num_mcast(struct ieee80211_sub_if_data *sdata)
|
||||
{
|
||||
if (sdata->vif.type == NL80211_IFTYPE_AP)
|
||||
atomic_inc(&sdata->u.ap.num_mcast_sta);
|
||||
else if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
|
||||
atomic_inc(&sdata->u.vlan.num_mcast_sta);
|
||||
}
|
||||
|
||||
void ieee80211_vif_dec_num_mcast(struct ieee80211_sub_if_data *sdata)
|
||||
{
|
||||
if (sdata->vif.type == NL80211_IFTYPE_AP)
|
||||
atomic_dec(&sdata->u.ap.num_mcast_sta);
|
||||
else if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
|
||||
atomic_dec(&sdata->u.vlan.num_mcast_sta);
|
||||
}
|
||||
|
Reference in New Issue
Block a user