diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2009-10-13 05:47:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:10 -0400 |
commit | abb0b3bfb2d2411034b721df21c31964265b851e (patch) | |
tree | 8788cfe6c870d4b36baa88e3acba6a4acc9e9c1d /drivers/net/wireless/wl12xx/wl1271_cmd.h | |
parent | 311494c47fb670a1fd74eea54fa4d02a56fcc2ad (diff) |
wl1271: Added support to scan on 5 GHz band
Added support to scan 802.11a access points on 5 GHz band when using
wl1273 chip.
Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h index 91430871c8fd..33089408e759 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h | |||
@@ -39,13 +39,14 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode); | |||
39 | int wl1271_cmd_read_memory(struct wl1271 *wl, u32 addr, void *answer, | 39 | int wl1271_cmd_read_memory(struct wl1271 *wl, u32 addr, void *answer, |
40 | size_t len); | 40 | size_t len); |
41 | int wl1271_cmd_scan(struct wl1271 *wl, u8 *ssid, size_t len, | 41 | int wl1271_cmd_scan(struct wl1271 *wl, u8 *ssid, size_t len, |
42 | u8 active_scan, u8 high_prio, u8 num_channels, | 42 | u8 active_scan, u8 high_prio, u8 band, |
43 | u8 probe_requests); | 43 | u8 probe_requests); |
44 | int wl1271_cmd_template_set(struct wl1271 *wl, u16 template_id, | 44 | int wl1271_cmd_template_set(struct wl1271 *wl, u16 template_id, |
45 | void *buf, size_t buf_len); | 45 | void *buf, size_t buf_len); |
46 | int wl1271_cmd_build_null_data(struct wl1271 *wl); | 46 | int wl1271_cmd_build_null_data(struct wl1271 *wl); |
47 | int wl1271_cmd_build_ps_poll(struct wl1271 *wl, u16 aid); | 47 | int wl1271_cmd_build_ps_poll(struct wl1271 *wl, u16 aid); |
48 | int wl1271_cmd_build_probe_req(struct wl1271 *wl, u8 *ssid, size_t ssid_len); | 48 | int wl1271_cmd_build_probe_req(struct wl1271 *wl, u8 *ssid, size_t ssid_len, |
49 | u8 band); | ||
49 | int wl1271_cmd_set_default_wep_key(struct wl1271 *wl, u8 id); | 50 | int wl1271_cmd_set_default_wep_key(struct wl1271 *wl, u8 id); |
50 | int wl1271_cmd_set_key(struct wl1271 *wl, u16 action, u8 id, u8 key_type, | 51 | int wl1271_cmd_set_key(struct wl1271 *wl, u16 action, u8 id, u8 key_type, |
51 | u8 key_size, const u8 *key, const u8 *addr, | 52 | u8 key_size, const u8 *key, const u8 *addr, |
@@ -343,6 +344,9 @@ struct wl1271_cmd_set_keys { | |||
343 | #define WL1271_SCAN_OPT_PRIORITY_HIGH 4 | 344 | #define WL1271_SCAN_OPT_PRIORITY_HIGH 4 |
344 | #define WL1271_SCAN_CHAN_MIN_DURATION 30000 /* TU */ | 345 | #define WL1271_SCAN_CHAN_MIN_DURATION 30000 /* TU */ |
345 | #define WL1271_SCAN_CHAN_MAX_DURATION 60000 /* TU */ | 346 | #define WL1271_SCAN_CHAN_MAX_DURATION 60000 /* TU */ |
347 | #define WL1271_SCAN_BAND_2_4_GHZ 0 | ||
348 | #define WL1271_SCAN_BAND_5_GHZ 1 | ||
349 | #define WL1271_SCAN_BAND_DUAL 2 | ||
346 | 350 | ||
347 | struct basic_scan_params { | 351 | struct basic_scan_params { |
348 | u32 rx_config_options; | 352 | u32 rx_config_options; |