Commit 7e60096f authored by Johannes Berg's avatar Johannes Berg

wifi: mac80211: move ieee80211_bssid_match() function

This is only used in rx.c, so move it into the file.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6e8912a5
...@@ -1801,12 +1801,6 @@ static inline void init_airtime_info(struct airtime_info *air_info, ...@@ -1801,12 +1801,6 @@ static inline void init_airtime_info(struct airtime_info *air_info,
INIT_LIST_HEAD(&air_info->list); 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 static inline bool
ieee80211_have_rx_timestamp(struct ieee80211_rx_status *status) ieee80211_have_rx_timestamp(struct ieee80211_rx_status *status)
{ {
......
...@@ -4130,6 +4130,12 @@ EXPORT_SYMBOL(ieee80211_mark_rx_ba_filtered_frames); ...@@ -4130,6 +4130,12 @@ EXPORT_SYMBOL(ieee80211_mark_rx_ba_filtered_frames);
/* main receive path */ /* 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) static bool ieee80211_accept_frame(struct ieee80211_rx_data *rx)
{ {
struct ieee80211_sub_if_data *sdata = rx->sdata; struct ieee80211_sub_if_data *sdata = rx->sdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment