Commit 3eb92f6a authored by Johannes Berg's avatar Johannes Berg

mac80211_hwsim: assign CAB queue properly on interface type change

When an interface change type, the CAB queue must be reassigned,
do this in hwsim to avoid warnings/crashes.
Reported-by: default avatarJouni Malinen <>
Signed-off-by: default avatarJohannes Berg <>
parent 445ea4e8
......@@ -964,6 +964,12 @@ static int mac80211_hwsim_change_interface(struct ieee80211_hw *hw,
newtype, vif->addr);
* interface may change from non-AP to AP in
* which case this needs to be set up again
vif->cab_queue = 0;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment