From 42a0c86d1a112021875ed64b61adcbe83e1e94b0 Mon Sep 17 00:00:00 2001 From: gluker Date: Sun, 2 Apr 2023 06:41:44 +0300 Subject: [PATCH] Adopt patch for 5.x kernel warning dump --- os_dep/linux/ioctl_cfg80211.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 394217f..4a11178 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -1192,10 +1192,10 @@ check_bss: #endif if (check_fwstate(pmlmepriv, WIFI_MONITOR_STATE) != _TRUE) { - roam_info.links[0].bss = cfg80211_get_bss(pwdev->wiphy, roam_info.links[0].channel, - roam_info.links[0].bssid, pwdev->u.client.ssid, pwdev->u.client.ssid_len, - pwdev->conn_bss_type, IEEE80211_PRIVACY_ANY); - cfg80211_connect_bss(wdev_to_ndev(pwdev), cur_network->network.MacAddress, roam_info.links[0].bss + struct cfg80211_bss *bss; + bss = cfg80211_get_bss(pwdev->wiphy, NULL, cur_network->network.MacAddress, NULL, 0, + IEEE80211_BSS_TYPE_ANY, IEEE80211_PRIVACY_ANY); + cfg80211_connect_bss(wdev_to_ndev(pwdev), cur_network->network.MacAddress, bss , pmlmepriv->assoc_req + sizeof(struct rtw_ieee80211_hdr_3addr) + 2 , pmlmepriv->assoc_req_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 2 , pmlmepriv->assoc_rsp + sizeof(struct rtw_ieee80211_hdr_3addr) + 6