Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7409536rwn; Tue, 13 Sep 2022 20:39:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mnX6k0tJW7+HErxOY4s2LsphmWLHTljHtVtimLQraspGMYvno6LU36hF9do2xrclUTmb+ X-Received: by 2002:a17:906:8448:b0:77b:e6d0:58a5 with SMTP id e8-20020a170906844800b0077be6d058a5mr12069225ejy.347.1663126763293; Tue, 13 Sep 2022 20:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663126763; cv=none; d=google.com; s=arc-20160816; b=NkqzWQOtp86HPUq71sc9qTHVyg0dsiif90I3owUTIJBJPQw5vyI/Lhcq8en49OhpcD LtPGpBW38Nr8oADGCz1k5okcgDPrRYT9UYE0kPd2s58NS6XWQmk5PkNiYarLglgmEKL7 vpvgJRi0jmQgNwZlrM57D5lUTSjO3L1VAmUCJZixqAc8h9SSEO2pP837b9tcHSie0Cfq P1YShREkTGUdwWOb0V8fLTXmkS0tV87CMzEG7/vB36RezEAFxU/OKL0M9zokDqH4dALW m2md7c03wFDaZg1UYC3sq++Y682dbNdgtiJs66o0R1vBBSdrlc5uO75q9WzmaF5iUYhW 1X0w== 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=CfYzkPcyjkjHfKUFamwRBY7OotfMPK9Sv043+sQXSp4=; b=Sx8CrwCIJN00FOWcurMh94dOy2RbCU2mxobLMA05VN5GDl0a4dV37Fm9uIvXZMV424 Bz4iwBGk2rW3+uIHx1+l6yYuej5Or4em77bGx19pRSKu3PfvioJZh8xK+UPpp6D412m0 0opPEt+NEuqIsWz3XRnF7Qul8xw5TZQ/R5eSDjZcaflsKTyLE7Byl+9IErZrJy+rgz1s J+Q8o58wzdOcMOJeRaIRhQ5QVjEIu2MJ/hFeZEJCCQZbyzgP0OJBNURkzRA4H2w5rO+5 M4+1QSjEQJpYoZ/AUyxDUqBFB8brnqT/crZQhkEvriVoCTFvJZdGOpWwg4/anu/5sm6h Ad9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=JG9TXFc4; 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 z15-20020a05640240cf00b00447eb58b921si12382028edb.38.2022.09.13.20.39.07; Tue, 13 Sep 2022 20:39:23 -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=JG9TXFc4; 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 S229723AbiINDgy (ORCPT + 64 others); Tue, 13 Sep 2022 23:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiINDgn (ORCPT ); Tue, 13 Sep 2022 23:36:43 -0400 Received: from smtp12.infineon.com (smtp12.infineon.com [217.10.52.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30F8D5FAFC for ; Tue, 13 Sep 2022 20:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1663126603; x=1694662603; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oFM2uhYPRUF0wpUQfUjmHmeBa7D8iHYyJsyi+cvFRTg=; b=JG9TXFc4VHjsFcqGy9ibQ5hnICum662mKfJRM2L+qlORlE1pzEetjZtT pQgv/AY2+JGqY0w0NgdEV6QAx6mu+XbEfVFADDkNpwngH4AI64kUSwkxQ rBOhCxmTd/KeQf2BKq2IZR2mrNbMyW90vfq9Xw/Lx15jRJPJfhWq0YQAN 8=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="317080323" X-IronPort-AV: E=Sophos;i="5.93,313,1654552800"; d="scan'208";a="317080323" Received: from unknown (HELO mucxv003.muc.infineon.com) ([172.23.11.20]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 05:36: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 mucxv003.muc.infineon.com (Postfix) with ESMTPS for ; Wed, 14 Sep 2022 05:36:41 +0200 (CEST) Received: from MUCSE804.infineon.com (172.23.29.30) 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.29; Wed, 14 Sep 2022 05:36:41 +0200 Received: from mailrelay-cypress4.infineon.com (172.23.18.56) by SMTP-MailRelay1.infineon.com (172.23.29.5) with Microsoft SMTP Server id 15.2.986.29; Wed, 14 Sep 2022 05:36:40 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="255707222" X-IronPort-AV: E=Sophos;i="5.93,313,1654552800"; d="scan'208";a="255707222" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress4.infineon.com with ESMTP; 14 Sep 2022 05:36:40 +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; Tue, 13 Sep 2022 22:36:39 -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 7BA70100243; Tue, 13 Sep 2022 22:36:39 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 791F6980794; Tue, 13 Sep 2022 22:36:39 -0500 (CDT) From: Ian Lin To: CC: , , , , , , Subject: [PATCH 5/5] brcmfmac: fix P2P device discovery failure Date: Tue, 13 Sep 2022 22:36:20 -0500 Message-ID: <20220914033620.12742-6-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220914033620.12742-1-ian.lin@infineon.com> References: <20220914033620.12742-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,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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: Chung-Hsien Hsu Commit 2de64ca7c9fa ("brcmfmac: p2p: Deal with set but unused variables") removed the setting of vif for p2p device discovery in brcmf_p2p_scan_prep(), causing the discovery failure. Add back the setting to brcmf_p2p_scan_prep() to fix this. Fixes: 2de64ca7c9fa ("brcmfmac: p2p: Deal with set but unused variables") Signed-off-by: Chung-Hsien Hsu Signed-off-by: Ian Lin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c index b3d706a2e68c..068f8fe0e0c4 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c @@ -912,6 +912,8 @@ int brcmf_p2p_scan_prep(struct wiphy *wiphy, if (err) return err; + vif = p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif; + /* override .run_escan() callback. */ cfg->escan_info.run = brcmf_p2p_run_escan; } -- 2.25.0