diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-26 19:23:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-27 16:09:21 -0400 |
commit | 7b7b5e56d7bdfdd0eb5ea13e6c9613b16b8eac46 (patch) | |
tree | f0b5a17ac076f75fd90b784a3d7919f7a0b80515 /net/mac80211 | |
parent | fd8aaaf3519f3fd3c82594e90bc6808072b94d54 (diff) |
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')
-rw-r--r-- | net/mac80211/cfg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 592f07d2ae5..e13fb3a6223 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1113,6 +1113,13 @@ static int ieee80211_change_bss(struct wiphy *wiphy, | |||
1113 | changed |= BSS_CHANGED_BASIC_RATES; | 1113 | changed |= BSS_CHANGED_BASIC_RATES; |
1114 | } | 1114 | } |
1115 | 1115 | ||
1116 | if (params->ap_isolate >= 0) { | ||
1117 | if (params->ap_isolate) | ||
1118 | sdata->flags |= IEEE80211_SDATA_DONT_BRIDGE_PACKETS; | ||
1119 | else | ||
1120 | sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS; | ||
1121 | } | ||
1122 | |||
1116 | ieee80211_bss_info_change_notify(sdata, changed); | 1123 | ieee80211_bss_info_change_notify(sdata, changed); |
1117 | 1124 | ||
1118 | return 0; | 1125 | return 0; |