mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From dc52908e2202056876d5bb2b87a9f8ca58248fdc Mon Sep 17 00:00:00 2001
|
|
From: Prasanna Kerekoppa <prasanna.kerekoppa@cypress.com>
|
|
Date: Wed, 27 Jan 2021 14:48:29 -0800
|
|
Subject: [PATCH 070/179] 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: 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>
|
|
---
|
|
.../net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
index c63ea0e4c249..40dac929b91e 100644
|
|
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
@@ -2264,6 +2264,14 @@ 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;
|
|
--
|
|
2.17.1
|
|
|