wifi: mac80211: fix TXQ error path and cleanup
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 Aug 2023 09:25:50 +0000 (11:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:23 +0000 (11:27 +0200)
commitb7600aae8a20ff267ae82ff3c51cef536cd6383d
treed32e74b02e3fa2af3d8f6d32f4e2980e78521747
parent2ae5c9248e06dac2c2360be26b4e25f673238337
wifi: mac80211: fix TXQ error path and cleanup

We currently call ieee80211_txq_teardown_flows() as part
of ieee80211_remove_interfaces(), but that's not really
right in case of HW registration failures, specifically
rate control. Call it separately to fix that issue.

Reported-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
net/mac80211/main.c