From: Wen Gong <wgong@codeaurora.org>
To: Thomas Pedersen <thomas@adapt-ip.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless <linux-wireless@vger.kernel.org>,
ath11k@lists.infradead.org, ath10k@lists.infradead.org
Subject: Re: [PATCH v4 13/17] mac80211: receive and process S1G beacons
Date: Tue, 08 Dec 2020 15:44:33 +0800 [thread overview]
Message-ID: <6064b579538afca27c511edeb5400032@codeaurora.org> (raw)
In-Reply-To: <20200922022818.15855-14-thomas@adapt-ip.com>
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 <thomas@adapt-ip.com>
> ---
> 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
next prev parent reply other threads:[~2020-12-08 7:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200922022818.15855-1-thomas@adapt-ip.com>
[not found] ` <20200922022818.15855-15-thomas@adapt-ip.com>
[not found] ` <af51dd8e9dea2961546a502d9090d1a7@codeaurora.org>
2020-11-23 8:39 ` [PATCH v4 14/17] mac80211: support S1G association Wen Gong
[not found] ` <20200922022818.15855-14-thomas@adapt-ip.com>
2020-12-08 7:44 ` Wen Gong [this message]
2020-12-08 18:19 ` [PATCH v4 13/17] mac80211: receive and process S1G beacons Thomas Pedersen
2020-12-09 2:48 ` Wen Gong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6064b579538afca27c511edeb5400032@codeaurora.org \
--to=wgong@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=ath11k@lists.infradead.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=thomas@adapt-ip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).