Skip to content

Commit 3eb92f6

Browse files
committed
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: Jouni Malinen <j@w1.fi> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 445ea4e commit 3eb92f6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/net/wireless/mac80211_hwsim.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,12 @@ static int mac80211_hwsim_change_interface(struct ieee80211_hw *hw,
964964
newtype, vif->addr);
965965
hwsim_check_magic(vif);
966966

967+
/*
968+
* interface may change from non-AP to AP in
969+
* which case this needs to be set up again
970+
*/
971+
vif->cab_queue = 0;
972+
967973
return 0;
968974
}
969975

0 commit comments

Comments
 (0)