summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-06-14 13:07:11 +0300
committerJohannes Berg <johannes.berg@intel.com>2022-06-20 13:57:08 +0300
commit7e60096f6733350ccb9f55c8084cb421e1934f81 (patch)
tree59ee60d3e58e62cda005dc6e72e638784021d74a /net
parent6e8912a503759bb8f1f01c5b761d0d45815fa6de (diff)
downloadlinux-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')
-rw-r--r--net/mac80211/ieee80211_i.h6
-rw-r--r--net/mac80211/rx.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 0f69859e4e39..aa5e4c2734b7 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1801,12 +1801,6 @@ static inline void init_airtime_info(struct airtime_info *air_info,
INIT_LIST_HEAD(&air_info->list);
}
-static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr)
-{
- return ether_addr_equal(raddr, addr) ||
- is_broadcast_ether_addr(raddr);
-}
-
static inline bool
ieee80211_have_rx_timestamp(struct ieee80211_rx_status *status)
{
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;