summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorFelix Fietkau2010-04-27 01:23:36 +0200
committerJohn W. Linville2010-04-27 22:09:21 +0200
commit7b7b5e56d7bdfdd0eb5ea13e6c9613b16b8eac46 (patch)
treef0b5a17ac076f75fd90b784a3d7919f7a0b80515 /net/mac80211/cfg.c
parentcfg80211: add ap isolation support (diff)
downloadkernel-qcow2-linux-7b7b5e56d7bdfdd0eb5ea13e6c9613b16b8eac46.tar.gz
kernel-qcow2-linux-7b7b5e56d7bdfdd0eb5ea13e6c9613b16b8eac46.tar.xz
kernel-qcow2-linux-7b7b5e56d7bdfdd0eb5ea13e6c9613b16b8eac46.zip
mac80211: implement ap isolation support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 592f07d2ae5c..e13fb3a62239 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -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;