Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Data Fields
wireless_dev Struct Reference

#include <cfg80211.h>

Public Types

enum  { CFG80211_SME_IDLE, CFG80211_SME_CONNECTING, CFG80211_SME_CONNECTED }
 

Public Member Functions

u8 address[ETH_ALEN__aligned (sizeof(u16))
 

Data Fields

struct wiphywiphy
 
enum nl80211_iftype iftype
 
struct list_head list
 
struct net_devicenetdev
 
u32 identifier
 
struct list_head mgmt_registrations
 
spinlock_t mgmt_registrations_lock
 
struct mutex mtx
 
struct work_struct cleanup_work
 
bool use_4addr
 
bool p2p_started
 
u8 ssid [IEEE80211_MAX_SSID_LEN]
 
u8 ssid_len
 
u8 mesh_id_len
 
u8 mesh_id_up_len
 
enum wireless_dev:: { ... }  sme_state
 
struct cfg80211_connconn
 
struct cfg80211_cached_keysconnect_keys
 
struct list_head event_list
 
spinlock_t event_lock
 
struct cfg80211_internal_bsscurrent_bss
 
struct ieee80211_channelpreset_chan
 
enum nl80211_channel_type preset_chantype
 
struct ieee80211_channelchannel
 
bool ibss_fixed
 
bool ps
 
int ps_timeout
 
int beacon_interval
 
u32 ap_unexpected_nlportid
 

Detailed Description

struct wireless_dev - wireless device state

For netdevs, this structure must be allocated by the driver that uses the ieee80211_ptr field in struct net_device (this is intentional so it can be allocated along with the netdev.) It need not be registered then as netdev registration will be intercepted by cfg80211 to see the new wireless device.

For non-netdev uses, it must also be allocated by the driver in response to the cfg80211 callbacks that require it, as there's no netdev registration in that case it may not be allocated outside of callback operations that return it.

: pointer to hardware description : interface type : (private) Used to collect the interfaces : (private) Used to reference back to the netdev, may be NULL : (private) Identifier used in nl80211 to identify this wireless device if it has no netdev : (private) Used by the internal configuration code : (private) Used by the internal configuration code to track the user-set AP, monitor and WDS channel : (private) Used by the internal configuration code to track the channel to be used for AP later : (private) the corresponding channel type : (private) Used by the internal configuration code : (private) Used by the internal configuration code : (private) Used by the internal configuration code : (private) Used by the internal configuration code : (private) Used by the internal configuration code : (private) Used by the internal wireless extensions compat code : indicates 4addr mode is used on this interface, must be set by driver (if supported) on add_interface BEFORE registering the netdev and may otherwise be used by driver read-only, will be update by cfg80211 on change_interface : list of registrations for management frames : lock for the list : mutex used to lock data in this struct : work struct used for cleanup that can't be done directly : beacon interval used on this device for transmitting beacons, 0 when not valid : The address for this device, valid only if is NULL : true if this is a P2P Device that has been started

Definition at line 2412 of file cfg80211.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
CFG80211_SME_IDLE 
CFG80211_SME_CONNECTING 
CFG80211_SME_CONNECTED 

Definition at line 2436 of file cfg80211.h.

Member Function Documentation

u8 address [ETH_ALEN] __aligned ( sizeof(u16 )

Field Documentation

u32 ap_unexpected_nlportid

Definition at line 2461 of file cfg80211.h.

int beacon_interval

Definition at line 2459 of file cfg80211.h.

Definition at line 2452 of file cfg80211.h.

struct work_struct cleanup_work

Definition at line 2427 of file cfg80211.h.

Definition at line 2441 of file cfg80211.h.

Definition at line 2442 of file cfg80211.h.

Definition at line 2447 of file cfg80211.h.

Definition at line 2444 of file cfg80211.h.

spinlock_t event_lock

Definition at line 2445 of file cfg80211.h.

bool ibss_fixed

Definition at line 2454 of file cfg80211.h.

u32 identifier

Definition at line 2420 of file cfg80211.h.

Definition at line 2414 of file cfg80211.h.

Definition at line 2417 of file cfg80211.h.

u8 mesh_id_len

Definition at line 2435 of file cfg80211.h.

u8 mesh_id_up_len

Definition at line 2435 of file cfg80211.h.

struct list_head mgmt_registrations

Definition at line 2422 of file cfg80211.h.

spinlock_t mgmt_registrations_lock

Definition at line 2423 of file cfg80211.h.

Definition at line 2425 of file cfg80211.h.

struct net_device* netdev

Definition at line 2418 of file cfg80211.h.

bool p2p_started

Definition at line 2429 of file cfg80211.h.

struct ieee80211_channel* preset_chan

Definition at line 2448 of file cfg80211.h.

enum nl80211_channel_type preset_chantype

Definition at line 2449 of file cfg80211.h.

bool ps

Definition at line 2456 of file cfg80211.h.

int ps_timeout

Definition at line 2457 of file cfg80211.h.

enum { ... } sme_state

Definition at line 2434 of file cfg80211.h.

u8 ssid_len

Definition at line 2435 of file cfg80211.h.

bool use_4addr

Definition at line 2429 of file cfg80211.h.

Definition at line 2413 of file cfg80211.h.


The documentation for this struct was generated from the following file: