STRUCT WIRELESS_DEV
Section: Device registration (9)
Updated: February 2011
Index
Return to Main Contents
NAME
struct_wireless_dev - wireless per-netdev state
SYNOPSIS
struct wireless_dev {
struct wiphy * wiphy;
enum nl80211_iftype iftype;
struct list_head list;
struct net_device * netdev;
struct list_head mgmt_registrations;
spinlock_t mgmt_registrations_lock;
struct mutex mtx;
struct work_struct cleanup_work;
bool use_4addr;
u8 ssid[IEEE80211_MAX_SSID_LEN];
u8 ssid_len;
enum wext;
#endif
};
MEMBERS
wiphy
-
pointer to hardware description
iftype
-
interface type
list
-
(private) Used to collect the interfaces
netdev
-
(private) Used to reference back to the netdev
mgmt_registrations
-
list of registrations for management frames
mgmt_registrations_lock
-
lock for the list
mtx
-
mutex used to lock data in this struct
cleanup_work
-
work struct used for cleanup that can't be done directly
use_4addr
-
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
ssid[IEEE80211_MAX_SSID_LEN]
-
(private) Used by the internal configuration code
ssid_len
-
(private) Used by the internal configuration code
wext
-
(private) Used by the internal wireless extensions compat code
DESCRIPTION
This structure must be allocated by the driver/stack that uses the ieee80211_ptr field in struct net_device (this is intentional so it can be allocated along with the netdev.)
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
-
Author.
COPYRIGHT