Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp578319rwb; Thu, 22 Sep 2022 03:53:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qYFtqLxM6z0tJyd0XkrPqvsSvEO8R/UJZOgttDCQu33h6jmo3rcaHxqrNUuPaKdT6bmkA X-Received: by 2002:a05:6a00:1a49:b0:528:6ea0:14e2 with SMTP id h9-20020a056a001a4900b005286ea014e2mr2981806pfv.22.1663843988597; Thu, 22 Sep 2022 03:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663843988; cv=none; d=google.com; s=arc-20160816; b=Mgb6VYK2ZOHyaGA0z+npmBUB1iQ6RfZCeCOz2Q6+zuYE1HgnG8GXyQvLubSFiiZCv3 Ry9JovfFnnZDKaBBQkDSwHANeBX+zYoyXiOe8/UdtwZn2v2hbE8cpk1fnz6aNQcL8z8d zbFlqkr5gSW4FRrq+F4jX2X3AS4ThhUlwtMMdKMbvgeFbtT9i8fqLsOaL3hgXRIZLnPn n7nrHMVYtqM2k2ncDvt47EOp+9OGoEXqC0zrg6CycBaLVCGFXd0/JBaInu+p7CIRm8E/ 8ohJVa+YXCN4KzeW9kmuSd8wR4D/CodkiCw9pP9YRBI4pqVappJ3ak2I4nC5Wr/Htf6N BAmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :mailrelay-external-outbound:dkim-signature; bh=Vs4J/JDOR4pOZ0KQhPDGX+QZhV3hnbasR4swV/QtHhA=; b=iVKQW2dpzuplyjRk8dpLAnVxECX6kUDOFrekL/1ouA8WZCTl68DVjdfScVUbaVPY4s I8B6jBdlRsQB4mf4BLnGd9wMvmpktpzkTLWSLtb1iku4vq4YeoZBWbz632wa006+UlMv Y8aQgrT9lZPaj5lgpzSnGaNee0fYzfsTVscNu2pMjQW+JblkkTA3F+BZJulgXMsDMvg9 75wCuG5W/JMe78K8aGohZqd1gLSOcDtNIiptzl9MCJ/6IvKxAeH4jA2o8oVtCoWvVCmi 9tXKyiFsRdpUp9JzULloneMIvr0JicqMmP7FQmnzireRfccraaWIXH9S4TVHVaM91T7G sfjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=YVcuqHQ4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71-20020a63884a000000b0041bfb11f138si5664212pgd.442.2022.09.22.03.52.59; Thu, 22 Sep 2022 03:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=YVcuqHQ4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbiIVKmz (ORCPT + 63 others); Thu, 22 Sep 2022 06:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231164AbiIVKmy (ORCPT ); Thu, 22 Sep 2022 06:42:54 -0400 Received: from smtp3.infineon.com (smtp3.infineon.com [217.10.52.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1734AA358 for ; Thu, 22 Sep 2022 03:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1663843374; x=1695379374; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jy+/KODxjhVI+UhWKDzhcPfPBaz/uj89gZ0uiEjsmVg=; b=YVcuqHQ4c2VLFOul2E6j9vaw9RjuRXAbdTUAC5O8/FaEb5vMRxgZ/fFQ DPEb0Vu1YA1K2xBvZb6RTXeCxEAj8xKcR/99EfYOZBpCU9QPctsfKRZM9 +2iTO3Rt2JEOY3AvuWhljRlqXFmZQjoPZDWk3qiSLq+GI3zTaWwKx9N3S U=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="1444175" X-IronPort-AV: E=Sophos;i="5.93,335,1654552800"; d="scan'208";a="1444175" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp2.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 12:42:51 +0200 Received: from MUCSE819.infineon.com (MUCSE819.infineon.com [172.23.29.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv001.muc.infineon.com (Postfix) with ESMTPS for ; Thu, 22 Sep 2022 12:42:50 +0200 (CEST) Received: from MUCSE815.infineon.com (172.23.29.41) by MUCSE819.infineon.com (172.23.29.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 22 Sep 2022 12:42:49 +0200 Received: from mailrelay-cypress3.infineon.com (172.23.18.46) by SMTP-MailRelay2.infineon.com (172.23.29.9) with Microsoft SMTP Server id 15.2.986.29; Thu, 22 Sep 2022 12:42:49 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="262244521" X-IronPort-AV: E=Sophos;i="5.93,335,1654552800"; d="scan'208";a="262244521" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress3.infineon.com with ESMTP; 22 Sep 2022 12:42:48 +0200 Received: from inf2.aus.cypress.com (10.248.80.6) by BIZ-EXHT102.spansion.com (10.248.30.8) with Microsoft SMTP Server id 14.3.498.0; Thu, 22 Sep 2022 05:42:48 -0500 Received: from iot-wlan-dev-u03.aus.cypress.com (iot-wlan-dev-u03 [10.248.81.193]) by inf2.aus.cypress.com (Postfix) with ESMTP id 8D36E1004E1; Thu, 22 Sep 2022 05:42:47 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 8A6E49807D1; Thu, 22 Sep 2022 05:42:47 -0500 (CDT) From: Ian Lin To: CC: , , , , , , Subject: [PATCH v2 3/5] brcmfmac: Avoiding Connection delay Date: Thu, 22 Sep 2022 05:42:27 -0500 Message-ID: <20220922104229.12119-4-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220922104229.12119-1-ian.lin@infineon.com> References: <20220922104229.12119-1-ian.lin@infineon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Prasanna Kerekoppa 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 Signed-off-by: Chung-Hsien Hsu Signed-off-by: Chi-hsien Lin Signed-off-by: Ian Lin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 182b61aa346e..6c37da42e61b 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -2049,6 +2049,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; -- 2.25.0