mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
wifi: rtw89: fix unable to receive probe responses under MLO connection
During MLO connections, A1 of the probe responses we received are in link address, these frames will then be dropped by mac80211 due to not matching the MLD address in ieee80211_scan_accept_presp(). Fix this by using MLD address to scan when not using random MAC address. Signed-off-by: Po-Hao Huang <phhuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260114013950.19704-13-pkshih@realtek.com
This commit is contained in:
parent
76bada91a4
commit
6f6d7a325f
|
|
@ -8779,6 +8779,7 @@ int rtw89_hw_scan_start(struct rtw89_dev *rtwdev,
|
|||
struct cfg80211_scan_request *req = &scan_req->req;
|
||||
const struct rtw89_chan *chan = rtw89_chan_get(rtwdev,
|
||||
rtwvif_link->chanctx_idx);
|
||||
struct ieee80211_vif *vif = rtwvif_link_to_vif(rtwvif_link);
|
||||
struct rtw89_vif *rtwvif = rtwvif_link->rtwvif;
|
||||
struct rtw89_chanctx_pause_parm pause_parm = {
|
||||
.rsn = RTW89_CHANCTX_PAUSE_REASON_HW_SCAN,
|
||||
|
|
@ -8807,6 +8808,8 @@ int rtw89_hw_scan_start(struct rtw89_dev *rtwdev,
|
|||
if (req->flags & NL80211_SCAN_FLAG_RANDOM_ADDR)
|
||||
get_random_mask_addr(mac_addr, req->mac_addr,
|
||||
req->mac_addr_mask);
|
||||
else if (ieee80211_vif_is_mld(vif))
|
||||
ether_addr_copy(mac_addr, vif->addr);
|
||||
else
|
||||
ether_addr_copy(mac_addr, rtwvif_link->mac_addr);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user