diff options
author | Thomas Pedersen <thomas@adapt-ip.com> | 2020-09-21 19:28:08 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-09-28 13:53:25 +0200 |
commit | cd418ba63f0c2f6157f35a41c9accc6ecb52590a (patch) | |
tree | e594268f0eab29478b9904b82417096b8248117e /net/mac80211/rx.c | |
parent | 66b0564d7e757a193b6f8c925ae30997814fc026 (diff) | |
download | linux-cd418ba63f0c2f6157f35a41c9accc6ecb52590a.tar.bz2 |
mac80211: convert S1G beacon to scan results
This commit finds the correct offset for Information
Elements in S1G beacon frames so they can be reported in
scan results.
Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200922022818.15855-8-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 7f88a1b2215c..4fb3e420bbd6 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4578,7 +4578,8 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, ieee80211_verify_alignment(&rx); if (unlikely(ieee80211_is_probe_resp(hdr->frame_control) || - ieee80211_is_beacon(hdr->frame_control))) + ieee80211_is_beacon(hdr->frame_control) || + ieee80211_is_s1g_beacon(hdr->frame_control))) ieee80211_scan_rx(local, skb); if (ieee80211_is_data(fc)) { |