Commit 0a51b27e authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

mac80211: start moving scan code from mlme

Here's a first patch to move some code from mlme.c to a
new file called scan.c. The end result will hopefully be
a more manageable mlme.c.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ee96d6ef
...@@ -7,6 +7,7 @@ mac80211-y := \ ...@@ -7,6 +7,7 @@ mac80211-y := \
sta_info.o \ sta_info.o \
wep.o \ wep.o \
wpa.o \ wpa.o \
scan.o \
mlme.o \ mlme.o \
iface.o \ iface.o \
rate.o \ rate.o \
......
...@@ -53,6 +53,12 @@ struct ieee80211_local; ...@@ -53,6 +53,12 @@ struct ieee80211_local;
* increased memory use (about 2 kB of RAM per entry). */ * increased memory use (about 2 kB of RAM per entry). */
#define IEEE80211_FRAGMENT_MAX 4 #define IEEE80211_FRAGMENT_MAX 4
/*
* Time after which we ignore scan results and no longer report/use
* them in any way.
*/
#define IEEE80211_SCAN_RESULT_EXPIRE (10 * HZ)
struct ieee80211_fragment_entry { struct ieee80211_fragment_entry {
unsigned long first_frag_time; unsigned long first_frag_time;
unsigned int seq; unsigned int seq;
...@@ -924,8 +930,13 @@ u64 ieee80211_sta_get_rates(struct ieee80211_local *local, ...@@ -924,8 +930,13 @@ u64 ieee80211_sta_get_rates(struct ieee80211_local *local,
enum ieee80211_band band); enum ieee80211_band band);
void ieee80211_sta_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, void ieee80211_sta_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
int encrypt); int encrypt);
void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst,
u8 *ssid, size_t ssid_len);
void ieee802_11_parse_elems(u8 *start, size_t len, void ieee802_11_parse_elems(u8 *start, size_t len,
struct ieee802_11_elems *elems); struct ieee802_11_elems *elems);
void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local);
int ieee80211_sta_start_scan(struct ieee80211_sub_if_data *scan_sdata,
u8 *ssid, size_t ssid_len);
#ifdef CONFIG_MAC80211_MESH #ifdef CONFIG_MAC80211_MESH
void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata); void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata);
......
This diff is collapsed.
This diff is collapsed.
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