Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp69778rdb; Thu, 16 Nov 2023 12:06:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGupn4IOcMXfLL67iFP6CjBG9Yy0rqTK7c+jFhreVSejq5KJd8rn612zDXEJSlDKTo6Ug5i X-Received: by 2002:a05:6a20:da99:b0:187:6880:b02a with SMTP id iy25-20020a056a20da9900b001876880b02amr7760460pzb.3.1700165185553; Thu, 16 Nov 2023 12:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700165185; cv=none; d=google.com; s=arc-20160816; b=XSHm9ax3nLhjVa4Qa1XcC5qRo0qrhpdBbXRQNWyCN3msyZmO+KblVE5SOQquBUQ2/o UAdnkciTeS1jRonVmSe3kdy+wRo5dWfLnckg/RN5WLUFVAnKHtwUE++49iUi7KUiFLTT L0BKzjmuzDU2WTnHJu9swgzQ3/PSQAu+3SZr5RqfJdQKphbZgGXOoEgJYPc4fPGxcUOZ j1nv1vBMKJYcMjjb5e6BvkSYXNTjtg9uKXUg4uEISkvdBfyS3/nLTJoGCyRr16aBUpt9 Mv2y3JBgkrcvlnZEqEa0KkeksJSLycqCsOKg7bjxRvSoK0lwAaWsnD01QyYC7EKPu/L2 yB+w== 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:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=M/iI/ckBzunr78QgEyTITE1lZ2tYJOXK7Vo0WxyVB/E=; fh=GNhGMz/faHHUDdfPjLw596Mmlw+lsFAsf92qlz/Bwwc=; b=rf8s/WV0s37Yg6+yDc0Rypo0KHtd+Enia5b5zrLqeAP+4eX/NzqqAjc8i7gnV5t0ZB NILzmZJeq3rxd28RuzS9SG8yOknfZu0SqtghfD2HG1I4hd9aY25jl3WVgXJ7LQVzblh4 BbUzZXKUuhgXFZfIuJuy4gXXYJmQf1Aruqb+JiB7zcsM/kMfCpcS/yYXe2GmFY1aigAe E8Jsf8jsaCEfglUaxg8Cs1PGGVepYtvO0r8dwaWAK8+QKGPdSyDd+L1qR4ANw/QwlNvg q2ipOU4glSVV6j05bsmQJM1Mvy2E4yjM1XSY2hfPMF8rodnnHtI5aOVDRZ3c/S24yMCT j78w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=arlxtnX0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f22-20020a635556000000b00578cc8d2599si175995pgm.211.2023.11.16.12.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 12:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=arlxtnX0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 8C72B8260E80; Thu, 16 Nov 2023 12:06:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345526AbjKPUGG (ORCPT + 53 others); Thu, 16 Nov 2023 15:06:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345531AbjKPUGF (ORCPT ); Thu, 16 Nov 2023 15:06:05 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D560CD53 for ; Thu, 16 Nov 2023 12:06:01 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AGGYntV019192; Thu, 16 Nov 2023 20:05:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : references : cc : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=M/iI/ckBzunr78QgEyTITE1lZ2tYJOXK7Vo0WxyVB/E=; b=arlxtnX09QU9WqW3MsXJ7JfGcpoxr14FuXAl4gIOY06r9P4n+2gqpnL1LemoGEEHq+HO ER2hBKkkfS72nf2ZyeTGBNp6QbyD/E4rmyV7FYzCn33ggRzhZsfQfj4p3tJ+BwghGByk jHvtuXLd+odZ6f9sk744XI5suntXMnuDwjtK5xFD+KntHWSzoCq1YAS2t0eaWqE89Byg npburXaXo96F5F+DA09pnKmAMzd6W1XkcqGOqnGCy48BVH5eI+iRs8oOOPJgWgJNrcjB PJjMfbaikHKhOnYwq/lqYj0v5dDr3t6SQNkX9IJeYIvD9Ng191OW/EiSpj0kJA3q1JYp sQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udpqq0gb1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 20:05:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AGK5WNN031996 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 20:05:32 GMT Received: from [10.110.1.143] (10.80.80.8) 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.39; Thu, 16 Nov 2023 12:05:32 -0800 Message-ID: Date: Thu, 16 Nov 2023 12:05:31 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] wifi: ath10k: add support to allow broadcast action frame RX Content-Language: en-US To: James Prestwood , References: <20231116173246.40458-1-prestwoj@gmail.com> CC: From: Jeff Johnson In-Reply-To: <20231116173246.40458-1-prestwoj@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: 31LZ-vS3QtGdRvdZzJ1IFtYnxLC3pfZ4 X-Proofpoint-ORIG-GUID: 31LZ-vS3QtGdRvdZzJ1IFtYnxLC3pfZ4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_21,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311160157 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 12:06:05 -0800 (PST) On 11/16/2023 9:32 AM, James Prestwood wrote: > Broadcast action frames are needed for the Device Provisioning > Protocol (DPP) for Presence and PKEX Exchange requests. Currently > just ath9k has this capability so this is being enabled for > ath10k (for at least one hardware variant). > > Add a new capability flag in ath10k_hw_params to indicate support > for receiving multicast action frames. This bit is then checked > when configuring the RX filter and (if set) multicast action frame > registration is enabled. > > Until more hardware can be tested only the "qca6174 hw3.2" variant > is enabling this feature. > > Note: I went ahead and removed the 'changed_flags' mask operation > since it had no effect, that parameter was not being used anywhere. > > Tested-on: QCA6174 hw3.2 WLAN.RM.4.4.1-00288- > > Signed-off-by: James Prestwood > --- > drivers/net/wireless/ath/ath10k/core.c | 1 + > drivers/net/wireless/ath/ath10k/hw.h | 3 +++ > drivers/net/wireless/ath/ath10k/mac.c | 14 +++++++++++--- > 3 files changed, 15 insertions(+), 3 deletions(-) > > v2: > * Add flag in ath10k_hw_params and only set FIF_MCAST_ACTION > if that hardware allows it. > > diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c > index 5eb131ab916f..f2077756ffdf 100644 > --- a/drivers/net/wireless/ath/ath10k/core.c > +++ b/drivers/net/wireless/ath/ath10k/core.c > @@ -381,6 +381,7 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { > .hw_restart_disconnect = false, > .use_fw_tx_credits = true, > .delay_unmap_buffer = false, > + .mcast_frame_registration = true, > }, > { > .id = QCA99X0_HW_2_0_DEV_VERSION, > diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h > index 9643031a4427..2aeb52c7f189 100644 > --- a/drivers/net/wireless/ath/ath10k/hw.h > +++ b/drivers/net/wireless/ath/ath10k/hw.h > @@ -639,6 +639,9 @@ struct ath10k_hw_params { > bool use_fw_tx_credits; > > bool delay_unmap_buffer; > + > + /* The hardware support multicast frame registrations */ > + bool mcast_frame_registration; > }; > > struct htt_resp; > diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c > index ec8d5b29bc72..0d0de3646d31 100644 > --- a/drivers/net/wireless/ath/ath10k/mac.c > +++ b/drivers/net/wireless/ath/ath10k/mac.c > @@ -1249,7 +1249,7 @@ static bool ath10k_mac_monitor_vdev_is_needed(struct ath10k *ar) > return ar->monitor || > (!test_bit(ATH10K_FW_FEATURE_ALLOWS_MESH_BCAST, > ar->running_fw->fw_file.fw_features) && > - (ar->filter_flags & FIF_OTHER_BSS)) || > + (ar->filter_flags & (FIF_OTHER_BSS | FIF_MCAST_ACTION))) || > test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags); > } > > @@ -6027,11 +6027,15 @@ static void ath10k_configure_filter(struct ieee80211_hw *hw, > { > struct ath10k *ar = hw->priv; > int ret; > + unsigned int supported = SUPPORTED_FILTERS; > > mutex_lock(&ar->conf_mutex); > > - changed_flags &= SUPPORTED_FILTERS; > - *total_flags &= SUPPORTED_FILTERS; > + if (ar->hw_params.mcast_frame_registration) > + supported |= FIF_MCAST_ACTION; > + > + *total_flags &= supported; > + > ar->filter_flags = *total_flags; > > ret = ath10k_monitor_recalc(ar); > @@ -10114,6 +10118,10 @@ int ath10k_mac_register(struct ath10k *ar) > NL80211_EXT_FEATURE_SET_SCAN_DWELL); > wiphy_ext_feature_set(ar->hw->wiphy, NL80211_EXT_FEATURE_AQL); > > + if (ar->hw_params.mcast_frame_registration) > + wiphy_ext_feature_set(ar->hw->wiphy, > + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS); > + > if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map) || > test_bit(WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, ar->wmi.svc_map)) > wiphy_ext_feature_set(ar->hw->wiphy, Actually add the ath10k list this time. Sigh.