projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445ea4e
)
mac80211_hwsim: assign CAB queue properly on interface type change
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 18 Mar 2013 21:13:18 +0000
(22:13 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 18 Mar 2013 21:14:26 +0000
(22:14 +0100)
When an interface change type, the CAB queue must be reassigned,
do this in hwsim to avoid warnings/crashes.
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mac80211_hwsim.c
b/drivers/net/wireless/mac80211_hwsim.c
index 3466f1a8a8d3b91ccfa58f9d2c065d7376d71f91..0064d38276bf6a714d86e7c310f49f1ef91a5d35 100644
(file)
--- a/
drivers/net/wireless/mac80211_hwsim.c
+++ b/
drivers/net/wireless/mac80211_hwsim.c
@@
-964,6
+964,12
@@
static int mac80211_hwsim_change_interface(struct ieee80211_hw *hw,
newtype, vif->addr);
hwsim_check_magic(vif);
+ /*
+ * interface may change from non-AP to AP in
+ * which case this needs to be set up again
+ */
+ vif->cab_queue = 0;
+
return 0;
}