Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
scan.h File Reference
#include "wlcore.h"

Go to the source code of this file.

Data Structures

struct  basic_scan_params
 
struct  basic_scan_channel_params
 
struct  wl1271_cmd_scan
 
struct  wl1271_cmd_trigger_scan_to
 
struct  conn_scan_ch_params
 
struct  wl1271_cmd_sched_scan_config
 
struct  wl1271_ssid
 
struct  wl1271_cmd_sched_scan_ssid_list
 
struct  wl1271_cmd_sched_scan_start
 
struct  wl1271_cmd_sched_scan_stop
 

Macros

#define WL1271_SCAN_MAX_CHANNELS   24
 
#define WL1271_SCAN_DEFAULT_TAG   1
 
#define WL1271_SCAN_CURRENT_TX_PWR   0
 
#define WL1271_SCAN_OPT_ACTIVE   0
 
#define WL1271_SCAN_OPT_PASSIVE   1
 
#define WL1271_SCAN_OPT_SPLIT_SCAN   2
 
#define WL1271_SCAN_OPT_PRIORITY_HIGH   4
 
#define WL1271_SCAN_OPT_FORCE   8
 
#define WL1271_SCAN_BAND_2_4_GHZ   0
 
#define WL1271_SCAN_BAND_5_GHZ   1
 
#define WL1271_SCAN_TIMEOUT   30000 /* msec */
 
#define MAX_CHANNELS_2GHZ   14
 
#define MAX_CHANNELS_5GHZ   23
 
#define MAX_CHANNELS_4GHZ   4
 
#define SCAN_MAX_CYCLE_INTERVALS   16
 
#define SCAN_MAX_BANDS   3
 
#define SCAN_CHANNEL_FLAGS_DFS
 
#define SCAN_CHANNEL_FLAGS_DFS_ENABLED   BIT(1)
 
#define SCHED_SCAN_MAX_SSIDS   16
 

Enumerations

enum  {
  WL1271_SCAN_STATE_IDLE, WL1271_SCAN_STATE_2GHZ_ACTIVE, WL1271_SCAN_STATE_2GHZ_PASSIVE, WL1271_SCAN_STATE_5GHZ_ACTIVE,
  WL1271_SCAN_STATE_5GHZ_PASSIVE, WL1271_SCAN_STATE_DONE
}
 
enum  { SCAN_SSID_FILTER_ANY = 0, SCAN_SSID_FILTER_SPECIFIC = 1, SCAN_SSID_FILTER_LIST = 2, SCAN_SSID_FILTER_DISABLED = 3 }
 
enum  { SCAN_BSS_TYPE_INDEPENDENT, SCAN_BSS_TYPE_INFRASTRUCTURE, SCAN_BSS_TYPE_ANY }
 
enum  { SCAN_SSID_TYPE_PUBLIC = 0, SCAN_SSID_TYPE_HIDDEN = 1 }
 

Functions

int wl1271_scan (struct wl1271 *wl, struct ieee80211_vif *vif, const u8 *ssid, size_t ssid_len, struct cfg80211_scan_request *req)
 
int wl1271_scan_stop (struct wl1271 *wl)
 
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 ieee80211_vif *vif)
 
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_sched_scan_ies *ies)
 
int wl1271_scan_sched_scan_start (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
void wl1271_scan_sched_scan_stop (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
void wl1271_scan_sched_scan_results (struct wl1271 *wl)
 

Variables

struct basic_scan_params __packed
 

Macro Definition Documentation

#define MAX_CHANNELS_2GHZ   14

Definition at line 125 of file scan.h.

#define MAX_CHANNELS_4GHZ   4

Definition at line 127 of file scan.h.

#define MAX_CHANNELS_5GHZ   23

Definition at line 126 of file scan.h.

#define SCAN_CHANNEL_FLAGS_DFS
Value:
BIT(0) /* channel is passive until an
activity is detected on it */

Definition at line 145 of file scan.h.

#define SCAN_CHANNEL_FLAGS_DFS_ENABLED   BIT(1)

Definition at line 146 of file scan.h.

#define SCAN_MAX_BANDS   3

Definition at line 130 of file scan.h.

#define SCAN_MAX_CYCLE_INTERVALS   16

Definition at line 129 of file scan.h.

#define SCHED_SCAN_MAX_SSIDS   16

Definition at line 199 of file scan.h.

#define WL1271_SCAN_BAND_2_4_GHZ   0

Definition at line 55 of file scan.h.

#define WL1271_SCAN_BAND_5_GHZ   1

Definition at line 56 of file scan.h.

#define WL1271_SCAN_CURRENT_TX_PWR   0

Definition at line 48 of file scan.h.

#define WL1271_SCAN_DEFAULT_TAG   1

Definition at line 47 of file scan.h.

#define WL1271_SCAN_MAX_CHANNELS   24

Definition at line 46 of file scan.h.

#define WL1271_SCAN_OPT_ACTIVE   0

Definition at line 49 of file scan.h.

#define WL1271_SCAN_OPT_FORCE   8

Definition at line 54 of file scan.h.

#define WL1271_SCAN_OPT_PASSIVE   1

Definition at line 50 of file scan.h.

#define WL1271_SCAN_OPT_PRIORITY_HIGH   4

Definition at line 52 of file scan.h.

#define WL1271_SCAN_OPT_SPLIT_SCAN   2

Definition at line 51 of file scan.h.

#define WL1271_SCAN_TIMEOUT   30000 /* msec */

Definition at line 58 of file scan.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
WL1271_SCAN_STATE_IDLE 
WL1271_SCAN_STATE_2GHZ_ACTIVE 
WL1271_SCAN_STATE_2GHZ_PASSIVE 
WL1271_SCAN_STATE_5GHZ_ACTIVE 
WL1271_SCAN_STATE_5GHZ_PASSIVE 
WL1271_SCAN_STATE_DONE 

Definition at line 60 of file scan.h.

anonymous enum
Enumerator:
SCAN_SSID_FILTER_ANY 
SCAN_SSID_FILTER_SPECIFIC 
SCAN_SSID_FILTER_LIST 
SCAN_SSID_FILTER_DISABLED 

Definition at line 132 of file scan.h.

anonymous enum
Enumerator:
SCAN_BSS_TYPE_INDEPENDENT 
SCAN_BSS_TYPE_INFRASTRUCTURE 
SCAN_BSS_TYPE_ANY 

Definition at line 139 of file scan.h.

anonymous enum
Enumerator:
SCAN_SSID_TYPE_PUBLIC 
SCAN_SSID_TYPE_HIDDEN 

Definition at line 201 of file scan.h.

Function Documentation

int wl1271_scan ( struct wl1271 wl,
struct ieee80211_vif vif,
const u8 ssid,
size_t  ssid_len,
struct cfg80211_scan_request req 
)

Definition at line 342 of file scan.c.

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_complete_work ( struct work_struct work)

Definition at line 34 of file scan.c.

int wl1271_scan_sched_scan_config ( struct wl1271 wl,
struct wl12xx_vif wlvif,
struct cfg80211_sched_scan_request req,
struct ieee80211_sched_scan_ies ies 
)

Definition at line 666 of file scan.c.

void wl1271_scan_sched_scan_results ( struct wl1271 wl)

Definition at line 788 of file scan.c.

int wl1271_scan_sched_scan_start ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 755 of file scan.c.

void wl1271_scan_sched_scan_stop ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 795 of file scan.c.

void wl1271_scan_stm ( struct wl1271 wl,
struct ieee80211_vif vif 
)

Definition at line 253 of file scan.c.

int wl1271_scan_stop ( struct wl1271 wl)

Definition at line 378 of file scan.c.

Variable Documentation