wifi: rtw89: sar: do not assert wiphy lock held until probing is done
authorFedor Pchelkin <pchelkin@ispras.ru>
Wed, 4 Jun 2025 16:13:33 +0000 (19:13 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 10 Jun 2025 01:42:35 +0000 (09:42 +0800)
commitdad7aafa5216e307b357b801668451a3b8945810
tree38dcf8d9028d0560eba70c1fbb305cb2b56e543e
parent6fe21445f7e801de5527d420f8e25e97b0cdd7e2
wifi: rtw89: sar: do not assert wiphy lock held until probing is done

rtw89_sar_set_src() may be called at driver early init phase when
applying SAR configuration via ACPI. wiphy lock is not held there.

Since the assertion was initially added for rtw89_apply_sar_common() call
path and may be helpful for other places in future changes, keep it but
move it under RTW89_FLAG_PROBE_DONE test.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 88ca3107d2ce ("wifi: rtw89: sar: add skeleton for SAR configuration via ACPI")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250604161339.119954-2-pchelkin@ispras.ru
drivers/net/wireless/realtek/rtw89/sar.c