aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2012-04-11 05:46:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-13 14:32:51 -0400
commit0446b49c3350ad1fdbc5a3f8f8223fc8af7d853b (patch)
tree1bab4e67a8ec6ef713bfebace476e222894997ba /net/mac80211/scan.c
parentd90b570898f7cc3dd0b26d4e646f464408b04022 (diff)
mac80211: remove ieee80211_rx_bss_get
its not used where, while we directly obtain ieee80211_bss's pointer in ibss.c by calling cfg80211_get_bss Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 56175933c28f..45f5aa229efd 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -29,20 +29,6 @@
29#define IEEE80211_CHANNEL_TIME (HZ / 33) 29#define IEEE80211_CHANNEL_TIME (HZ / 33)
30#define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8) 30#define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8)
31 31
32struct ieee80211_bss *
33ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq,
34 u8 *ssid, u8 ssid_len)
35{
36 struct cfg80211_bss *cbss;
37
38 cbss = cfg80211_get_bss(local->hw.wiphy,
39 ieee80211_get_channel(local->hw.wiphy, freq),
40 bssid, ssid, ssid_len, 0, 0);
41 if (!cbss)
42 return NULL;
43 return (void *)cbss->priv;
44}
45
46static void ieee80211_rx_bss_free(struct cfg80211_bss *cbss) 32static void ieee80211_rx_bss_free(struct cfg80211_bss *cbss)
47{ 33{
48 struct ieee80211_bss *bss = (void *)cbss->priv; 34 struct ieee80211_bss *bss = (void *)cbss->priv;