Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3379651pxu; Tue, 8 Dec 2020 10:25:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzW+lpmyZEJsnBv4oORHgEbD4zoUhCT9yLwtBcK4wDE6dWa5B47iKcrjV3erP0pEb5EfEW5 X-Received: by 2002:a05:6402:17a3:: with SMTP id j3mr25533691edy.333.1607451915009; Tue, 08 Dec 2020 10:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607451915; cv=none; d=google.com; s=arc-20160816; b=wlvDaUPvMjZJRmlKCx3rMUOKcvOvt9pJizG0vy3KwDlpYZ2AM8TUPnM2x+94sCUGqq SKlalsaaFjk8It57liMbBmGyQ3Cti189veZu0lEBgUXeYYibZLDb49sUzBLaqYM7ci3W LeZVQquOOkM19rRWJsW3/GMVPKpAUGz2Tv70HfMSAxESk2q/uNdMo2xBt+0c7BrDrPJ1 c5rWlMYfA0Z3E5u8SKwP9BKjQcDVKs0hOdRVgJUjvhBK6/xefJmENs1Dc+LV/Ud94+VY V1ZiR3UWKffmHqXM734sFunePWH8TJ9rOILeUXXfDNA1XdGSORLzGdWRabnT0fS52xiA WZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=4d35MTtGTGU/ZjZVRtzG2bGwwKMiwn8jqYX2/iJQayk=; b=kPgRTV8ysZdftptTlEgDVa3mtplvwGh2OEWx1u4R8S8f5FhqZsceBZPV2uutER+i7W E+gXBG3M525fTOiLA6lHWSaxlDBELHQN9f4E56EPGLWmLgPNp7PecvH7MudxwxnysJIQ 49Wx8goaNWQ1ja9E2ZKIZm5y7ojxnSVfzj8FdCidabF3HS+s3zdbLE4JH+PA7gN2ZTdo ViEp3WKqqnslxcxegB5Jc/4vEOzwmdH+7Gc33OSF5nmPEbpwkfC/WeZW/x+iLPwQ2PCX RDDjXncV2AmRr09QQQPBGf3FKe1FqBbJzgXp5PpAhdHQXAxXQZY81I99e8ESNOjw/D9o r/9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si2486509ejz.97.2020.12.08.10.24.35; Tue, 08 Dec 2020 10:25:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730823AbgLHSUm (ORCPT + 99 others); Tue, 8 Dec 2020 13:20:42 -0500 Received: from mail.adapt-ip.com ([173.164.178.19]:49098 "EHLO web.adapt-ip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730488AbgLHSUl (ORCPT ); Tue, 8 Dec 2020 13:20:41 -0500 Received: from localhost (localhost [127.0.0.1]) by web.adapt-ip.com (Postfix) with ESMTP id 14A004FAFE7; Tue, 8 Dec 2020 18:19:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at web.adapt-ip.com Received: from web.adapt-ip.com ([127.0.0.1]) by localhost (web.adapt-ip.com [127.0.0.1]) (amavisd-new, port 10026) with LMTP id g7w09fRtMwrg; Tue, 8 Dec 2020 18:19:53 +0000 (UTC) Received: from mail.ibsgaard.io (c-73-223-60-234.hsd1.ca.comcast.net [73.223.60.234]) (Authenticated sender: thomas@adapt-ip.com) by web.adapt-ip.com (Postfix) with ESMTPSA id 979464FAFE4; Tue, 8 Dec 2020 18:19:52 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 08 Dec 2020 10:19:52 -0800 From: Thomas Pedersen To: Wen Gong Cc: Johannes Berg , linux-wireless , ath10k@lists.infradead.org, ath11k@lists.infradead.org Subject: Re: [PATCH v4 13/17] mac80211: receive and process S1G beacons In-Reply-To: <6064b579538afca27c511edeb5400032@codeaurora.org> References: <20200922022818.15855-1-thomas@adapt-ip.com> <20200922022818.15855-14-thomas@adapt-ip.com> <6064b579538afca27c511edeb5400032@codeaurora.org> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: thomas@adapt-ip.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Wen, On 2020-12-07 23:44, Wen Gong wrote: > On 2020-09-22 10:28, Thomas Pedersen wrote: >> S1G beacons are 802.11 Extension Frames, so the fixed >> header part differs from regular beacons. >> >> Add a handler to process S1G beacons and abstract out the >> fetching of BSSID and element start locations in the >> beacon body handler. >> >> Signed-off-by: Thomas Pedersen >> --- >> net/mac80211/ieee80211_i.h | 4 ++ >> net/mac80211/iface.c | 5 +++ >> net/mac80211/mlme.c | 84 >> +++++++++++++++++++++++++++++--------- >> net/mac80211/rx.c | 84 >> ++++++++++++++++---------------------- >> net/mac80211/util.c | 52 +++++++++++++++++++++++ >> 5 files changed, 162 insertions(+), 67 deletions(-) >> > ... >> @@ -1801,7 +1756,8 @@ ieee80211_rx_h_sta_process(struct >> ieee80211_rx_data *rx) >> } >> } else if (rx->sdata->vif.type == NL80211_IFTYPE_OCB) { >> sta->rx_stats.last_rx = jiffies; >> - } else if (!is_multicast_ether_addr(hdr->addr1)) { >> + } else if (!ieee80211_is_s1g_beacon(hdr->frame_control) && >> + is_multicast_ether_addr(hdr->addr1)) { > is this a typo mistake? > it removed ! for is_multicast_ether_addr(!is_multicast_ether_addr ==> > is_multicast_ether_addr) Yes that does look like a typo, it should be: } else if (!ieee80211_is_s1g_beacon(hdr->frame_control) && !is_multicast_ether_addr(hdr->addr1)) { (because is_multicast_ether_addr() evaluates to true for s1g beacons). Do you have a patch or would you like me to send a fixup? Thanks, -- thomas