Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1684504rbb; Mon, 26 Feb 2024 19:17:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNsIFf+bwKfaOkFr9nr8rqQpovilULpokDLYzs5VmM5c3EHwK8Akh5jii/GCPeYf+4wTItjBsiNWwlghWI9n3FJVmFVGMoe4pP5cvxDw== X-Google-Smtp-Source: AGHT+IGYmDEvxNP5El6uwgjFBh0loLGbhMZkce5yiWKeqebWDW8TvqptnmFvvCTaU2gvGQztLBc/ X-Received: by 2002:aca:2410:0:b0:3c1:aad0:901d with SMTP id n16-20020aca2410000000b003c1aad0901dmr839615oic.20.1709003834516; Mon, 26 Feb 2024 19:17:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709003834; cv=pass; d=google.com; s=arc-20160816; b=obFSXnj9bRi0WUYQfZHA9YZGKjINTcqGFYM74Whq173IPaWYX5/rkI7IOPYcbFxS1N Hqk9SDf4/SxiIY78xAyok4Lkwl6zlEZWl0ZnttIEpPYGKpyj7o8p7EJ70b986LrtkPAQ m6YJP+kXis0Mbgnyc3ecuVMIyteHO9SvSgNumZk4jDJVC3zEsz5Bn1cJAuYg1oT4BqIi 2aSfZO1e+RW7bHvpwRyPE7CAOrTmUUWVGXauyMevABGoOX3vuKMg691GtlwSFGLZ6gUf kShMLKdJvssBVL0is0THLwGSU4NdTAEOGozg/f+DJy8NuajS2kKOF3nMTFHRdSg6Zm5p jcoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=l1EYml9I8uUX68qopRdWwypN4YJkvfIiTuFVjh4+3xw=; fh=XdpUKC74Ah6ATeqK7XdX59k3j0Qa+tpZLxpDaXs6KQA=; b=ArCnwakzS51KOdUKW4Tv5vJ6Ims09tqmkLIAk69gRRNg8YRgaNa1lqUC5RTgSqc3D3 PmIvwlalWJcVxefze4JWzd5vSGDTxyZPR5uk4V873moQXEEjkr6EqNYSj15u80O0sMAu zIHLPPCbq3ot3uJcziL7y+Oyg97AvoIi68WISdOz0lCi2jmV3ocpAegiwzipLbpGRGsz HHhwDBXoTNKFinbTPXneT3MNtL+5sFQSYXldC2wlbIa8s5h4xkEvxJ/+/vtfPeIbpEll f7o0rv60HtqkRb1DO+oEcKcGdyBVGSXqz+jte8OdCvG4Aoefj028MINb7FgltM9o4kjZ 7Ovg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ojL0OXoD; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4043-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e7-20020a056a001a8700b006d3c35096dcsi4728586pfv.320.2024.02.26.19.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:17:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4043-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ojL0OXoD; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4043-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 70A0C287BE4 for ; Tue, 27 Feb 2024 03:15:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 112F82032A; Tue, 27 Feb 2024 03:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ojL0OXoD" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAE0E1F947 for ; Tue, 27 Feb 2024 03:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709003727; cv=none; b=CeHUDC8z6XOT2J1dd5WjFdBfrC97xDRPzmYq9RJgsg6+LSAzL9W1W9sueNPo+6l+arGc2y4i/05iSUDooiaUYgJTs+2/C960HYRGQwrI2uEJFxHHOmWcPZdryg/4jTY9MHme6vnM/Bhb3ZEDtJ+A8Q1tghQ9897DOfhUl2BYgtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709003727; c=relaxed/simple; bh=TaW9M9CSzMyedSzdyFOZQexm/0Ry9Cdcut+mAyOpbIM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=cx4nAXvvue/jzsEKDSjPWcJASfM58DS1F4f4dUIayMpMEl07fbV4nfLc7bqIrUmEWsG0fMO1AjIFbG71t+rkOHsFPatt3xAFLb7cF3WoKSCnphCfRVYpUAMwGvJfN/k8D993S41E7vwwHSqePUzwvrxY5bY14TMBGpAcMG6IdaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ojL0OXoD; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41R2plhV016968; Tue, 27 Feb 2024 03:15:21 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=l1EYml9I8uUX68qopRdWwypN4YJkvfIiTuFVjh4+3xw=; b=oj L0OXoDrT3XzHOgHaem1IKCwcpNmX3KxQsadQT6C4Zh5B9CZWOjH7Us2CWf+w4IkU 78G/SwXAVY9k9/3w1T/Osnb8KwKVUo9VtJwbVDpGXYvaya8eQpEkBXIFHrifjgaf bo3IF1/sJb61H1n50sff0OyRociEhIyvThgZCRWoqZHJPrW16COhbZIrqa/2SXZl i9mhvn9V908AJK01aQeQQC9XTkt9/Q5jYnG43DDAb7DrPRXz/jhPbJrRBe8YIH1C Ecf+kbI25ZvyVNLGIJSc8mxvxhEnjBkOX8lh63H22rqdUNG55EuA5ixMZShen33d WQhq+X+mvQ4OgpL580Ag== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wh7ar01at-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 03:15:20 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41R3FJTi002337 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 03:15:19 GMT Received: from [10.253.12.70] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 26 Feb 2024 19:15:18 -0800 Message-ID: <1ab07c55-8add-46c6-85b9-7506260be73e@quicinc.com> Date: Tue, 27 Feb 2024 11:15:16 +0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/6] wifi: ath11k: invert scan flag WMI_SCAN_FILTER_PROBE_REQ for QCA6390/WCN6855/QCA2066 Content-Language: en-US To: Jeff Johnson , CC: References: <20240226060203.2040444-1-quic_kangyang@quicinc.com> <20240226060203.2040444-6-quic_kangyang@quicinc.com> <00db4b62-4cd4-474f-bbe9-33f64d5e3853@quicinc.com> From: Kang Yang In-Reply-To: <00db4b62-4cd4-474f-bbe9-33f64d5e3853@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: xWwSqWBVONC72MzNb8M3PN26StimW6Sx X-Proofpoint-GUID: xWwSqWBVONC72MzNb8M3PN26StimW6Sx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_11,2024-02-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402270025 On 2/27/2024 4:40 AM, Jeff Johnson wrote: > On 2/25/2024 10:02 PM, Kang Yang wrote: >> Current ROC scan will filter probe request. But probe request is >> necessary for P2P mode. A P2P device cannot be discovered by others if >> it doesn't respond to others' probe request. >> >> So invert scan flag WMI_SCAN_FILTER_PROBE_REQ for >> QCA6390/WCN6855/QCA2066. >> >> Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37 >> Tested-on: QCA2066 hw2.1 PCI WLAN.HSP.1.1-03926.13-QCAHSPSWPL_V2_SILICONZ_CE-2.52297.2 >> >> Signed-off-by: Kang Yang >> --- >> drivers/net/wireless/ath/ath11k/wmi.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c >> index bbccddd7d729..1dd0cbdda199 100644 >> --- a/drivers/net/wireless/ath/ath11k/wmi.c >> +++ b/drivers/net/wireless/ath/ath11k/wmi.c >> @@ -2317,6 +2317,9 @@ int ath11k_wmi_send_scan_start_cmd(struct ath11k *ar, >> ether_addr_copy(cmd->mac_addr.addr, params->mac_addr.addr); >> ether_addr_copy(cmd->mac_mask.addr, params->mac_mask.addr); >> >> + if (ar->ab->hw_params.single_pdev_only) >> + cmd->scan_ctrl_flags ^= WMI_SCAN_FILTER_PROBE_REQ; >> + > > Why is this being done in WMI? Ideally WMI should just be doing host to > firmware translation, so seems this should be further up the stack, i.e. > in ath11k_mac_op_hw_scan() / ath11k_mac_op_remain_on_channel() > I referred to ath10k you are right, i will move to hw_scan(). > It also seems strange to invert the flag (which assumes a known starting > value) instead of just explicitly setting it to the required value. > When work as P2P, will call remain_on_channel(), then hw_scan(). scan_ctrl_flags will set WMI_SCAN_FILTER_PROBE_REQ in remain_on_channel(). so later should reset this flag to 0 (1 -> 0, accept probe request). When work as station, won't call remain_on_channel(). There is no need to accept probe request for station(i should also explain this point), so need to set this flag to 1 (0 -> 1). That's why i invert this flag here, but move to hw_scan() is better. >> ptr += sizeof(*cmd); >> >> len = params->num_chan * sizeof(u32); >