]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: brcmfmac: Avoiding Connection delay
authorPrasanna Kerekoppa <prasanna.kerekoppa@cypress.com>
Mon, 24 Oct 2022 08:52:15 +0000 (03:52 -0500)
committerKalle Valo <kvalo@kernel.org>
Tue, 8 Nov 2022 07:38:24 +0000 (09:38 +0200)
Channel info passed by supplicant is not given to firmware. This causes
delay (about 3seconds) due to full scan. Supplicant already provides the
channel info for the specific SSID. channel_hint carries this channel
info for the connect call back.

Patch has been verified on 43012 and 43455.

Signed-off-by: Prasanna Kerekoppa <prasanna.kerekoppa@cypress.com>
Signed-off-by: Chung-Hsien Hsu <chung-hsien.hsu@infineon.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@infineon.com>
Signed-off-by: Ian Lin <ian.lin@infineon.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221024085215.27616-4-ian.lin@infineon.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

index 14cbc30a322989798c6abd5e7e683c9633591e2d..ae9507dec74ae094582506624032abc53441b661 100644 (file)
@@ -2315,6 +2315,12 @@ brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev,
                return -EOPNOTSUPP;
        }
 
+       if (sme->channel_hint)
+               chan = sme->channel_hint;
+
+       if (sme->bssid_hint)
+               sme->bssid = sme->bssid_hint;
+
        if (ifp->vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY].vif) {
                /* A normal (non P2P) connection request setup. */
                ie = NULL;