]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw88: Lock rtwdev->mutex before setting the LED
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Fri, 1 Aug 2025 20:08:24 +0000 (23:08 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 12 Aug 2025 08:10:19 +0000 (16:10 +0800)
commit26a8bf978ae9cd7688af1d08bc8760674d372e22
treeec0ebf5363cbbc8cbcfa6d60a0f9f367ec5ee4b1
parent58de1f91e033b1fface8d8948984583125f93736
wifi: rtw88: Lock rtwdev->mutex before setting the LED

Some users report that the LED blinking breaks AP mode somehow. Most
likely the LED code and the dynamic mechanism are trying to access the
hardware registers at the same time. Fix it by locking rtwdev->mutex
before setting the LED and unlocking it after.

Fixes: 4b6652bc6d8d ("wifi: rtw88: Add support for LED blinking")
Closes: https://github.com/lwfinger/rtw88/issues/305
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/ed69fa07-8678-4a40-af44-65e7b1862197@gmail.com
drivers/net/wireless/realtek/rtw88/led.c