Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
scan.c File Reference
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <linux/rtnetlink.h>
#include <linux/pm_qos.h>
#include <net/sch_generic.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <net/mac80211.h>
#include "ieee80211_i.h"
#include "driver-ops.h"
#include "mesh.h"

Go to the source code of this file.

Macros

#define IEEE80211_PROBE_DELAY   (HZ / 33)
 
#define IEEE80211_CHANNEL_TIME   (HZ / 33)
 
#define IEEE80211_PASSIVE_CHANNEL_TIME   (HZ / 8)
 

Functions

void ieee80211_rx_bss_put (struct ieee80211_local *local, struct ieee80211_bss *bss)
 
struct ieee80211_bssieee80211_bss_info_update (struct ieee80211_local *local, struct ieee80211_rx_status *rx_status, struct ieee80211_mgmt *mgmt, size_t len, struct ieee802_11_elems *elems, struct ieee80211_channel *channel, bool beacon)
 
void ieee80211_scan_rx (struct ieee80211_local *local, struct sk_buff *skb)
 
void ieee80211_scan_completed (struct ieee80211_hw *hw, bool aborted)
 
 EXPORT_SYMBOL (ieee80211_scan_completed)
 
void ieee80211_run_deferred_scan (struct ieee80211_local *local)
 
void ieee80211_scan_work (struct work_struct *work)
 
int ieee80211_request_scan (struct ieee80211_sub_if_data *sdata, struct cfg80211_scan_request *req)
 
int ieee80211_request_internal_scan (struct ieee80211_sub_if_data *sdata, const u8 *ssid, u8 ssid_len, struct ieee80211_channel *chan)
 
void ieee80211_scan_cancel (struct ieee80211_local *local)
 
int ieee80211_request_sched_scan_start (struct ieee80211_sub_if_data *sdata, struct cfg80211_sched_scan_request *req)
 
int ieee80211_request_sched_scan_stop (struct ieee80211_sub_if_data *sdata)
 
void ieee80211_sched_scan_results (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_sched_scan_results)
 
void ieee80211_sched_scan_stopped_work (struct work_struct *work)
 
void ieee80211_sched_scan_stopped (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_sched_scan_stopped)
 

Macro Definition Documentation

#define IEEE80211_CHANNEL_TIME   (HZ / 33)

Definition at line 29 of file scan.c.

#define IEEE80211_PASSIVE_CHANNEL_TIME   (HZ / 8)

Definition at line 30 of file scan.c.

#define IEEE80211_PROBE_DELAY   (HZ / 33)

Definition at line 28 of file scan.c.

Function Documentation

EXPORT_SYMBOL ( ieee80211_scan_completed  )
EXPORT_SYMBOL ( ieee80211_sched_scan_results  )
EXPORT_SYMBOL ( ieee80211_sched_scan_stopped  )
struct ieee80211_bss* ieee80211_bss_info_update ( struct ieee80211_local local,
struct ieee80211_rx_status rx_status,
struct ieee80211_mgmt mgmt,
size_t  len,
struct ieee802_11_elems elems,
struct ieee80211_channel channel,
bool  beacon 
)
read

Definition at line 66 of file scan.c.

int ieee80211_request_internal_scan ( struct ieee80211_sub_if_data sdata,
const u8 ssid,
u8  ssid_len,
struct ieee80211_channel chan 
)

Definition at line 822 of file scan.c.

int ieee80211_request_scan ( struct ieee80211_sub_if_data sdata,
struct cfg80211_scan_request req 
)

Definition at line 810 of file scan.c.

int ieee80211_request_sched_scan_start ( struct ieee80211_sub_if_data sdata,
struct cfg80211_sched_scan_request req 
)

Definition at line 916 of file scan.c.

int ieee80211_request_sched_scan_stop ( struct ieee80211_sub_if_data sdata)

Definition at line 966 of file scan.c.

void ieee80211_run_deferred_scan ( struct ieee80211_local local)

Definition at line 385 of file scan.c.

void ieee80211_rx_bss_put ( struct ieee80211_local local,
struct ieee80211_bss bss 
)

Definition at line 40 of file scan.c.

void ieee80211_scan_cancel ( struct ieee80211_local local)

Definition at line 872 of file scan.c.

void ieee80211_scan_completed ( struct ieee80211_hw hw,
bool  aborted 
)

ieee80211_scan_completed - completed hardware scan

When hardware scan offload is used (i.e. the hw_scan() callback is assigned) this function needs to be called by the driver to notify mac80211 that the scan finished. This function can be called from any context, including hardirq context.

: the hardware that finished the scan : set to true if scan was aborted

Definition at line 324 of file scan.c.

void ieee80211_scan_rx ( struct ieee80211_local local,
struct sk_buff skb 
)

Definition at line 168 of file scan.c.

void ieee80211_scan_work ( struct work_struct work)

Definition at line 714 of file scan.c.

void ieee80211_sched_scan_results ( struct ieee80211_hw hw)

ieee80211_sched_scan_results - got results from scheduled scan

When a scheduled scan is running, this function needs to be called by the driver whenever there are new scan results available.

: the hardware that is performing scheduled scans

Definition at line 987 of file scan.c.

void ieee80211_sched_scan_stopped ( struct ieee80211_hw hw)

ieee80211_sched_scan_stopped - inform that the scheduled scan has stopped

When a scheduled scan is running, this function can be called by the driver if it needs to stop the scan to perform another task. Usual scenarios are drivers that cannot continue the scheduled scan while associating, for instance.

: the hardware that is performing scheduled scans

Definition at line 1017 of file scan.c.

void ieee80211_sched_scan_stopped_work ( struct work_struct work)

Definition at line 997 of file scan.c.