From ca1accae4543d5df82a2021d6b01032f2ebb436c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 26 Apr 2010 23:07:44 +0000 Subject: mac80211: add ap isolate support SVN-Revision: 21178 --- .../mac80211/patches/802-mac80211_cfg_fix.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/mac80211/patches/802-mac80211_cfg_fix.patch (limited to 'package/mac80211/patches/802-mac80211_cfg_fix.patch') diff --git a/package/mac80211/patches/802-mac80211_cfg_fix.patch b/package/mac80211/patches/802-mac80211_cfg_fix.patch new file mode 100644 index 0000000000..0ed0b6bd46 --- /dev/null +++ b/package/mac80211/patches/802-mac80211_cfg_fix.patch @@ -0,0 +1,23 @@ +--- a/net/mac80211/cfg.c ++++ b/net/mac80211/cfg.c +@@ -97,9 +97,6 @@ static int ieee80211_change_iface(struct + params->mesh_id_len, + params->mesh_id); + +- if (sdata->vif.type != NL80211_IFTYPE_MONITOR || !flags) +- return 0; +- + if (type == NL80211_IFTYPE_AP_VLAN && + params && params->use_4addr == 0) + rcu_assign_pointer(sdata->u.vlan.sta, NULL); +@@ -107,7 +104,9 @@ static int ieee80211_change_iface(struct + params && params->use_4addr >= 0) + sdata->u.mgd.use_4addr = params->use_4addr; + +- sdata->u.mntr_flags = *flags; ++ if (sdata->vif.type == NL80211_IFTYPE_MONITOR && flags) ++ sdata->u.mntr_flags = *flags; ++ + return 0; + } + -- cgit v1.2.3