linux/drivers/staging/rtl8723bs
Johannes Berg 81f153faac staging: rtl8723bs: fix wireless regulatory API misuse
This code ends up calling wiphy_apply_custom_regulatory(), for which
we document that it should be called before wiphy_register(). This
driver doesn't do that, but calls it from ndo_open() with the RTNL
held, which caused deadlocks.

Since the driver just registers static regdomain data and then the
notifier applies the channel changes if any, there's no reason for
it to call this in ndo_open(), move it earlier to fix the deadlock.

Reported-and-tested-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 51d62f2f2c ("cfg80211: Save the regulatory domain with a lock")
Link: https://lore.kernel.org/r/20210126115409.d5fd6f8fe042.Ib5823a6feb2e2aa01ca1a565d2505367f38ad246@changeid
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-01-26 12:21:42 +01:00
..
core staging: rtl8723bs: replace EID_EXTCapability 2020-12-08 09:55:51 +01:00
hal staging: rtl8723bs: replace _EXT_SUPPORTEDRATES_IE_ 2020-12-08 09:55:51 +01:00
include staging: rtl8723bs: fix wireless regulatory API misuse 2021-01-26 12:21:42 +01:00
os_dep staging: rtl8723bs: fix wireless regulatory API misuse 2021-01-26 12:21:42 +01:00
Kconfig staging: rtl8723bs: use help instead of ---help--- in Kconfig 2019-05-20 10:49:08 +02:00
Makefile staging: rtl8723bs: Remove debugging information exposed via procfs 2019-08-14 13:20:12 +02:00
TODO staging: rtl8723bs: Remove myself from CC: 2019-06-20 14:32:07 +02:00