summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/801-mac80211_ap_isolate.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-26 23:07:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-04-26 23:07:44 +0000
commitca1accae4543d5df82a2021d6b01032f2ebb436c (patch)
tree2bea4b5a4d8b874af211106de326adf3e6e32884 /package/mac80211/patches/801-mac80211_ap_isolate.patch
parent497d2ec2d00fb8490dcbb46733615d29e0a920f8 (diff)
downloadmtk-20170518-ca1accae4543d5df82a2021d6b01032f2ebb436c.zip
mtk-20170518-ca1accae4543d5df82a2021d6b01032f2ebb436c.tar.gz
mtk-20170518-ca1accae4543d5df82a2021d6b01032f2ebb436c.tar.bz2
mac80211: add ap isolate support
SVN-Revision: 21178
Diffstat (limited to 'package/mac80211/patches/801-mac80211_ap_isolate.patch')
-rw-r--r--package/mac80211/patches/801-mac80211_ap_isolate.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/mac80211/patches/801-mac80211_ap_isolate.patch b/package/mac80211/patches/801-mac80211_ap_isolate.patch
new file mode 100644
index 0000000..9bcf102
--- /dev/null
+++ b/package/mac80211/patches/801-mac80211_ap_isolate.patch
@@ -0,0 +1,16 @@
+--- a/net/mac80211/cfg.c
++++ b/net/mac80211/cfg.c
+@@ -1115,6 +1115,13 @@ static int ieee80211_change_bss(struct w
+ 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;