mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-02 19:54:04 +02:00
08969144ad
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21178 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
662 B
Diff
24 lines
662 B
Diff
--- 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;
|
|
}
|
|
|