summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2019-01-16 21:26:25 +0200
committerJohannes Berg <johannes.berg@intel.com>2019-02-08 13:51:50 +0100
commit7ece9c372b21635120e7ab5ea3fc41ce9892ead8 (patch)
treef2b78f04ca9cec69c322379b7c889f2734a488c5 /net/wireless
parent213ed579d38ef47c55694a4a411926af3dfc6558 (diff)
downloadlinux-7ece9c372b21635120e7ab5ea3fc41ce9892ead8.tar.bz2
cfg80211: make BSSID generation function inline
This will enable reuse by mac80211. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/scan.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index ab0f0178ee0e..f1b06e9c1038 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -179,22 +179,6 @@ static bool __cfg80211_unlink_bss(struct cfg80211_registered_device *rdev,
return true;
}
-static void cfg80211_gen_new_bssid(const u8 *bssid, u8 max_bssid,
- u8 mbssid_index, u8 *new_bssid_addr)
-{
- u64 bssid_tmp, new_bssid = 0;
- u64 lsb_n;
-
- bssid_tmp = ether_addr_to_u64(bssid);
-
- lsb_n = bssid_tmp & ((1 << max_bssid) - 1);
- new_bssid = bssid_tmp;
- new_bssid &= ~((1 << max_bssid) - 1);
- new_bssid |= (lsb_n + mbssid_index) % (1 << max_bssid);
-
- u64_to_ether_addr(new_bssid, new_bssid_addr);
-}
-
static size_t cfg80211_gen_new_ie(const u8 *ie, size_t ielen,
const u8 *subelement, size_t subie_len,
u8 *new_ie, gfp_t gfp)