blob: fab7d5d097fc73f5241117e35b4adc32b30a6c1c [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
Johannes Berg2c7060022008-10-30 22:09:54 +010010#include <net/iw_handler.h>
11
12#define MAX_NETWORK_COUNT 128
13
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020014/**
15 * @brief Maximum number of channels that can be sent in a setuserscan ioctl
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020016 */
Holger Schurig10078322007-11-15 18:05:47 -050017#define LBS_IOCTL_USER_SCAN_CHAN_MAX 50
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020018
Holger Schurig10078322007-11-15 18:05:47 -050019int lbs_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len);
Dan Williamsfcdb53d2007-05-25 16:15:56 -040020
Holger Schurig69f90322007-11-23 15:43:44 +010021int lbs_send_specific_ssid_scan(struct lbs_private *priv, u8 *ssid,
Holger Schurig52933d82008-03-05 07:05:32 +010022 u8 ssid_len);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020023
Holger Schurig10078322007-11-15 18:05:47 -050024int lbs_get_scan(struct net_device *dev, struct iw_request_info *info,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020025 struct iw_point *dwrq, char *extra);
Holger Schurig10078322007-11-15 18:05:47 -050026int lbs_set_scan(struct net_device *dev, struct iw_request_info *info,
Holger Schurig52933d82008-03-05 07:05:32 +010027 union iwreq_data *wrqu, char *extra);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020028
Holger Schurig245bf202008-04-02 16:27:42 +020029int lbs_scan_networks(struct lbs_private *priv, int full_scan);
30
Holger Schurig10078322007-11-15 18:05:47 -050031void lbs_scan_worker(struct work_struct *work);
Dan Williams2afc0c52007-08-02 13:19:04 -040032
Holger Schurig10078322007-11-15 18:05:47 -050033#endif