aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-02-10 15:25:56 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-13 13:45:51 -0500
commit99cf5f5f3571ce3a837e379d3b87bf5ddf54f17d (patch)
treecde967301cfcb781d1427112b40b7f7061d2df70 /net/mac80211/scan.c
parent2a5193119269062608582418deba7af82844159a (diff)
mac80211: dont add BSS when creating IBSS
There's no need to create a BSS struct only to pass it to ieee80211_sta_join_ibss, so refactor this function into __ieee80211_sta_join_ibss which takes all the relevant paramters, and ieee80211_sta_join_ibss which takes a BSS struct (used when joining an IBSS that already has other members). Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index c6b275b10cf9..fc88e2e2f923 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -14,11 +14,7 @@
14 14
15/* TODO: 15/* TODO:
16 * figure out how to avoid that the "current BSS" expires 16 * figure out how to avoid that the "current BSS" expires
17 * clean up IBSS code (in MLME), see why it adds a BSS to the list 17 * use cfg80211's BSS handling
18 * use cfg80211's BSS handling (depends on IBSS TODO above)
19 * order BSS list by RSSI(?) ("quality of AP")
20 * scan result table filtering (by capability (privacy, IBSS/BSS, WPA/RSN IE,
21 * SSID)
22 */ 18 */
23 19
24#include <linux/wireless.h> 20#include <linux/wireless.h>
@@ -107,7 +103,7 @@ static void __ieee80211_rx_bss_hash_del(struct ieee80211_local *local,
107 } 103 }
108} 104}
109 105
110struct ieee80211_bss * 106static struct ieee80211_bss *
111ieee80211_rx_bss_add(struct ieee80211_local *local, u8 *bssid, int freq, 107ieee80211_rx_bss_add(struct ieee80211_local *local, u8 *bssid, int freq,
112 u8 *ssid, u8 ssid_len) 108 u8 *ssid, u8 ssid_len)
113{ 109{