openwrt/package/kernel/mac80211
Hauke Mehrtens c90e10b62e mac80211: Fix deadlock when configuring wifi
The nl80211_set_wiphy() function was changed between kernel 5.11 and
5.12 to take the rdev->wiphy lock which should be freed at the end
again. The 500-mac80211_configure_antenna_gain.patch added some code
which just returned in some cases without unlocking. This resulted in a
deadlock with brcmfmac.
This patch fixes this by also jumping to the out label in case we want
to leave the function.
This fixes a hanging system when brcmfmac is in use. I do not know why
we do not see this with other driver.

The kernel returns very useful debug details when setting these OpenWrt
configuration options:
CONFIG_KERNEL_DETECT_HUNG_TASK=y
CONFIG_KERNEL_PROVE_LOCKING=y

Fixes: FS#4122
Fixes: b96c2569ac ("mac80211: Update to version 5.12.19-1")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-11-13 19:09:22 +01:00
..
files mac80211: allow retry of wifi setup if an iw interface add command fails 2021-09-30 11:33:37 +02:00
patches mac80211: Fix deadlock when configuring wifi 2021-11-13 19:09:22 +01:00
scripts mac80211: replace backticks by $(...) 2020-05-13 19:01:23 +02:00
ath.mk mac80211: fix ATH_REG_DYNAMIC_USER_REG_HINTS 2021-05-23 15:11:38 +02:00
broadcom.mk treewide: fix spelling 'seperate' -> 'separate' 2021-02-28 23:59:21 +00:00
intel.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
Makefile mac80211: Update to version 5.15-rc6-1 2021-10-24 00:08:38 +02:00
marvell.mk kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
ralink.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
realtek.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00