struct wireless_dev — wireless device state
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; 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 };
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
list of registrations for management frames
lock for the list
mutex used to lock data in this struct, may be used by drivers and some API functions require it held
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
true if this is a P2P Device that has been started
The address for this device, valid only if netdev
is NULL
(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) cfg80211 software SME connection state machine data
(private) keys to set after connection is established
(private) list for internal event processing
(private) lock for event list
(private) Used by the internal configuration code
(private) Used by the internal configuration code to track the channel to be used for AP later
(private) Used by the internal configuration code to track the user-set channel definition.
(private) IBSS is using fixed BSSID
(private) IBSS may change to a DFS channel
powersave mode is enabled
dynamic powersave timeout
beacon interval used on this device for transmitting beacons, 0 when not valid
(private) netlink port ID of application registered for unexpected class 3 frames (AP mode)
true if DFS channel availability check has been started
timestamp (jiffies) when the dfs state was entered.
CAC time in ms
(private) owner socket port ID
(private) Used by the internal wireless extensions compat code
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.