diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.h')
-rw-r--r-- | drivers/net/wireless/libertas/scan.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/scan.h b/drivers/net/wireless/libertas/scan.h index fab7d5d097fc..8fb1706d7526 100644 --- a/drivers/net/wireless/libertas/scan.h +++ b/drivers/net/wireless/libertas/scan.h | |||
@@ -9,8 +9,36 @@ | |||
9 | 9 | ||
10 | #include <net/iw_handler.h> | 10 | #include <net/iw_handler.h> |
11 | 11 | ||
12 | struct lbs_private; | ||
13 | |||
12 | #define MAX_NETWORK_COUNT 128 | 14 | #define MAX_NETWORK_COUNT 128 |
13 | 15 | ||
16 | /** Chan-freq-TxPower mapping table*/ | ||
17 | struct chan_freq_power { | ||
18 | /** channel Number */ | ||
19 | u16 channel; | ||
20 | /** frequency of this channel */ | ||
21 | u32 freq; | ||
22 | /** Max allowed Tx power level */ | ||
23 | u16 maxtxpower; | ||
24 | /** TRUE:channel unsupported; FLASE:supported*/ | ||
25 | u8 unsupported; | ||
26 | }; | ||
27 | |||
28 | /** region-band mapping table*/ | ||
29 | struct region_channel { | ||
30 | /** TRUE if this entry is valid */ | ||
31 | u8 valid; | ||
32 | /** region code for US, Japan ... */ | ||
33 | u8 region; | ||
34 | /** band B/G/A, used for BAND_CONFIG cmd */ | ||
35 | u8 band; | ||
36 | /** Actual No. of elements in the array below */ | ||
37 | u8 nrcfp; | ||
38 | /** chan-freq-txpower mapping table*/ | ||
39 | struct chan_freq_power *CFP; | ||
40 | }; | ||
41 | |||
14 | /** | 42 | /** |
15 | * @brief Maximum number of channels that can be sent in a setuserscan ioctl | 43 | * @brief Maximum number of channels that can be sent in a setuserscan ioctl |
16 | */ | 44 | */ |
@@ -18,6 +46,8 @@ | |||
18 | 46 | ||
19 | int lbs_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len); | 47 | int lbs_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len); |
20 | 48 | ||
49 | int lbs_set_regiontable(struct lbs_private *priv, u8 region, u8 band); | ||
50 | |||
21 | int lbs_send_specific_ssid_scan(struct lbs_private *priv, u8 *ssid, | 51 | int lbs_send_specific_ssid_scan(struct lbs_private *priv, u8 *ssid, |
22 | u8 ssid_len); | 52 | u8 ssid_len); |
23 | 53 | ||