Commit c81c1fd4 authored by Prasanna Kerekoppa's avatar Prasanna Kerekoppa Committed by Kalle Valo

wifi: brcmfmac: Avoiding Connection delay

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: default avatarPrasanna Kerekoppa <prasanna.kerekoppa@cypress.com>
Signed-off-by: default avatarChung-Hsien Hsu <chung-hsien.hsu@infineon.com>
Signed-off-by: default avatarChi-hsien Lin <chi-hsien.lin@infineon.com>
Signed-off-by: default avatarIan Lin <ian.lin@infineon.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221024085215.27616-4-ian.lin@infineon.com
parent 52617bee
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment