Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6493862rwi; Mon, 24 Oct 2022 02:06:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XoNyRHBeWwDfp8PIHzMXMswM3pSwse4PJg7rtOiaZFo0SFEo2GzSNwolVfFQt5N1sPEg5 X-Received: by 2002:a05:6402:2319:b0:45c:4231:de18 with SMTP id l25-20020a056402231900b0045c4231de18mr30605473eda.383.1666602403236; Mon, 24 Oct 2022 02:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666602403; cv=none; d=google.com; s=arc-20160816; b=BnV1Fb7XNoHxKBZn0qcz2FCiVlupEzHlfqr7akUFINCsfxTPKF++viLE9o9BGenTkK d4EeQwsBIsFpmkuO506U67ShnRLwnOgnZBQXvjTCzOE6hbJsMf335vZLc9ZxaYdfKQ3o +jchCys6evX0fVEBfJnv3sTm0VXZTw4KXilPIXPBAct7MhGjN5DrhH8nH+Zi6ARHLJie RnqppB03eGtjXHinHcl/CrdfsbR4rjZutsdrEIuV/F5oQBsf5t13IdpYFu5I+F2xS8u6 sws56HKl+scml2wNmY58xkFY6fph5Qmww7RrdRTyg0D9lganaaU95904NF365rxP85kc iyEg== 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=N0LpZiwlaK5RAz0LLPORnc3WWcO/5vh9ETYuiEqGWdw=; b=l/UIplHnQzvp2Q9xLDgVKkdSlEb76vvGvRfV7z815dnMwxhOINr+4C1Fijt1OcNyLB M5ApPXH2xzQ5vJ7ZrduJ4wQtQhIrck9NIytVAeeNNDFAAh0fdeI2s8iT+o/C2wia6QZb aioYd1pZk+XuwholGu0dSGH8X/zzzY5RTXnp+CJbFvt9J131bWSf2V3KcCnKwyRq/+23 AVnc3pYQTRKcwyTc71ZGTqphuJF674qM6RND1jVVikLQUAjOCm0L6h204lEVuzW+d2EL Lif6v6gSuLbTk964vJWxER3+oVBLu9d13lZIMOsfKuYYZg/l7asAAbL13/foa2j/qtxd X/Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=TrXnkqvc; 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 z3-20020a056402274300b0045968aa645dsi32675283edd.30.2022.10.24.02.06.24; Mon, 24 Oct 2022 02:06:43 -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=TrXnkqvc; 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 S230433AbiJXIww (ORCPT + 65 others); Mon, 24 Oct 2022 04:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbiJXIws (ORCPT ); Mon, 24 Oct 2022 04:52:48 -0400 Received: from smtp12.infineon.com (smtp12.infineon.com [217.10.52.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9389467CB1 for ; Mon, 24 Oct 2022 01:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1666601564; x=1698137564; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1P7U4J/slV1stj9O0lzUAI6AcH2QRxCsFGfKUmChIuA=; b=TrXnkqvcWWik5Jo73vgMazNAMPwWJf97nQJirDaO4sZZ3fE3p56cq6Mv Y52P82J+0YbEfQFELR+/i4WC9EU+9RioxyhGCGvHTPUkIcevntk2dE87Y EPiswU+HAs2B1/A++VVfFv8pcAKBCVL4W+kJVby/migvczoVE/Jv1OIQl Q=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="323260646" X-IronPort-AV: E=Sophos;i="5.95,207,1661810400"; d="scan'208";a="323260646" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 10:52:42 +0200 Received: from MUCSE803.infineon.com (MUCSE803.infineon.com [172.23.29.29]) (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 ; Mon, 24 Oct 2022 10:52:42 +0200 (CEST) Received: from MUCSE815.infineon.com (172.23.29.41) by MUCSE803.infineon.com (172.23.29.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.30; Mon, 24 Oct 2022 10:52:41 +0200 Received: from mailrelay-cypress4.infineon.com (172.23.18.56) by SMTP-MailRelay2.infineon.com (172.23.29.9) with Microsoft SMTP Server id 15.2.986.30; Mon, 24 Oct 2022 10:52:41 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="268146235" X-IronPort-AV: E=Sophos;i="5.95,207,1661810400"; d="scan'208";a="268146235" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress4.infineon.com with ESMTP; 24 Oct 2022 10:52:41 +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; Mon, 24 Oct 2022 03:52:38 -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 807521004E1; Mon, 24 Oct 2022 03:52:39 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 7E55C9807CC; Mon, 24 Oct 2022 03:52:39 -0500 (CDT) From: Ian Lin To: CC: , , , , , Subject: [PATCH v4 3/3] wifi: brcmfmac: Avoiding Connection delay Date: Mon, 24 Oct 2022 03:52:15 -0500 Message-ID: <20221024085215.27616-4-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20221024085215.27616-1-ian.lin@infineon.com> References: <20221024085215.27616-1-ian.lin@infineon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 14cbc30a3229..ae9507dec74a 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -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; -- 2.25.0