Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1333265rdb; Wed, 6 Dec 2023 16:07:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IESu3yJKg9YYPnfCkkTYWi8212Qc+cvdPu7EwhBK0xhKCh2mCnUO4ZegwdJo7PRYO3DGE/z X-Received: by 2002:a05:6512:3b2a:b0:50b:f6d7:ab95 with SMTP id f42-20020a0565123b2a00b0050bf6d7ab95mr1238428lfv.30.1701907655590; Wed, 06 Dec 2023 16:07:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907655; cv=none; d=google.com; s=arc-20160816; b=bTHM/ru4oS/0xXcls4pBwvM6c+g012m/ic7Xkf2DwFm0PXIff6deO6DGw9RQXJ14KP hYohme9Cbykdp6Gt5amZm5MVmmax+ldhH6rI4iMBxGakwKFlY5NsK/IDlSPX0WheOUsa DunnHtUmcnLeE1enm63Rbh6JDYMWsUmJq0r7nYB7NSfrtuLkkhIdj0mso8jdsSv1tHYZ U/m+9ad9vnOzvC1kaDDqwZLfbuPyBH7FmpQUCGp7Lupzt1SdTbK3g5Qhs6hBzVPSMH28 yq1WA+SI47wfWum8VQiaGzYS4VNyqGy5l5HjjZCdMZXYzGMGtobmCXAf7pjIGMZhP2rh OAAQ== ARC-Message-Signature: i=1; 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=m8EY+hxPqYDNDst8AkzCtvWV0zDIKM4EMIlqkhupICE=; fh=IvEiknVa3Lo8p4mSFK1OyHEWVKxvlxi3bEQvTB+x5co=; b=BCIUZjEta6dTxGNchi+8ClorTibBZqHwC8qupyLi86Ln/H9+MtfJd5NDqU3YWujm/M JS1V+uEn4jdiIHNbVP4alFZzBz/EoQAQpR/IG+Go1dvKLb9vc91POOKbQ5aLndZoxI8/ lEa6rUa/iZl798H37KBiJXAhV/O7NLN4JZ5hY7hX2b+n0zJfhfwDT8cRmmwYWp6X15W6 KukYl0RHELGnwo1ZoK8iVbp4K8fiI14UWwoswZiyvoF/mH0POs5XwNrcG6p5Xh8cQvvT pmHwicsrC6eo43+4cXhhvhrAv2R/lH3BeqrtEWXkPZ03x1d5eTSeauQPeX/QT8Pd10yz K0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h73upDiy; spf=pass (google.com: domain of linux-wireless+bounces-518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u18-20020a50a412000000b0054c7e77fb4fsi89570edb.439.2023.12.06.16.07.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:07:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h73upDiy; spf=pass (google.com: domain of linux-wireless+bounces-518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-518-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 55A891F2112A for ; Thu, 7 Dec 2023 00:07:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7937F173; Thu, 7 Dec 2023 00:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="h73upDiy" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 230D4D1 for ; Wed, 6 Dec 2023 16:07:27 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B6MTlOL004790; Thu, 7 Dec 2023 00:07:06 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=m8EY+hxPqYDNDst8AkzCtvWV0zDIKM4EMIlqkhupICE=; b=h73upDiylFawEdjAnLWNULa1txWewGBOyFfXOXf1U1xK7ThK2RuyA2YjlQh7yzOaaV1F CGxKHE/MPuzPL+GhplMfw30CuGrzEVdAAubRSz4upjqmJI8cFysI8P2XeOSKUiE6y5Rb dz4piUN8n4PL8gzVi3qydAaIshLasgMfI5cgIQiEC2BygMJ9d97g6o0U68DBk6jgPf6Q gYDrd6kjnBC/u15CsdScg1rVFibPWcti26Ws/zSxXqY/Z+bKAr3314yYDwn9lUdFfFmj ey3rgfwAEIkrN5NT0feIcLyZXk9/GEybrkWBiQBQFquS1N6d82BOspm7PfIzJjg/gGjS Tg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3utdebbceh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Dec 2023 00:07:06 +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 3B70751w010530 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Dec 2023 00:07:05 GMT Received: from [10.110.111.75] (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.40; Wed, 6 Dec 2023 16:07:04 -0800 Message-ID: <50a6f31a-ef28-496c-acf4-0521034e43a1@quicinc.com> Date: Wed, 6 Dec 2023 16:07:03 -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] wifi: mac80211: Fix SMPS action frame ht cap check Content-Language: en-US To: Allen Ye , CC: Johannes Berg , Felix Fietkau , Lorenzo Bianconi , Evelyn Tsai , "Money . Wang" , , Thomas Wu References: <20231206024708.24831-1-allen.ye@mediatek.com> From: Jeff Johnson In-Reply-To: <20231206024708.24831-1-allen.ye@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-ORIG-GUID: DqS6-M-qghFIKBsIm7_1WVBiDv5qIWx1 X-Proofpoint-GUID: DqS6-M-qghFIKBsIm7_1WVBiDv5qIWx1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-06_21,2023-12-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 clxscore=1011 spamscore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312060178 On 12/5/2023 6:47 PM, Allen Ye wrote: > From: "Allen.Ye" > > Since there is no HT BSS in 6GHz, the HT Cap check would stop 6G HE/EHT > BSS from processing the HT action frame for SM Power Save which can be > also used in an HE BSS. Therefore, we remove the HT Cap check in 6GHz and > add the HE check accordingly. > > Signed-off-by: Money.Wang > Signed-off-by: Allen.Ye > --- > net/mac80211/rx.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c > index 64352e4e6d00..f8cd14dc58ec 100644 > --- a/net/mac80211/rx.c > +++ b/net/mac80211/rx.c > @@ -3482,7 +3482,8 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx) > switch (mgmt->u.action.category) { > case WLAN_CATEGORY_HT: > /* reject HT action frames from stations not supporting HT */ > - if (!rx->link_sta->pub->ht_cap.ht_supported) > + if (status->band != NL80211_BAND_6GHZ && > + !rx->link_sta->pub->ht_cap.ht_supported) we had found the same issue and were preparing a patch that changed this to: + if (!rx->link_sta->pub->ht_cap.ht_supported && + !rx->link_sta->pub->he_cap.has_he) I see you added the has_he check below, but curious if it is better to do it here to short circuit the tests that follow > goto invalid; > > if (sdata->vif.type != NL80211_IFTYPE_STATION && > @@ -3502,6 +3503,12 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx) > enum ieee80211_smps_mode smps_mode; > struct sta_opmode_info sta_opmode = {}; > > + if (status->band == NL80211_BAND_6GHZ && > + rx->link_sta->pub->he_cap.has_he && > + !(rx->link_sta->pub->he_cap.he_cap_elem.mac_cap_info[5] & > + IEEE80211_HE_MAC_CAP5_HE_DYNAMIC_SM_PS)) > + goto invalid; > + > if (sdata->vif.type != NL80211_IFTYPE_AP && > sdata->vif.type != NL80211_IFTYPE_AP_VLAN) > goto handled;