diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-08-29 11:25:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-09-11 11:27:23 +0200 |
commit | b7600aae8a20ff267ae82ff3c51cef536cd6383d (patch) | |
tree | d32e74b02e3fa2af3d8f6d32f4e2980e78521747 /net/mac80211/iface.c | |
parent | 2ae5c9248e06dac2c2360be26b4e25f673238337 (diff) | |
download | lwn-b7600aae8a20ff267ae82ff3c51cef536cd6383d.tar.gz lwn-b7600aae8a20ff267ae82ff3c51cef536cd6383d.zip |
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>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 7e3acf670f0f..510f8aead4f9 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -2255,8 +2255,6 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local) WARN(local->open_count, "%s: open count remains %d\n", wiphy_name(local->hw.wiphy), local->open_count); - ieee80211_txq_teardown_flows(local); - mutex_lock(&local->iflist_mtx); list_splice_init(&local->interfaces, &unreg_list); mutex_unlock(&local->iflist_mtx); |