Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp358650rwb; Mon, 26 Sep 2022 20:42:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GnFGtVhWJ985LTcy5DgBX+tE1mhhXAHeEh+hAXQzGr9H/ssDEglBoRQv7AS0+68p5HIr9 X-Received: by 2002:a05:6402:51d1:b0:451:e6a6:4919 with SMTP id r17-20020a05640251d100b00451e6a64919mr25782495edd.58.1664250153486; Mon, 26 Sep 2022 20:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664250153; cv=none; d=google.com; s=arc-20160816; b=bnPSkSPy5jHJxy85rCM5NIwqi+++2qliRppTcKhRQcMB1+1ZqUFcas3y22y7obOt1u USoV1Y3o6sEy/RQDWLqsUkNwOvqB3uB6lKMmF2yH6RJ+SjQQod+E2Hh2T4uQYGE7+mPM CYuAPT4jovN3sGFWx7Jevd8/C43uytFDP0KSVTON4IR4U1+w3G1BlIYMYsgz0jWX4LtY Uj1eB+Ot8UCd+JhtE/K1AfTk8Plzm8nIzfuaH55sc8Zo9irEROVRAUdlVLBoefKktc7a lrZCvm0rTAA/Nk4E96//rxY9DrmoOSPuRhZyEgIFfccL2n2jMwho4LnhH/J1tMnHf3m2 S4VQ== 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=F5wo0Sr9foIgQyB8qIISa+zBEKUbSPvyB6llNA7yIEJ2SgjxDL1JSdoiU4/O7joPSo yJXZK6/1ByqHnLqLo2SFzAD4WLVmUqecIkSEMuS9Gp10FLUE2MOWTV3uuM3lY/q/7kRk 1bPDQvD0yvNPBSv4gW2wVeOPzZUY/Q1Ii3FjpD5izkgEYLKCQ5JDuppiQwOasY1wF47g tl3lw8Kj3wLL1X8Hd8Kg+RlL8epjm3W8VaPccyIjQ8xakEzSRw66hMBl9xjsBpRO3jtv k3/3vJxrxt4ZOWCX9fTRgl3EzWIcuO0cC95LaSEM9ho+XQbAlfB3yXKb8O419jqc5OwL ziiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=GBF1aaKg; 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 f19-20020a056402355300b00456eaa4fb1fsi615048edd.223.2022.09.26.20.42.17; Mon, 26 Sep 2022 20:42:33 -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=GBF1aaKg; 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 S230240AbiI0DmB (ORCPT + 61 others); Mon, 26 Sep 2022 23:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiI0Dl5 (ORCPT ); Mon, 26 Sep 2022 23:41:57 -0400 Received: from smtp12.infineon.com (smtp12.infineon.com [217.10.52.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B08ACA0F for ; Mon, 26 Sep 2022 20:41: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=1664250114; x=1695786114; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oFM2uhYPRUF0wpUQfUjmHmeBa7D8iHYyJsyi+cvFRTg=; b=GBF1aaKgp4BE85gKgaOqMMxKyH/ORzjNjCiHGU3jY2qOv1LPzCx0Ljoc c5GumFiv9TBBtlskIuTcXG/O7+OG7TRcf9Rabth5DYRsK6qqCweo4D1VF 27oRTEsY6L2zAaAJMI6kp9DV3Y+/47C0WFOhZgb+7pft9g4Z6jPNzQqqI U=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="319072544" X-IronPort-AV: E=Sophos;i="5.93,348,1654552800"; d="scan'208";a="319072544" Received: from unknown (HELO mucxv002.muc.infineon.com) ([172.23.11.17]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 05:41:53 +0200 Received: from MUCSE812.infineon.com (MUCSE812.infineon.com [172.23.29.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv002.muc.infineon.com (Postfix) with ESMTPS for ; Tue, 27 Sep 2022 05:41:52 +0200 (CEST) Received: from MUCSE804.infineon.com (172.23.29.30) by MUCSE812.infineon.com (172.23.29.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 27 Sep 2022 05:41:52 +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; Tue, 27 Sep 2022 05:41:51 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="260700533" X-IronPort-AV: E=Sophos;i="5.93,348,1654552800"; d="scan'208";a="260700533" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress4.infineon.com with ESMTP; 27 Sep 2022 05:41:51 +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, 26 Sep 2022 22:41:49 -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 3EB1C1004E1; Mon, 26 Sep 2022 22:41:50 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 39B719807FB; Mon, 26 Sep 2022 22:41:50 -0500 (CDT) From: Ian Lin To: CC: , , , , , , Subject: [PATCH v3 5/5] brcmfmac: fix P2P device discovery failure Date: Mon, 26 Sep 2022 22:41:38 -0500 Message-ID: <20220927034138.20463-6-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220927034138.20463-1-ian.lin@infineon.com> References: <20220927034138.20463-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: 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