wifi: rtw88: Set default CQM config if not present
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 1 Apr 2024 03:30:19 +0000 (11:30 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 4 Apr 2024 07:48:02 +0000 (15:48 +0800)
commit2710c919dfb4464d022bb300c36331992b47a6d5
treec824e2b8d4ab23faabdf3a0bfc910bad111b5ad2
parent2ccb8e6ce8a46320a69d6355ee6f9012e0d1e42b
wifi: rtw88: Set default CQM config if not present

When wpa_supplicant is initiated by users and not by NetworkManager,
the CQM configuration might not be set. Without this setting, ICs
with connection quality monitor handled by firmware won't detect
connection loss. To fix this we prepare a default setting upon
associated at first, then update again if any is given later.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240401033019.9664-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/fw.h
drivers/net/wireless/realtek/rtw88/mac80211.c