wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
driver_nl80211_scan.c File Reference

Driver interaction with Linux nl80211/cfg80211 - Scanning Copyright (c) 2007, Johannes Berg johan.nosp@m.nes@.nosp@m.sipso.nosp@m.luti.nosp@m.ons.n.nosp@m.et Copyright (c) 2009-2010, Atheros Communications. More...

#include "includes.h"
#include <netlink/genl/genl.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "driver_nl80211.h"

Functions

void wpa_driver_nl80211_scan_timeout (void *eloop_ctx, void *timeout_ctx)
 Scan timeout to report scan completion. More...
 
int wpa_driver_nl80211_scan (struct i802_bss *bss, struct wpa_driver_scan_params *params)
 Request the driver to initiate scan. More...
 
int wpa_driver_nl80211_sched_scan (void *priv, struct wpa_driver_scan_params *params, u32 interval)
 Initiate a scheduled scan. More...
 
int wpa_driver_nl80211_stop_sched_scan (void *priv)
 Stop a scheduled scan. More...
 
const u8 * nl80211_get_ie (const u8 *ies, size_t ies_len, u8 ie)
 
int bss_info_handler (struct nl_msg *msg, void *arg)
 
struct wpa_scan_resultswpa_driver_nl80211_get_scan_results (void *priv)
 Fetch the latest scan results. More...
 
void nl80211_dump_scan (struct wpa_driver_nl80211_data *drv)
 

Detailed Description

Driver interaction with Linux nl80211/cfg80211 - Scanning Copyright (c) 2007, Johannes Berg johan.nosp@m.nes@.nosp@m.sipso.nosp@m.luti.nosp@m.ons.n.nosp@m.et Copyright (c) 2009-2010, Atheros Communications.

Function Documentation

struct wpa_scan_results* wpa_driver_nl80211_get_scan_results ( void *  priv)

Fetch the latest scan results.

Parameters
privPointer to private wext data from wpa_driver_nl80211_init()
Returns
Scan results on success, -1 on failure
int wpa_driver_nl80211_scan ( struct i802_bss bss,
struct wpa_driver_scan_params params 
)

Request the driver to initiate scan.

Parameters
bssPointer to private driver data from wpa_driver_nl80211_init()
paramsScan parameters
Returns
0 on success, -1 on failure
void wpa_driver_nl80211_scan_timeout ( void *  eloop_ctx,
void *  timeout_ctx 
)

Scan timeout to report scan completion.

Parameters
eloop_ctxDriver private data
timeout_ctxctx argument given to wpa_driver_nl80211_init()

This function can be used as registered timeout when starting a scan to generate a scan completed event if the driver does not report this.

int wpa_driver_nl80211_sched_scan ( void *  priv,
struct wpa_driver_scan_params params,
u32  interval 
)

Initiate a scheduled scan.

Parameters
privPointer to private driver data from wpa_driver_nl80211_init()
paramsScan parameters
intervalInterval between scan cycles in milliseconds
Returns
0 on success, -1 on failure or if not supported
int wpa_driver_nl80211_stop_sched_scan ( void *  priv)

Stop a scheduled scan.

Parameters
privPointer to private driver data from wpa_driver_nl80211_init()
Returns
0 on success, -1 on failure or if not supported