Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3897174rdb; Thu, 14 Sep 2023 06:13:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbtw8zTbKqHkw5aN7vDKnavHlzyaA4MZWGcPuCZJY0/VYCOttKsJ7Y2TrXo9XxkM+gF1yj X-Received: by 2002:a17:902:e846:b0:1c0:ad3c:c723 with SMTP id t6-20020a170902e84600b001c0ad3cc723mr6553558plg.10.1694697223106; Thu, 14 Sep 2023 06:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694697223; cv=none; d=google.com; s=arc-20160816; b=sP5JfRf1qNEGoTDrpTGgpFM5V3tGhvwkW1Y2J2CymIBqsUOqf7hjaDj4J91dIN8f47 fpvzSdofhTAhDqJE8SiKYixU3bf6PNn1dL6Ai8CmzWOwbVoq36E4vBAyQYhikXzZEp+H cJnyS7A00JULyc8iYOLAC2cr+FBH8phwui7QA6xMxWjYHg+NFRlE9OA1CKYt4nvCx7sL 9ewD4sFpMo9fXjRv8V3UAqRVBAQMMgEC9i0bqfuSyvKMOkN3MOxDK2FibxQdrKtJZUHI 9vDojVuDlC5uVfrQtR9Z2YarEGFqSlzB1VYuYycqHb3rlpuw/zG/s+54kg5vN88svfY/ DKsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LENaZ+N7qqVlnQ+MLQf6OQ27ElU6Qed1Gk4XOlWH3Z4=; fh=Uk+x2ok2SkraawYfl709wyKyFyIr/hM8KHrL5kNSjjM=; b=yYaeHRv3LFuAhOp626SPuW7uGLmbde75atZmUAvfAAO60B2ioz41jOZ+XGGWDmGsd0 JstvdCJUIOkCB+prjMsBBm3J8V4L+5qS7UljCh96kh2MJXPJpcM4q7p7d8QFWvrzkvZx oowGvi7FzXGJyaqY0xA5PBzi9ntdeYhNq4srKo924WmNnxqIiMHi2F2rMCmPEUq8qUoN +gDs/vpi/2ZYPmLneOIsDqEZS+knFLFoWmZn+EbiS5P0VCcBnh7qtHc5PmeeGEbbd1eB WQ2N4x8+0nkYjH+s6NMfjta1mfjM0efpty8hDBdF/djAEcISik6AHZzFgdAyXRkgMSSW HB5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MA1hNVVr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h15-20020a170902ac8f00b001bbd5fa7d66si1574898plr.164.2023.09.14.06.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MA1hNVVr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 092B282FAF01; Wed, 13 Sep 2023 18:53:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233530AbjINBxG (ORCPT + 57 others); Wed, 13 Sep 2023 21:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232970AbjINBxG (ORCPT ); Wed, 13 Sep 2023 21:53:06 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DA51BCB for ; Wed, 13 Sep 2023 18:53:02 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E1Hldl031579; Thu, 14 Sep 2023 01:52:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=LENaZ+N7qqVlnQ+MLQf6OQ27ElU6Qed1Gk4XOlWH3Z4=; b=MA1hNVVrjjc3IJWf/4YOWcIr68Y+caT5qMCCMs3SO5W0zWsEcTVC0YETgxeEH260gJx8 hnS2uELbEwLPwUpdPa3Hx85qOwL8T48gZoI6OQAkrrbk5zPLTiH5DfrY2AMyeAiZtTAE 9ziKuT5j7fRr55YGACIk0gC0L8RCwjCC4WK/37bJgfSc75MhdctSUA2b4JPhSt2wb1WY qHl2kaGHFomYaNaX5xqxwLe0S9GDDeGkD8Kl3gyj2FYq3w79cYuIhhk/7uYLS6aqWYhe RhcHMcQxCs9vWbwjAK0ROHB+RdfF2kbMvFCD+afO3JT7gvY2EXqJ+d84u62jPoOsD6qr kA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t2y7qbdh0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 01:52:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E1qwc6020855 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 01:52:58 GMT Received: from [10.111.183.186] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 13 Sep 2023 18:52:58 -0700 Message-ID: <6a519ccd-823b-4dd1-a3dd-32752dfeccd3@quicinc.com> Date: Wed, 13 Sep 2023 18:52:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath12k: enable IEEE80211_HW_SINGLE_SCAN_ON_ALL_BANDS for WCN7850 Content-Language: en-US To: Wen Gong , CC: , References: <20230913105507.17675-1-quic_wgong@quicinc.com> From: Jeff Johnson In-Reply-To: <20230913105507.17675-1-quic_wgong@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: CtwIWLXbTFJj4OhwRdEDZL7cRwNendWl X-Proofpoint-ORIG-GUID: CtwIWLXbTFJj4OhwRdEDZL7cRwNendWl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_19,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 clxscore=1015 spamscore=0 priorityscore=1501 mlxlogscore=896 phishscore=0 bulkscore=0 suspectscore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140014 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 18:53:04 -0700 (PDT) On 9/13/2023 3:55 AM, Wen Gong wrote: > Currently mac80211 will send 3 scan request for each scan of WCN7850, they > are 2.4 GHz/5 GHz/6 GHz band scan. Firmware of WCN7850 will cache the RNR > IE(Reduced Neighbor Report element) which exist in the beacon of 2.4 GHz/5 > GHz of the AP which is co-located with 6 GHz, and then use the cache to > scan in 6 GHz band scan if the 6 GHz scan is in the same scan with the 2.4 > GHz/5 GHz band, this will helpful to search more AP of 6 GHz. Also it will > decrease the time cost of scan because firmware will use dual-band scan > for the 2.4 GHz/5 GHz, it means the 2.4 GHz and 5 GHz scans are doing > simultaneously. > > Set the flag IEEE80211_HW_SINGLE_SCAN_ON_ALL_BANDS for WCN7850 since it > supports 2.4 GHz/5 GHz/6 GHz in a single wiphy/ieee80211_hw. > > This does not impact QCN9274, because it is not single_phy, so does not > have 2.4 GHz/5 GHz/6 GHz in the same wiphy, then it does not match the > condition and then IEEE80211_HW_SINGLE_SCAN_ON_ALL_BANDS will not set for > QCN9274. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Wen Gong Acked-by: Jeff Johnson > --- > drivers/net/wireless/ath/ath12k/mac.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c > index 0f2af2f14ef7..d4dc03dc8d11 100644 > --- a/drivers/net/wireless/ath/ath12k/mac.c > +++ b/drivers/net/wireless/ath/ath12k/mac.c > @@ -7232,6 +7232,11 @@ static int __ath12k_mac_register(struct ath12k *ar) > > ar->hw->wiphy->interface_modes = ab->hw_params->interface_modes; > > + if (ar->hw->wiphy->bands[NL80211_BAND_2GHZ] && > + ar->hw->wiphy->bands[NL80211_BAND_5GHZ] && > + ar->hw->wiphy->bands[NL80211_BAND_6GHZ]) > + ieee80211_hw_set(ar->hw, SINGLE_SCAN_ON_ALL_BANDS); > + > ieee80211_hw_set(ar->hw, SIGNAL_DBM); > ieee80211_hw_set(ar->hw, SUPPORTS_PS); > ieee80211_hw_set(ar->hw, SUPPORTS_DYNAMIC_PS); > > base-commit: 3f257461ab0ab19806bae2bfde4c3cd88dbf050e