From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1117EC433FE for ; Tue, 8 Dec 2020 07:45:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C6CF323A3C for ; Tue, 8 Dec 2020 07:45:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbgLHHpC (ORCPT ); Tue, 8 Dec 2020 02:45:02 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:50411 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbgLHHpB (ORCPT ); Tue, 8 Dec 2020 02:45:01 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607413476; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=TgNvtMs6NBA+YC1m9qsvbbUGsAfySLmLSjl7v31YWB4=; b=Op53vybES4TFMo88AKNV5udYeSXvTtWS0Jy99KjGElJXM2nqqfVwKNh2YnC7ynBwjvM/7qPc qkJCJ9qvaJJXvvnLJPsh1X+Spx+/GmXmwmCXukcvLm/C7vWOsEd0sdX+dVQ+tJ6vFGety2e+ p57ctSwkifxXUKASp+kBNDyXiSg= X-Mailgun-Sending-Ip: 69.72.43.15 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5fcf2ee20ce450987a8a5959 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 08 Dec 2020 07:44:34 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D3327C433ED; Tue, 8 Dec 2020 07:44:33 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3DDBDC433CA; Tue, 8 Dec 2020 07:44:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 08 Dec 2020 15:44:33 +0800 From: Wen Gong To: Thomas Pedersen 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: <20200922022818.15855-14-thomas@adapt-ip.com> References: <20200922022818.15855-1-thomas@adapt-ip.com> <20200922022818.15855-14-thomas@adapt-ip.com> Message-ID: <6064b579538afca27c511edeb5400032@codeaurora.org> X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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) > /* > * Mesh beacons will update last_rx when if they are found to > * match the current local configuration when processed. ... From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from so254-31.mailgun.net ([198.61.254.31]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmXfq-0001V6-Lo for ath11k@lists.infradead.org; Tue, 08 Dec 2020 07:44:40 +0000 MIME-Version: 1.0 Date: Tue, 08 Dec 2020 15:44:33 +0800 From: Wen Gong Subject: Re: [PATCH v4 13/17] mac80211: receive and process S1G beacons In-Reply-To: <20200922022818.15855-14-thomas@adapt-ip.com> References: <20200922022818.15855-1-thomas@adapt-ip.com> <20200922022818.15855-14-thomas@adapt-ip.com> Message-ID: <6064b579538afca27c511edeb5400032@codeaurora.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath11k" Errors-To: ath11k-bounces+kvalo=adurom.com@lists.infradead.org To: Thomas Pedersen Cc: Johannes Berg , linux-wireless , ath11k@lists.infradead.org, ath10k@lists.infradead.org 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) > /* > * Mesh beacons will update last_rx when if they are found to > * match the current local configuration when processed. ... -- ath11k mailing list ath11k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath11k From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m43-15.mailgun.net ([69.72.43.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmXfq-0001V7-Ls for ath10k@lists.infradead.org; Tue, 08 Dec 2020 07:44:40 +0000 MIME-Version: 1.0 Date: Tue, 08 Dec 2020 15:44:33 +0800 From: Wen Gong Subject: Re: [PATCH v4 13/17] mac80211: receive and process S1G beacons In-Reply-To: <20200922022818.15855-14-thomas@adapt-ip.com> References: <20200922022818.15855-1-thomas@adapt-ip.com> <20200922022818.15855-14-thomas@adapt-ip.com> Message-ID: <6064b579538afca27c511edeb5400032@codeaurora.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Thomas Pedersen Cc: Johannes Berg , linux-wireless , ath11k@lists.infradead.org, ath10k@lists.infradead.org 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) > /* > * Mesh beacons will update last_rx when if they are found to > * match the current local configuration when processed. ... _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k