]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: enhance connection stability when triggering beacon loss
authorDian-Syuan Yang <dian_syuan0116@realtek.com>
Mon, 29 Dec 2025 03:09:26 +0000 (11:09 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 31 Dec 2025 08:27:04 +0000 (16:27 +0800)
If the driver supports ack status reports of TX frames, mac80211 allows it
to detect AP if it's alive and determine whether the client can maintain
the connection by sending null-data. Therefore, refine the flow to let
driver inform mac80211 to enable beacon loss work to track AP's status
upon receiving beacon loss event.

Signed-off-by: Dian-Syuan Yang <dian_syuan0116@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251229030926.27004-13-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c

index 91854ae9a310b018c8608251039e9627c0fbbb3d..1375ab324a8b0ef65431f09ccd384394bf7609df 100644 (file)
@@ -5253,10 +5253,10 @@ rtw89_mac_bcn_fltr_rpt(struct rtw89_dev *rtwdev, struct rtw89_vif_link *rtwvif_l
                        if (start_detect)
                                return;
 
-                       ieee80211_connection_loss(vif);
-               } else {
-                       rtw89_fw_h2c_set_bcn_fltr_cfg(rtwdev, rtwvif_link, true);
+                       ieee80211_beacon_loss(vif);
                }
+
+               rtw89_fw_h2c_set_bcn_fltr_cfg(rtwdev, rtwvif_link, true);
                return;
        case RTW89_BCN_FLTR_NOTIFY:
                nl_event = NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH;