#ifndef __SCAN_H__
#define __SCAN_H__
#include "wlcore.h"
int wlcore_scan(struct wl1271 *wl, struct ieee80211_vif *vif,
const u8 *ssid, size_t ssid_len,
struct cfg80211_scan_request *req);
int wl1271_scan_build_probe_req(struct wl1271 *wl,
const u8 *ssid, size_t ssid_len,
const u8 *ie, size_t ie_len, u8 band);
void wl1271_scan_stm(struct wl1271 *wl, struct wl12xx_vif *wlvif);
void wl1271_scan_complete_work(struct work_struct *work);
int wl1271_scan_sched_scan_config(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct cfg80211_sched_scan_request *req,
struct ieee80211_scan_ies *ies);
int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif);
void wlcore_scan_sched_scan_results(struct wl1271 *wl);
#define WL1271_SCAN_MAX_CHANNELS …
#define WL1271_SCAN_DEFAULT_TAG …
#define WL1271_SCAN_CURRENT_TX_PWR …
#define WL1271_SCAN_OPT_ACTIVE …
#define WL1271_SCAN_OPT_PASSIVE …
#define WL1271_SCAN_OPT_SPLIT_SCAN …
#define WL1271_SCAN_OPT_PRIORITY_HIGH …
#define WL1271_SCAN_OPT_FORCE …
#define WL1271_SCAN_BAND_2_4_GHZ …
#define WL1271_SCAN_BAND_5_GHZ …
#define WL1271_SCAN_TIMEOUT …
enum { … };
struct wl1271_cmd_trigger_scan_to { … } __packed;
#define MAX_CHANNELS_2GHZ …
#define MAX_CHANNELS_4GHZ …
#define MAX_CHANNELS_5GHZ …
#define SCAN_MAX_CYCLE_INTERVALS …
#define SCAN_MAX_SHORT_INTERVALS …
#define SCAN_MAX_BANDS …
enum { … };
enum { … };
#define SCAN_CHANNEL_FLAGS_DFS …
#define SCAN_CHANNEL_FLAGS_DFS_ENABLED …
struct conn_scan_ch_params { … } __packed;
#define SCHED_SCAN_MAX_SSIDS …
enum { … };
struct wl1271_ssid { … } __packed;
struct wl1271_cmd_sched_scan_ssid_list { … } __packed;
struct wlcore_scan_channels { … };
enum { … };
bool
wlcore_set_scan_chan_params(struct wl1271 *wl,
struct wlcore_scan_channels *cfg,
struct ieee80211_channel *channels[],
u32 n_channels,
u32 n_ssids,
int scan_type);
int
wlcore_scan_sched_scan_ssid_list(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct cfg80211_sched_scan_request *req);
#endif