Player
Frontpage
Contents
User
Installation
Quick start
Supported devices
Tutorials
Utilities
Client libraries
FAQ
Help
Developer
Architecture
libplayercore
libplayerinterface
interfaces
libplayerdrivers
drivers
libplayercommon
libplayersd
libplayertcp
libplayerxdr
TODO
Online
Homepage
Download
Project
Bugs
Help
server
drivers
wifi
wlanscan
scan.h
1
/*
2
* Based on code from 'iw':
3
*
4
* Copyright (c) 2007, 2008 Johannes Berg
5
* Copyright (c) 2007 Andy Lutomirski
6
* Copyright (c) 2007 Mike Kershaw
7
* Copyright (c) 2008-2009 Luis R. Rodriguez
8
*
9
* Permission to use, copy, modify, and/or distribute this software for any
10
* purpose with or without fee is hereby granted, provided that the above
11
* copyright notice and this permission notice appear in all copies.
12
*
13
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
*
21
*/
22
23
/*
24
* Integration as a player driver was done by Michael Bienia.
25
*
26
* Copyright © 2010 Michael Bienia <m.bienia@stud.fh-dortmund.de>
27
*
28
*/
29
30
#ifndef WLANSCAN_SCAN_H
31
#define WLANSCAN_SCAN_H
32
33
#include <libplayerinterface/player.h>
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
39
struct
nl80211_state
{
40
struct
nl_handle *nl_handle;
41
struct
nl_cache *nl_cache;
42
struct
genl_family *nl80211;
43
};
44
45
struct
interface
{
46
const
char
*ifname;
47
unsigned
int
ifindex;
48
};
49
50
extern
int
nl80211_init(
struct
nl80211_state
*state);
51
extern
void
nl80211_cleanup(
struct
nl80211_state
*state);
52
53
extern
int
trigger_scan(
struct
nl80211_state
*state,
54
unsigned
int
passive,
struct
interface
*netif);
55
extern
unsigned
int
wait_scan(
struct
nl80211_state
*state,
56
struct
interface
*netif);
57
extern
int
get_scan_results(
struct
nl80211_state
*state,
58
struct
interface
*netif,
59
player_wifi_data_t
*wifi_data);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
#endif
nl80211_state
Definition:
scan.h:39
interface
Definition:
scan.h:45
player_wifi_data
Data: state (PLAYER_WIFI_DATA_STATE)
Definition:
player_interfaces.h:2247
Generated on Wed Sep 2 2020 16:39:28 for Player by
1.8.13