STRUCT WIRELESS_DEV(9) | Device registration | STRUCT WIRELESS_DEV(9) |
NAME¶
struct_wireless_dev - wireless device state
SYNOPSIS¶
struct wireless_dev {
struct wiphy * wiphy;
enum nl80211_iftype iftype;
struct list_head list;
struct net_device * netdev;
u32 identifier;
struct list_head mgmt_registrations;
spinlock_t mgmt_registrations_lock;
struct mutex mtx;
bool use_4addr;
bool p2p_started;
u8 address[ETH_ALEN];
u8 ssid[IEEE80211_MAX_SSID_LEN];
u8 ssid_len;
u8 mesh_id_len;
u8 mesh_id_up_len;
struct cfg80211_conn * conn;
struct cfg80211_cached_keys * connect_keys;
enum ieee80211_bss_type conn_bss_type;
struct list_head event_list;
spinlock_t event_lock;
struct cfg80211_internal_bss * current_bss;
struct cfg80211_chan_def preset_chandef;
struct cfg80211_chan_def chandef;
bool ibss_fixed;
bool ibss_dfs_possible;
bool ps;
int ps_timeout;
int beacon_interval;
u32 ap_unexpected_nlportid;
bool cac_started;
unsigned long cac_start_time;
unsigned int cac_time_ms;
u32 owner_nlportid; #ifdef CONFIG_CFG80211_WEXT
struct wext; #endif };
MEMBERS¶
wiphy
iftype
list
netdev
identifier
mgmt_registrations
mgmt_registrations_lock
mtx
use_4addr
p2p_started
address[ETH_ALEN]
ssid[IEEE80211_MAX_SSID_LEN]
ssid_len
mesh_id_len
mesh_id_up_len
conn
connect_keys
conn_bss_type
event_list
event_lock
current_bss
preset_chandef
chandef
ibss_fixed
ibss_dfs_possible
ps
ps_timeout
beacon_interval
ap_unexpected_nlportid
cac_started
cac_start_time
cac_time_ms
owner_nlportid
wext
DESCRIPTION¶
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.
AUTHOR¶
Johannes Berg <johannes@sipsolutions.net>
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |