mirror of
https://github.com/hzyitc/openwrt-redmi-ax3000.git
synced 2025-12-25 04:40:32 +00:00
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:
|
||
|---|---|---|
| .. | ||
| files | ||
| patches | ||
| scripts | ||
| ath.mk | ||
| broadcom.mk | ||
| intel.mk | ||
| Makefile | ||
| marvell.mk | ||
| ralink.mk | ||
| realtek.mk | ||