diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_scan.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_scan.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_scan.h b/drivers/net/wireless/wl12xx/wl1271_scan.h index 0002e815cb43..b0e36e30a427 100644 --- a/drivers/net/wireless/wl12xx/wl1271_scan.h +++ b/drivers/net/wireless/wl12xx/wl1271_scan.h | |||
@@ -27,12 +27,11 @@ | |||
27 | #include "wl1271.h" | 27 | #include "wl1271.h" |
28 | 28 | ||
29 | int wl1271_scan(struct wl1271 *wl, const u8 *ssid, size_t ssid_len, | 29 | int wl1271_scan(struct wl1271 *wl, const u8 *ssid, size_t ssid_len, |
30 | struct cfg80211_scan_request *req, u8 active_scan, | 30 | struct cfg80211_scan_request *req); |
31 | u8 high_prio, u8 band, u8 probe_requests); | ||
32 | int wl1271_scan_build_probe_req(struct wl1271 *wl, | 31 | int wl1271_scan_build_probe_req(struct wl1271 *wl, |
33 | const u8 *ssid, size_t ssid_len, | 32 | const u8 *ssid, size_t ssid_len, |
34 | const u8 *ie, size_t ie_len, u8 band); | 33 | const u8 *ie, size_t ie_len, u8 band); |
35 | int wl1271_scan_complete(struct wl1271 *wl); | 34 | void wl1271_scan_stm(struct wl1271 *wl); |
36 | 35 | ||
37 | #define WL1271_SCAN_MAX_CHANNELS 24 | 36 | #define WL1271_SCAN_MAX_CHANNELS 24 |
38 | #define WL1271_SCAN_DEFAULT_TAG 1 | 37 | #define WL1271_SCAN_DEFAULT_TAG 1 |
@@ -44,7 +43,16 @@ int wl1271_scan_complete(struct wl1271 *wl); | |||
44 | #define WL1271_SCAN_CHAN_MAX_DURATION 60000 /* TU */ | 43 | #define WL1271_SCAN_CHAN_MAX_DURATION 60000 /* TU */ |
45 | #define WL1271_SCAN_BAND_2_4_GHZ 0 | 44 | #define WL1271_SCAN_BAND_2_4_GHZ 0 |
46 | #define WL1271_SCAN_BAND_5_GHZ 1 | 45 | #define WL1271_SCAN_BAND_5_GHZ 1 |
47 | #define WL1271_SCAN_BAND_DUAL 2 | 46 | #define WL1271_SCAN_PROBE_REQS 3 |
47 | |||
48 | enum { | ||
49 | WL1271_SCAN_STATE_IDLE, | ||
50 | WL1271_SCAN_STATE_2GHZ_ACTIVE, | ||
51 | WL1271_SCAN_STATE_2GHZ_PASSIVE, | ||
52 | WL1271_SCAN_STATE_5GHZ_ACTIVE, | ||
53 | WL1271_SCAN_STATE_5GHZ_PASSIVE, | ||
54 | WL1271_SCAN_STATE_DONE | ||
55 | }; | ||
48 | 56 | ||
49 | struct basic_scan_params { | 57 | struct basic_scan_params { |
50 | __le32 rx_config_options; | 58 | __le32 rx_config_options; |
@@ -52,10 +60,10 @@ struct basic_scan_params { | |||
52 | /* Scan option flags (WL1271_SCAN_OPT_*) */ | 60 | /* Scan option flags (WL1271_SCAN_OPT_*) */ |
53 | __le16 scan_options; | 61 | __le16 scan_options; |
54 | /* Number of scan channels in the list (maximum 30) */ | 62 | /* Number of scan channels in the list (maximum 30) */ |
55 | u8 num_channels; | 63 | u8 n_ch; |
56 | /* This field indicates the number of probe requests to send | 64 | /* This field indicates the number of probe requests to send |
57 | per channel for an active scan */ | 65 | per channel for an active scan */ |
58 | u8 num_probe_requests; | 66 | u8 n_probe_reqs; |
59 | /* Rate bit field for sending the probes */ | 67 | /* Rate bit field for sending the probes */ |
60 | __le32 tx_rate; | 68 | __le32 tx_rate; |
61 | u8 tid_trigger; | 69 | u8 tid_trigger; |