mac80211: implement ap isolation support
authorFelix Fietkau <nbd@openwrt.org>
Mon, 26 Apr 2010 23:23:36 +0000 (01:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Apr 2010 20:09:21 +0000 (16:09 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c

index 592f07d2ae5cab8c098230fe5edf7a47b36b1c75..e13fb3a622398907a01063d31ae8b59e581e6a0f 100644 (file)
@@ -1113,6 +1113,13 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
                changed |= BSS_CHANGED_BASIC_RATES;
        }
 
+       if (params->ap_isolate >= 0) {
+               if (params->ap_isolate)
+                       sdata->flags |= IEEE80211_SDATA_DONT_BRIDGE_PACKETS;
+               else
+                       sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS;
+       }
+
        ieee80211_bss_info_change_notify(sdata, changed);
 
        return 0;