summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/801-mac80211_ap_isolate.patch
blob: 9bcf1029dc3df8c666a898fc59c4e9ecac84c2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;