Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_wireless_dev(9) [centos man page]

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; struct work_struct cleanup_work; 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; 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, may be NULL identifier (private) Identifier used in nl80211 to identify this wireless device if it has no 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 p2p_started true if this is a P2P Device that has been started address[ETH_ALEN] The address for this device, valid only if netdev is NULL ssid[IEEE80211_MAX_SSID_LEN] (private) Used by the internal configuration code ssid_len (private) Used by the internal configuration code mesh_id_len (private) Used by the internal configuration code mesh_id_up_len (private) Used by the internal configuration code wext (private) Used by the internal wireless extensions compat code 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> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT WIRELESS_DEV(9)

Check Out this Related Man Page

STRUCT 
IEEE80211_HW(9) The basic mac80211 driver inte STRUCT IEEE80211_HW(9) NAME
struct_ieee80211_hw - hardware information and state SYNOPSIS
struct ieee80211_hw { struct ieee80211_conf conf; struct wiphy * wiphy; const char * rate_control_algorithm; void * priv; u32 flags; unsigned int extra_tx_headroom; int channel_change_time; int vif_data_size; int sta_data_size; int chanctx_data_size; int napi_weight; u16 queues; u16 max_listen_interval; s8 max_signal; u8 max_rates; u8 max_report_rates; u8 max_rate_tries; u8 max_rx_aggregation_subframes; u8 max_tx_aggregation_subframes; u8 offchannel_tx_hw_queue; u8 radiotap_mcs_details; u16 radiotap_vht_details; netdev_features_t netdev_features; u8 uapsd_queues; u8 uapsd_max_sp_len; }; MEMBERS
conf struct ieee80211_conf, device configuration, don't use. wiphy This points to the struct wiphy allocated for this 802.11 PHY. You must fill in the perm_addr and dev members of this structure using SET_IEEE80211_DEV and SET_IEEE80211_PERM_ADDR. Additionally, all supported bands (with channels, bitrates) are registered here. rate_control_algorithm rate control algorithm for this hardware. If unset (NULL), the default algorithm will be used. Must be set before calling ieee80211_register_hw. priv pointer to private area that was allocated for driver use along with this structure. flags hardware flags, see enum ieee80211_hw_flags. extra_tx_headroom headroom to reserve in each transmit skb for use by the driver (e.g. for transmit headers.) channel_change_time time (in microseconds) it takes to change channels. vif_data_size size (in bytes) of the drv_priv data area within struct ieee80211_vif. sta_data_size size (in bytes) of the drv_priv data area within struct ieee80211_sta. chanctx_data_size size (in bytes) of the drv_priv data area within struct ieee80211_chanctx_conf. napi_weight weight used for NAPI polling. You must specify an appropriate value here if a napi_poll operation is provided by your driver. queues number of available hardware transmit queues for data packets. WMM/QoS requires at least four, these queues need to have configurable access parameters. max_listen_interval max listen interval in units of beacon interval that HW supports max_signal Maximum value for signal (rssi) in RX information, used only when IEEE80211_HW_SIGNAL_UNSPEC or IEEE80211_HW_SIGNAL_DB max_rates maximum number of alternate rate retry stages the hw can handle. max_report_rates maximum number of alternate rate retry stages the hw can report back. max_rate_tries maximum number of tries for each stage max_rx_aggregation_subframes maximum buffer size (number of sub-frames) to be used for A-MPDU block ack receiver aggregation. This is only relevant if the device has restrictions on the number of subframes, if it relies on mac80211 to do reordering it shouldn't be set. max_tx_aggregation_subframes maximum number of subframes in an aggregate an HT driver will transmit, used by the peer as a hint to size its reorder buffer. offchannel_tx_hw_queue HW queue ID to use for offchannel TX (if IEEE80211_HW_QUEUE_CONTROL is set) radiotap_mcs_details lists which MCS information can the HW reports, by default it is set to _MCS, _GI and _BW but doesn't include _FMT. Use IEEE80211_RADIOTAP_MCS_HAVE_* values, only adding _BW is supported today. radiotap_vht_details lists which VHT MCS information the HW reports, the default is _GI | _BANDWIDTH. Use the IEEE80211_RADIOTAP_VHT_KNOWN_* values. netdev_features netdev features to be set in each netdev created from this HW. Note only HW checksum features are currently compatible with mac80211. Other feature bits will be rejected. uapsd_queues This bitmap is included in (re)association frame to indicate for each access category if it is uAPSD trigger-enabled and delivery- enabled. Use IEEE80211_WMM_IE_STA_QOSINFO_AC_* to set this bitmap. Each bit corresponds to different AC. Value '1' in specific bit means that corresponding AC is both trigger- and delivery-enabled. '0' means neither enabled. uapsd_max_sp_len maximum number of total buffered frames the WMM AP may deliver to a WMM STA during any Service Period triggered by the WMM STA. Use IEEE80211_WMM_IE_STA_QOSINFO_SP_* for correct values. DESCRIPTION
This structure contains the configuration and hardware information for an 802.11 PHY. AUTHOR
Johannes Berg <johannes@sipsolutions.net> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT IEEE80211_HW(9)
Man Page