2 * Interface for the wlan network scan routines
4 * Driver interface functions and type declarations for the scan module
5 * implemented in scan.c.
10 #include <net/iw_handler.h>
14 #define MAX_NETWORK_COUNT 128
16 /** Chan-freq-TxPower mapping table*/
17 struct chan_freq_power
{
20 /** frequency of this channel */
22 /** Max allowed Tx power level */
24 /** TRUE:channel unsupported; FLASE:supported*/
28 /** region-band mapping table*/
29 struct region_channel
{
30 /** TRUE if this entry is valid */
32 /** region code for US, Japan ... */
34 /** band B/G/A, used for BAND_CONFIG cmd */
36 /** Actual No. of elements in the array below */
38 /** chan-freq-txpower mapping table*/
39 struct chan_freq_power
*CFP
;
43 * @brief Maximum number of channels that can be sent in a setuserscan ioctl
45 #define LBS_IOCTL_USER_SCAN_CHAN_MAX 50
47 int lbs_ssid_cmp(u8
*ssid1
, u8 ssid1_len
, u8
*ssid2
, u8 ssid2_len
);
49 int lbs_set_regiontable(struct lbs_private
*priv
, u8 region
, u8 band
);
51 int lbs_send_specific_ssid_scan(struct lbs_private
*priv
, u8
*ssid
,
54 int lbs_get_scan(struct net_device
*dev
, struct iw_request_info
*info
,
55 struct iw_point
*dwrq
, char *extra
);
56 int lbs_set_scan(struct net_device
*dev
, struct iw_request_info
*info
,
57 union iwreq_data
*wrqu
, char *extra
);
59 int lbs_scan_networks(struct lbs_private
*priv
, int full_scan
);
61 void lbs_scan_worker(struct work_struct
*work
);