blob: 9e07b0464a8e1e432d82cb787f9e34ec95afe68f [file] [log] [blame]
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02001/**
2 * Interface for the wlan network scan routines
3 *
4 * Driver interface functions and type declarations for the scan module
Holger Schurig10078322007-11-15 18:05:47 -05005 * implemented in scan.c.
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02006 */
Holger Schurig10078322007-11-15 18:05:47 -05007#ifndef _LBS_SCAN_H
8#define _LBS_SCAN_H
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02009
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020010/**
11 * @brief Maximum number of channels that can be sent in a setuserscan ioctl
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020012 */
Holger Schurig10078322007-11-15 18:05:47 -050013#define LBS_IOCTL_USER_SCAN_CHAN_MAX 50
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020014
Holger Schurig10078322007-11-15 18:05:47 -050015int lbs_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len);
Dan Williamsfcdb53d2007-05-25 16:15:56 -040016
Holger Schurig69f90322007-11-23 15:43:44 +010017int lbs_send_specific_ssid_scan(struct lbs_private *priv, u8 *ssid,
Holger Schurig52933d82008-03-05 07:05:32 +010018 u8 ssid_len);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020019
Holger Schurig10078322007-11-15 18:05:47 -050020int lbs_get_scan(struct net_device *dev, struct iw_request_info *info,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020021 struct iw_point *dwrq, char *extra);
Holger Schurig10078322007-11-15 18:05:47 -050022int lbs_set_scan(struct net_device *dev, struct iw_request_info *info,
Holger Schurig52933d82008-03-05 07:05:32 +010023 union iwreq_data *wrqu, char *extra);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020024
Holger Schurig245bf202008-04-02 16:27:42 +020025int lbs_scan_networks(struct lbs_private *priv, int full_scan);
26
Holger Schurig10078322007-11-15 18:05:47 -050027void lbs_scan_worker(struct work_struct *work);
Dan Williams2afc0c52007-08-02 13:19:04 -040028
Holger Schurig10078322007-11-15 18:05:47 -050029#endif