diff options
author | Sungjoon Park <sungjoon.park@broadcom.corp-partner.google.com> | 2022-10-24 12:36:40 +0900 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2023-02-16 01:14:08 +0000 |
commit | 5d9a0ccbb6571c4ddadfc1df9b6e5b3b7585bc97 (patch) | |
tree | 1df375a54e5698664922eb5fbb128501ca06a5ca | |
parent | 1ce7566fc7219fccd95b6c5877bff89f4e3913b5 (diff) | |
download | bcm4389-5d9a0ccbb6571c4ddadfc1df9b6e5b3b7585bc97.tar.gz |
bcmdhd: Reduce the P2P GC assoc scan time
The long P2P connection time is reported.
It shows that 140ms time gap is observed between Join triggered and AUTH complete time.
[13:01:35.915820][ 188.329545] wl_conn_debug_info: [p2p-wlan0-1] Connecting with ff:xx:xx:xx:xf:ff ssid_len:11 chan_cnt:1 eidx:1139
[13:01:36.056203][ 188.469926] MACEVENT: WLC_E_AUTH, MAC 9a:xx:xx:xx:x9:1a, Open System, SUCCESS
Since the BSSID hint is not used STA use the 80ms assoc scan dwell time with 4 nprobe.
If bssid information is delivered to FW when join is triggered, assoc scan is stopped when it received target GO probe response.
Due to this, Join to AUTH complete time is reduced from 140ms to 50ms.
[13:20:25.442709][ 156.889951] wl_conn_debug_info: [p2p-wlan0-0] Connecting with 9a:xx:xx:xx:x9:1a ssid_len:11 chan_cnt:1 eidx:1058
[13:20:25.489951][ 156.937190] MACEVENT: WLC_E_AUTH, MAC 9a:xx:xx:xx:x9:1a, Open System, SUCCESS
Bug: 249518141
Test: Verified with Pixel device
Change-Id: Ic20f480eb7ea43931a0b2052690649146f936950
Signed-off-by: Sungjoon Park <sungjoon.park@broadcom.corp-partner.google.com>
-rw-r--r-- | wl_cfg80211.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wl_cfg80211.c b/wl_cfg80211.c index c64d536..c26e437 100644 --- a/wl_cfg80211.c +++ b/wl_cfg80211.c @@ -6584,11 +6584,15 @@ wl_handle_assoc_hints(struct bcm_cfg80211 *cfg, struct net_device *dev, WL_DBG(("fw_ap_select:%d skip_hints:%d\n", fw_ap_select, skip_hints)); #endif /* WL_SKIP_CONNECT_HINTS */ + if (IS_P2P_GC(dev->ieee80211_ptr)) { + skip_hints = false; + } + /* Use bssid_hint if hints are allowed and if its unicast addr */ if (!skip_hints && sme->bssid_hint && !ETHER_ISBCAST(sme->bssid_hint)) { WL_INFORM_MEM(("bssid_hint "MACDBG" \n", MAC2STRDBG(sme->bssid_hint))); info->targeted_join = true; - if (cfg->join_iovar_ver) { + if (cfg->join_iovar_ver && IS_STA_IFACE(ndev_to_wdev(dev))) { /* Firmware supports bssid_hint feature */ info->bssid_hint = true; } |