]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mac80211: remove ieee80211_rx_bss_get
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Wed, 11 Apr 2012 09:46:12 +0000 (15:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Apr 2012 18:32:51 +0000 (14:32 -0400)
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>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c

index 8cc4bc101409bca29b460ce6a85decffdab49d9b..bd7a451b084968627db4599c92935d2b4b280c98 100644 (file)
@@ -1273,9 +1273,6 @@ ieee80211_bss_info_update(struct ieee80211_local *local,
                          struct ieee802_11_elems *elems,
                          struct ieee80211_channel *channel,
                          bool beacon);
-struct ieee80211_bss *
-ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq,
-                    u8 *ssid, u8 ssid_len);
 void ieee80211_rx_bss_put(struct ieee80211_local *local,
                          struct ieee80211_bss *bss);
 
index 56175933c28f0ca7d487ddc39e622747f981a389..45f5aa229efde33669127781e9d86980ce46fb8f 100644 (file)
 #define IEEE80211_CHANNEL_TIME (HZ / 33)
 #define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8)
 
-struct ieee80211_bss *
-ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq,
-                    u8 *ssid, u8 ssid_len)
-{
-       struct cfg80211_bss *cbss;
-
-       cbss = cfg80211_get_bss(local->hw.wiphy,
-                               ieee80211_get_channel(local->hw.wiphy, freq),
-                               bssid, ssid, ssid_len, 0, 0);
-       if (!cbss)
-               return NULL;
-       return (void *)cbss->priv;
-}
-
 static void ieee80211_rx_bss_free(struct cfg80211_bss *cbss)
 {
        struct ieee80211_bss *bss = (void *)cbss->priv;