FROMGIT: 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
(cherry picked from commit 2710c919dfb4464d022bb300c36331992b47a6d5
 git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main)

BUG=b:331449362
TEST=verify wifi.PMKSACaching

Change-Id: I66484bc317525b8437de2df67946f6b1a1b95569
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/5446948
Commit-Queue: Matthew Wang <matthewmwang@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Kaidong Wang <kaidong@chromium.org>
Reviewed-by: Matthew Wang <matthewmwang@chromium.org>
Tested-by: Matthew Wang <matthewmwang@chromium.org>
3 files changed