]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rsi_91x_usb: do not pause rfkill polling when stopping mac80211
authorVille Nummela <ville.nummela@kempower.com>
Wed, 18 Mar 2026 08:19:12 +0000 (10:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 19 Mar 2026 08:07:16 +0000 (09:07 +0100)
commit777d8ba5aada960c666f810d5d820ab55ebb64c3
treefcbd734ae9ea526a48563cb27b4c77db1c92c519
parenteb092b188fcf96ef2c770ff086ebfc2a15b061d3
wifi: rsi_91x_usb: do not pause rfkill polling when stopping mac80211

Removing rsi_91x USB adapter could cause rtnetlink to lock up.
When rsi_mac80211_stop is called, wiphy_lock is locked. Call to
wiphy_rfkill_stop_polling would wait until the work queue has
finished, but because the work queue waits for wiphy_lock, that
would never happen.

Moving the call to rsi_disconnect avoids the lock up.

Signed-off-by: Ville Nummela <ville.nummela@kempower.com>
Link: https://patch.msgid.link/20260318081912.87744-1-ville.nummela@kempower.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/rsi/rsi_91x_mac80211.c
drivers/net/wireless/rsi/rsi_91x_usb.c
drivers/net/wireless/rsi/rsi_common.h