diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-14 13:07:11 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-06-20 13:57:08 +0300 |
commit | 7e60096f6733350ccb9f55c8084cb421e1934f81 (patch) | |
tree | 59ee60d3e58e62cda005dc6e72e638784021d74a /net/mac80211/rx.c | |
parent | 6e8912a503759bb8f1f01c5b761d0d45815fa6de (diff) | |
download | linux-7e60096f6733350ccb9f55c8084cb421e1934f81.tar.xz |
wifi: mac80211: move ieee80211_bssid_match() function
This is only used in rx.c, so move it into the file.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index e6b16ebbdb48..0b5c34d00c14 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4130,6 +4130,12 @@ EXPORT_SYMBOL(ieee80211_mark_rx_ba_filtered_frames); /* main receive path */ +static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr) +{ + return ether_addr_equal(raddr, addr) || + is_broadcast_ether_addr(raddr); +} + static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx) { struct ieee80211_sub_if_data *sdata = rx->sdata; |