This document provides a comprehensive overview of the nl80211
commands, detailing their purpose, required attributes, and expected behavior.
nl80211
commands can be broadly categorized by the type of wireless object they interact with:
- Wiphy Commands: Manage wireless physical devices (wiphys).
- Interface Commands: Manage virtual network interfaces.
- Key Management Commands: Handle encryption keys.
- AP/Beacon Commands: Control Access Point (AP) functionality and beaconing.
- Station Commands: Manage connected stations.
- Mesh Commands: Manage mesh networking paths and configurations.
- Regulatory Commands: Interact with the regulatory domain.
- Scan Commands: Initiate and retrieve scan results.
- Authentication/Association Commands: Handle connection establishment and teardown.
- Power Management Commands: Control device power save modes.
- TDLS Commands: Manage Tunneled Direct Link Setup (TDLS).
- Vendor Commands: Driver-specific commands.
- Other Commands: Miscellaneous functionalities.
NL80211_CMD_GET_WIPHY
- Description: Requests information about a wiphy or dumps a list of all present wiphys.
- Attributes:
NL80211_ATTR_WIPHY
(optional): Specific wiphy index.
NL80211_CMD_SET_WIPHY
- Description: Sets wiphy parameters.
- Attributes:
NL80211_ATTR_WIPHY
orNL80211_ATTR_IFINDEX
: Identifies the wiphy.NL80211_ATTR_WIPHY_NAME
(optional): New name for the wiphy.NL80211_ATTR_WIPHY_TXQ_PARAMS
(optional): Nested array of TX queue parameters.NL80211_ATTR_WIPHY_FREQ
(optional): Frequency for monitor mode channel (deprecated, useNL80211_CMD_SET_CHANNEL
).NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Frequency offset for monitor mode channel.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width for monitor mode channel.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1 for monitor mode channel.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2 for monitor mode channel.NL80211_ATTR_WIPHY_RETRY_SHORT
(optional): Short retry limit.NL80211_ATTR_WIPHY_RETRY_LONG
(optional): Long retry limit.NL80211_ATTR_WIPHY_FRAG_THRESHOLD
(optional): Fragmentation threshold.NL80211_ATTR_WIPHY_RTS_THRESHOLD
(optional): RTS threshold.
NL80211_CMD_NEW_WIPHY
- Description: Notification of a newly created wiphy or response to a GET request.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_WIPHY_NAME
: Wiphy name.
NL80211_CMD_DEL_WIPHY
- Description: Notification of a wiphy deletion.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_WIPHY_NAME
: Wiphy name.
NL80211_CMD_SET_WIPHY_NETNS
- Description: Sets a wiphy's network namespace. All associated devices must be down.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_PID
orNL80211_ATTR_NETNS_FD
: Target network namespace.
NL80211_CMD_GET_INTERFACE
- Description: Requests an interface's configuration or dumps all interfaces.
- Attributes:
NL80211_ATTR_IFINDEX
(optional): Specific interface index.
NL80211_CMD_SET_INTERFACE
- Description: Sets the type of a virtual interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_IFTYPE
: New interface type.
NL80211_CMD_NEW_INTERFACE
- Description: Notification of a newly created virtual interface, response to
NL80211_CMD_GET_INTERFACE
, or request to create a new virtual interface. - Attributes (for creation request):
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_IFTYPE
: Interface type.NL80211_ATTR_IFNAME
: Interface name.NL80211_ATTR_MAC
(optional): MAC address for the new interface.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie interface lifetime to the creating socket.
- Attributes (for notification/response):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_IFTYPE
: Interface type.
- Description: Notification of a newly created virtual interface, response to
NL80211_CMD_DEL_INTERFACE
- Description: Notification of a virtual interface deletion or request to delete one.
- Attributes (for deletion request):
NL80211_ATTR_IFINDEX
: Interface index.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY
: Wiphy index.
NL80211_CMD_ADD_LINK
- Description: Adds a new link to an interface, primarily for Multi-Link Operation (MLO).
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MLO_LINK_ID
: The ID for the new link.
NL80211_CMD_REMOVE_LINK
- Description: Removes a link from an interface. Can remove all links if
NL80211_ATTR_MLO_LINK_ID
is omitted. - Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MLO_LINK_ID
(optional): Specific link ID to remove.
- Description: Removes a link from an interface. Can remove all links if
NL80211_CMD_GET_KEY
- Description: Gets sequence counter information for a key.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_KEY_IDX
(optional): Key ID.NL80211_ATTR_MAC
(optional): MAC address for pairwise key (MLD address for MLO).NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLO group key.
NL80211_CMD_SET_KEY
- Description: Sets key attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_KEY_IDX
: Key ID.NL80211_ATTR_MAC
(optional): MAC address for pairwise key.NL80211_ATTR_KEY_DEFAULT
(optional): Flag to set as default key.NL80211_ATTR_KEY_DEFAULT_MGMT
(optional): Flag to set as default management key.NL80211_ATTR_KEY_DEFAULT_TYPES
(optional): Nested attribute for specific default key types.NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLO default key.
NL80211_CMD_NEW_KEY
- Description: Adds a new key.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_KEY_DATA
: Key material.NL80211_ATTR_KEY_IDX
: Key ID.NL80211_ATTR_MAC
(optional): MAC address for pairwise key (MLD address for MLO).NL80211_ATTR_KEY_CIPHER
: Cipher suite.NL80211_ATTR_KEY_SEQ
(optional): Transmit key sequence number.NL80211_ATTR_KEY_DEFAULT
(optional): Flag to set as default key.NL80211_ATTR_KEY_DEFAULT_MGMT
(optional): Flag to set as default management key.NL80211_ATTR_KEY_DEFAULT_TYPES
(optional): Nested attribute for specific default key types.NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLO group key.NL80211_ATTR_VLAN_ID
(optional): VLAN ID for group key.
NL80211_CMD_DEL_KEY
- Description: Deletes a key.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_KEY_IDX
(optional): Key ID.NL80211_ATTR_MAC
(optional): MAC address for pairwise key (MLD address for MLO).NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLO group key.
NL80211_CMD_GET_BEACON
- Description: (Not used)
NL80211_CMD_SET_BEACON
- Description: Changes the beacon on an AP interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_BEACON_HEAD
(optional): Portion of beacon before TIM IE.NL80211_ATTR_BEACON_TAIL
(optional): Portion of beacon after TIM IE.NL80211_ATTR_IE
(optional): Information elements.NL80211_ATTR_IE_PROBE_RESP
(optional): IEs for probe response.NL80211_ATTR_IE_ASSOC_RESP
(optional): IEs for association response.NL80211_ATTR_FTM_RESPONDER
(optional): FTM responder configuration.NL80211_ATTR_CNTDWN_OFFS_BEACON
(optional): Offsets to CSA/color counters in beacon.NL80211_ATTR_CNTDWN_OFFS_PRESP
(optional): Offsets to CSA/color counters in probe response.
NL80211_CMD_START_AP
- Description: Starts AP operation on an AP interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_BEACON_INTERVAL
: Beacon interval.NL80211_ATTR_DTIM_PERIOD
: DTIM period.NL80211_ATTR_SSID
: SSID.NL80211_ATTR_HIDDEN_SSID
(optional): Hidden SSID configuration.NL80211_ATTR_CIPHER_SUITES_PAIRWISE
(optional): Pairwise cipher suites.NL80211_ATTR_CIPHER_SUITE_GROUP
(optional): Group cipher suite.NL80211_ATTR_WPA_VERSIONS
(optional): WPA versions.NL80211_ATTR_AKM_SUITES
(optional): AKM suites.NL80211_ATTR_PRIVACY
(optional): Privacy flag.NL80211_ATTR_AUTH_TYPE
(optional): Authentication type.NL80211_ATTR_INACTIVITY_TIMEOUT
(optional): Inactivity timeout.NL80211_ATTR_ACL_POLICY
(optional): ACL policy.NL80211_ATTR_MAC_ADDRS
(optional): MAC addresses for ACL.NL80211_ATTR_WIPHY_FREQ
(optional): Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.NL80211_ATTR_IE
(optional): Information elements.NL80211_ATTR_IE_PROBE_RESP
(optional): IEs for probe response.NL80211_ATTR_IE_ASSOC_RESP
(optional): IEs for association response.NL80211_ATTR_P2P_CTWINDOW
(optional): P2P GO CT Window.NL80211_ATTR_P2P_OPPPS
(optional): P2P GO opportunistic PS.NL80211_ATTR_FTM_RESPONDER
(optional): FTM responder configuration.NL80211_ATTR_HE_BSS_COLOR
(optional): HE BSS Color settings.NL80211_ATTR_PMK
(optional): PSK for 4-way handshake offload.NL80211_ATTR_SAE_PASSWORD
(optional): SAE password for WPA3-Personal.NL80211_ATTR_MBSSID_CONFIG
(optional): Multiple BSSID configuration.NL80211_ATTR_MBSSID_ELEMS
(optional): Multiple BSSID elements.NL80211_ATTR_AP_SETTINGS_FLAGS
(optional): AP settings flags.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie AP lifetime to the creating socket.
NL80211_CMD_NEW_BEACON
(Alias forNL80211_CMD_START_AP
)NL80211_CMD_STOP_AP
- Description: Stops AP operation on the given interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_DEL_BEACON
(Alias forNL80211_CMD_STOP_AP
)NL80211_CMD_SET_MULTICAST_TO_UNICAST
- Description: Configures multicast to unicast conversion for an AP.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED
(optional): Flag to enable/disable.
NL80211_CMD_GET_STATION
- Description: Gets station attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.
NL80211_CMD_SET_STATION
- Description: Sets station attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.NL80211_ATTR_STA_AID
(optional): Association ID.NL80211_ATTR_STA_FLAGS2
(optional): Nested attribute for flag updates.NL80211_ATTR_STA_LISTEN_INTERVAL
(optional): Listen interval.NL80211_ATTR_STA_SUPPORTED_RATES
(optional): Supported rates.NL80211_ATTR_STA_VLAN
(optional): VLAN interface index.NL80211_ATTR_STA_WME
(optional): WME configuration.NL80211_ATTR_STA_TX_POWER_SETTING
(optional): TX power setting type.NL80211_ATTR_STA_TX_POWER
(optional): TX power level.NL80211_ATTR_VLAN_ID
(optional): VLAN ID for station.NL80211_ATTR_OPMODE_NOTIF
(optional): Operating mode notification.NL80211_ATTR_SMPS_MODE
(optional): SMPS mode.NL80211_ATTR_NSS
(optional): NSS value.NL80211_ATTR_AIRTIME_WEIGHT
(optional): Airtime weight.NL80211_ATTR_ASSOC_SPP_AMSDU
(optional): SPP A-MSDU flag.
NL80211_CMD_NEW_STATION
- Description: Adds a station with given attributes to the interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.NL80211_ATTR_STA_AID
(optional): Association ID.NL80211_ATTR_STA_FLAGS2
(optional): Nested attribute for flag updates.NL80211_ATTR_STA_LISTEN_INTERVAL
(optional): Listen interval.NL80211_ATTR_STA_SUPPORTED_RATES
(optional): Supported rates.NL80211_ATTR_STA_VLAN
(optional): VLAN interface index.NL80211_ATTR_HT_CAPABILITY
(optional): HT Capability IE.NL80211_ATTR_VHT_CAPABILITY
(optional): VHT Capability IE.NL80211_ATTR_HE_CAPABILITY
(optional): HE Capability IE.NL80211_ATTR_EHT_CAPABILITY
(optional): EHT Capability IE.NL80211_ATTR_S1G_CAPABILITY
(optional): S1G Capability IE.NL80211_ATTR_STA_CAPABILITY
(optional): Station capabilities.NL80211_ATTR_STA_EXT_CAPABILITY
(optional): Station extended capabilities.NL80211_ATTR_PEER_AID
(optional): Peer AID for TDLS.NL80211_ATTR_VLAN_ID
(optional): VLAN ID for station.NL80211_ATTR_OPMODE_NOTIF
(optional): Operating mode notification.NL80211_ATTR_SMPS_MODE
(optional): SMPS mode.NL80211_ATTR_HE_6GHZ_CAPABILITY
(optional): HE 6GHz Band Capability IE.NL80211_ATTR_ASSOC_SPP_AMSDU
(optional): SPP A-MSDU flag.NL80211_ATTR_EPCS
(optional): EPCS flag.
NL80211_CMD_DEL_STATION
- Description: Removes a station or all stations from an interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
(optional): Station MAC address (MLD address for MLD station).NL80211_ATTR_MGMT_SUBTYPE
(optional): Management frame subtype for disconnection.NL80211_ATTR_REASON_CODE
(optional): Reason code for disconnection.NL80211_ATTR_MLO_LINK_ID
(optional): Link ID to remove stations using that link.
NL80211_CMD_PROBE_CLIENT
- Description: Probes an associated station by sending a null data frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.
NL80211_CMD_STA_OPMODE_CHANGED
- Description: Event notifying a station's HT/VHT opmode change.
- Attributes:
NL80211_ATTR_MAC
: Station MAC address.NL80211_ATTR_SMPS_MODE
(optional): SMPS mode.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_NSS
(optional): NSS value.
NL80211_CMD_ADD_LINK_STA
- Description: Adds a link to an MLD station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_LINK_ID
: Link ID to add.
NL80211_CMD_MODIFY_LINK_STA
- Description: Modifies a link of an MLD station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_LINK_ID
: Link ID to modify.NL80211_ATTR_MLO_LINK_DISABLED
(optional): Flag to disable/enable the link.
NL80211_CMD_REMOVE_LINK_STA
- Description: Removes a link of an MLD station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_LINK_ID
: Link ID to remove.
NL80211_CMD_LINKS_REMOVED
- Description: Notification about removal of STA MLD setup links due to AP MLD reconfiguration.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_LINKS
: Information about removed links.
NL80211_CMD_SET_TID_TO_LINK_MAPPING
- Description: Sets the TID to Link Mapping for a non-AP MLD station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_TTLM_DLINK
(optional): Downlink TID to link mapping.NL80211_ATTR_MLO_TTLM_ULINK
(optional): Uplink TID to link mapping.
NL80211_CMD_ASSOC_MLO_RECONF
- Description: Requests to add/remove links to/from an MLO association for a non-AP MLD station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: MLD station MAC address.NL80211_ATTR_MLO_LINKS
(optional): Links to add/modify.NL80211_ATTR_MLO_RECONF_REM_LINKS
(optional): Bitmask of links to remove.NL80211_ATTR_TD_BITMAP
(optional): Transition Disable bitmap.NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS
(optional): Extended MLD capabilities and operations.
NL80211_CMD_EPCS_CFG
- Description: EPCS configuration for a station.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.NL80211_ATTR_EPCS
: EPCS flag (for set operation).
NL80211_CMD_GET_MPATH
- Description: Gets mesh path attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Destination MAC address.
NL80211_CMD_SET_MPATH
- Description: Sets mesh path attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Destination MAC address.NL80211_ATTR_MPATH_NEXT_HOP
: Next hop MAC address.
NL80211_CMD_NEW_MPATH
- Description: Creates a new mesh path.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Destination MAC address.NL80211_ATTR_MPATH_NEXT_HOP
: Next hop MAC address.
NL80211_CMD_DEL_MPATH
- Description: Deletes a mesh path.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Destination MAC address.
NL80211_CMD_GET_MESH_CONFIG
- Description: Gets mesh networking properties.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SET_MESH_CONFIG
- Description: Sets mesh networking properties.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MESH_CONFIG
: Nested attribute with mesh configuration parameters.
NL80211_CMD_JOIN_MESH
- Description: Joins a mesh network.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MESH_ID
: Mesh ID.NL80211_ATTR_MESH_SETUP
(optional): Optional mesh setup parameters.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie mesh lifetime to the creating socket.
NL80211_CMD_LEAVE_MESH
- Description: Leaves the mesh network.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_NEW_PEER_CANDIDATE
- Description: Notification of a compatible mesh peer.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.
NL80211_CMD_GET_MPP
- Description: Gets mesh proxy path attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Destination MAC address.
NL80211_CMD_PROBE_MESH_LINK
- Description: Sends data frames to a mesh point for link metric refreshing.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Connected mesh peer MAC address.NL80211_ATTR_FRAME
: Ethernet data frame content.
NL80211_CMD_GET_REG
- Description: Asks the wireless core for its current regulatory domain.
- Attributes:
NL80211_ATTR_WIPHY
(optional): Specific wiphy index for private regulatory domain.
NL80211_CMD_SET_REG
- Description: Sets the current regulatory domain. Used by CRDA.
- Attributes:
NL80211_ATTR_REG_ALPHA2
: ISO/IEC 3166-1 alpha2 country code.NL80211_ATTR_REG_RULES
: Nested array of regulatory rules.
NL80211_CMD_REQ_SET_REG
- Description: Asks the wireless core to set the regulatory domain to a specified country code.
- Attributes:
NL80211_ATTR_REG_ALPHA2
: ISO/IEC 3166-1 alpha2 country code.NL80211_ATTR_USER_REG_HINT_TYPE
(optional): Type of regulatory hint.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie regulatory indoor setting to the creating socket.
NL80211_CMD_REG_CHANGE
- Description: Notification that the regulatory domain has changed.
- Attributes:
NL80211_ATTR_REG_INITIATOR
: Who initiated the change.NL80211_ATTR_REG_ALPHA2
: Alpha2 country code (if type is country).NL80211_ATTR_REG_TYPE
: Type of regulatory domain set.
NL80211_CMD_REG_BEACON_HINT
- Description: Notification that an AP beacon has been found, enabling active scan or TX.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_FREQ_BEFORE
: Channel info before hint.NL80211_ATTR_FREQ_AFTER
: Channel info after hint.
NL80211_CMD_WIPHY_REG_CHANGE
- Description: Similar to
NL80211_CMD_REG_CHANGE
, but for wiphy-specific regdom management. - Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_REG_INITIATOR
: Who initiated the change.NL80211_ATTR_REG_ALPHA2
: Alpha2 country code (if type is country).NL80211_ATTR_REG_TYPE
: Type of regulatory domain set.
- Description: Similar to
NL80211_CMD_RELOAD_REGDB
- Description: Requests that the regdb firmware file is reloaded.
- Attributes: None.
NL80211_CMD_NOTIFY_RADAR
- Description: Notifies the kernel that a radar signal was detected by a neighboring device.
- Attributes:
NL80211_ATTR_WIPHY_FREQ
: Frequency of the channel.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.
NL80211_CMD_RADAR_DETECT
- Description: Starts a Channel Availability Check (CAC) or notifies userspace about radar.
- Attributes (for notification):
NL80211_ATTR_RADAR_EVENT
: Type of radar event.NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: Frequency of the channel.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.
NL80211_CMD_SET_SAR_SPECS
- Description: Configures SAR power limitation.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_SAR_SPEC
: Nested attribute with SAR specifications.
NL80211_CMD_GET_SCAN
- Description: Gets scan results.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_TRIGGER_SCAN
- Description: Triggers a new scan.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_TX_NO_CCK_RATE
(optional): Flag to avoid CCK rates for probe requests.NL80211_ATTR_BSSID
(optional): BSSID to scan for.NL80211_ATTR_SCAN_SSIDS
(optional): SSIDs to scan for.NL80211_ATTR_SCAN_FREQUENCIES
(optional): Frequencies to scan.NL80211_ATTR_IE
(optional): Extra IEs for probe requests.NL80211_ATTR_SCAN_FLAGS
(optional): Scan control flags.NL80211_ATTR_MAC
(optional): MAC address for random MAC scan.NL80211_ATTR_MAC_MASK
(optional): MAC mask for random MAC scan.NL80211_ATTR_MEASUREMENT_DURATION
(optional): Measurement duration for beacon report.
NL80211_CMD_NEW_SCAN_RESULTS
- Description: Scan notification (reply to
NL80211_CMD_GET_SCAN
and on "scan" multicast group). - Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_GENERATION
: Scan generation number.NL80211_ATTR_SCAN_START_TIME_TSF
(optional): TSF when scan started.NL80211_ATTR_SCAN_START_TIME_TSF_BSSID
(optional): BSSID forNL80211_ATTR_SCAN_START_TIME_TSF
.
- Description: Scan notification (reply to
NL80211_CMD_SCAN_ABORTED
- Description: Scan was aborted.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_START_SCHED_SCAN
- Description: Starts a scheduled scan.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_SCHED_SCAN_PLANS
(optional): List of scan plans.NL80211_ATTR_SCHED_SCAN_INTERVAL
(optional): Interval if no plans (mutually exclusive withNL80211_ATTR_SCHED_SCAN_PLANS
).NL80211_ATTR_SCAN_SSIDS
(optional): SSIDs for probe requests.NL80211_ATTR_SCAN_FREQUENCIES
(optional): Frequencies to scan.NL80211_ATTR_IE
(optional): Extra IEs.NL80211_ATTR_SCHED_SCAN_DELAY
(optional): Delay before first cycle.NL80211_ATTR_SCHED_SCAN_MULTI
(optional): Flag for multiple concurrent scheduled scans.NL80211_ATTR_SCHED_SCAN_MATCH
(optional): Match sets for filtering.NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI
(optional): Relative RSSI threshold.NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST
(optional): RSSI adjustment.NL80211_ATTR_MAC
(optional): MAC address for random MAC scan.NL80211_ATTR_MAC_MASK
(optional): MAC mask for random MAC scan.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie scan request lifetime to the creating socket.
NL80211_CMD_STOP_SCHED_SCAN
- Description: Stops a scheduled scan.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SCHED_SCAN_RESULTS
- Description: Indicates scheduled scan results are available.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SCHED_SCAN_STOPPED
- Description: Indicates a scheduled scan has stopped.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_ABORT_SCAN
- Description: Stops an ongoing scan.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_GET_SURVEY
- Description: Gets survey results (e.g., channel occupation).
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_SURVEY_RADIO_STATS
(optional): Request overall radio statistics.
NL80211_CMD_NEW_SURVEY_RESULTS
- Description: Survey data notification.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_SURVEY_INFO
: Nested attribute with survey data.
NL80211_CMD_AUTHENTICATE
- Description: Authentication request and notification.
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address (BSSID in station mode).NL80211_ATTR_SSID
(optional): SSID.NL80211_ATTR_WIPHY_FREQ
: Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_AUTH_TYPE
: Authentication type.NL80211_ATTR_IE
(optional): IEs to add to frame.NL80211_ATTR_AUTH_DATA
(optional): Authentication frame body (for SAE/FILS).NL80211_ATTR_LOCAL_STATE_CHANGE
(optional): Flag for local state change.NL80211_ATTR_MLD_ADDR
(optional): AP MLD address for MLO.NL80211_ATTR_MLO_LINKS
(optional): MLO links for authentication.NL80211_ATTR_MLO_SUPPORT
(optional): Flag indicating MLO support.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie association lifetime to the creating socket.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_FRAME
(optional): Management frame.NL80211_ATTR_TIMED_OUT
(optional): Flag if timed out.NL80211_ATTR_STATUS_CODE
(optional): Status code.NL80211_ATTR_MLO_LINKS
(optional): MLO links for authentication.
NL80211_CMD_ASSOCIATE
- Description: Association request and notification.
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address (BSSID).NL80211_ATTR_SSID
(optional): SSID.NL80211_ATTR_WIPHY_FREQ
: Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_IE
(optional): IEs to add to frame.NL80211_ATTR_PREV_BSSID
(optional): Previous BSSID for reassociation.NL80211_ATTR_USE_MFP
(optional): Management frame protection.NL80211_ATTR_CONTROL_PORT
(optional): User space controls 802.1X port.NL80211_ATTR_CONTROL_PORT_ETHERTYPE
(optional): Ethtype for control port.NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT
(optional): Flag for unencrypted control port.NL80211_ATTR_CONTROL_PORT_OVER_NL80211
(optional): Flag for control port over nl80211.NL80211_ATTR_WPA_VERSIONS
(optional): WPA versions.NL80211_ATTR_AKM_SUITES
(optional): AKM suites.NL80211_ATTR_PRIVACY
(optional): Privacy flag.NL80211_ATTR_USE_RRM
(optional): Flag for RRM support.NL80211_ATTR_DISABLE_HT
(optional): Flag to disable HT.NL80211_ATTR_HT_CAPABILITY_MASK
(optional): HT capability mask.NL80211_ATTR_DISABLE_VHT
(optional): Flag to disable VHT.NL80211_ATTR_VHT_CAPABILITY_MASK
(optional): VHT capability mask.NL80211_ATTR_DISABLE_HE
(optional): Flag to disable HE.NL80211_ATTR_DISABLE_EHT
(optional): Flag to disable EHT.NL80211_ATTR_S1G_CAPABILITY_MASK
(optional): S1G capability mask.NL80211_ATTR_MLD_ADDR
(optional): AP MLD address for MLO.NL80211_ATTR_MLO_LINKS
(optional): MLO links for association.NL80211_ATTR_MLO_SUPPORT
(optional): Flag indicating MLO support.NL80211_ATTR_TD_BITMAP
(optional): Transition Disable bitmap.NL80211_ATTR_PUNCT_BITMAP
(optional): Preamble puncturing bitmap.NL80211_ATTR_ASSOC_SPP_AMSDU
(optional): SPP A-MSDU flag.NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS
(optional): Extended MLD capabilities and operations.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie association lifetime to the creating socket.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_FRAME
(optional): Management frame.NL80211_ATTR_TIMED_OUT
(optional): Flag if timed out.NL80211_ATTR_STATUS_CODE
(optional): Status code.NL80211_ATTR_REQ_IE
(optional): Request IEs.NL80211_ATTR_RESP_IE
(optional): Response IEs.NL80211_ATTR_MLO_LINKS
(optional): MLO links for association.
NL80211_CMD_DEAUTHENTICATE
- Description: Deauthentication request and notification.
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_REASON_CODE
: Reason code.NL80211_ATTR_IE
(optional): IEs to add to frame.NL80211_ATTR_LOCAL_STATE_CHANGE
(optional): Flag for local state change.NL80211_ATTR_RECONNECT_REQUESTED
(optional): Flag for immediate reconnect.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_FRAME
(optional): Management frame.NL80211_ATTR_TIMED_OUT
(optional): Flag if timed out.NL80211_ATTR_STATUS_CODE
(optional): Status code.NL80211_ATTR_REASON_CODE
(optional): Reason code.NL80211_ATTR_RECONNECT_REQUESTED
(optional): Flag for immediate reconnect.
NL80211_CMD_DISASSOCIATE
- Description: Disassociation request and notification.
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_REASON_CODE
: Reason code.NL80211_ATTR_IE
(optional): IEs to add to frame.NL80211_ATTR_LOCAL_STATE_CHANGE
(optional): Flag for local state change.NL80211_ATTR_RECONNECT_REQUESTED
(optional): Flag for immediate reconnect.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer STA address.NL80211_ATTR_FRAME
(optional): Management frame.NL80211_ATTR_TIMED_OUT
(optional): Flag if timed out.NL80211_ATTR_STATUS_CODE
(optional): Status code.NL80211_ATTR_REASON_CODE
(optional): Reason code.NL80211_ATTR_RECONNECT_REQUESTED
(optional): Flag for immediate reconnect.
NL80211_CMD_MICHAEL_MIC_FAILURE
- Description: Notification of a locally detected Michael MIC failure.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Source MAC address.NL80211_ATTR_KEY_TYPE
: Key type.NL80211_ATTR_KEY_IDX
: Key ID.NL80211_ATTR_KEY_SEQ
: TSC value.
NL80211_CMD_JOIN_IBSS
- Description: Joins a new IBSS.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_SSID
: SSID.NL80211_ATTR_WIPHY_FREQ
: Initial frequency.NL80211_ATTR_MAC
(optional): BSSID.NL80211_ATTR_FREQ_FIXED
(optional): Flag for fixed frequency.NL80211_ATTR_BEACON_INTERVAL
(optional): Beacon interval.NL80211_ATTR_HANDLE_DFS
(optional): Flag to handle DFS in userspace.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie IBSS lifetime to the creating socket.
NL80211_CMD_LEAVE_IBSS
- Description: Leaves the IBSS.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_CONNECT
- Description: Connection request and notification (combines auth/assoc).
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_SSID
: SSID.NL80211_ATTR_IE
(optional): Association IEs.NL80211_ATTR_AUTH_TYPE
(optional): Authentication type.NL80211_ATTR_USE_MFP
(optional): Management frame protection.NL80211_ATTR_MAC
(optional): BSSID restriction.NL80211_ATTR_WIPHY_FREQ
(optional): Frequency restriction.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Frequency offset.NL80211_ATTR_CONTROL_PORT
(optional): User space controls 802.1X port.NL80211_ATTR_CONTROL_PORT_ETHERTYPE
(optional): Ethtype for control port.NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT
(optional): Flag for unencrypted control port.NL80211_ATTR_CONTROL_PORT_OVER_NL80211
(optional): Flag for control port over nl80211.NL80211_ATTR_MAC_HINT
(optional): BSSID recommendation.NL80211_ATTR_WIPHY_FREQ_HINT
(optional): Frequency recommendation.NL80211_ATTR_PREV_BSSID
(optional): Previous BSSID for reassociation.NL80211_ATTR_BG_SCAN_PERIOD
(optional): Background scan period.NL80211_ATTR_WPA_VERSIONS
(optional): WPA versions.NL80211_ATTR_AKM_SUITES
(optional): AKM suites.NL80211_ATTR_PRIVACY
(optional): Privacy flag.NL80211_ATTR_FILS_ERP_USERNAME
(optional): FILS ERP username.NL80211_ATTR_FILS_ERP_REALM
(optional): FILS ERP realm.NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM
(optional): FILS ERP next sequence number.NL80211_ATTR_FILS_ERP_RRK
(optional): FILS ERP RRK.NL80211_ATTR_PMK
(optional): PSK for 4-way handshake offload.NL80211_ATTR_WANT_1X_4WAY_HS
(optional): Flag for 802.1X 4-way HS offload.NL80211_ATTR_SAE_PASSWORD
(optional): SAE password.NL80211_ATTR_BSS_SELECT
(optional): BSS selection parameters.NL80211_ATTR_MLD_ADDR
(optional): AP MLD address for MLO.NL80211_ATTR_MLO_LINKS
(optional): MLO links for connection.NL80211_ATTR_MLO_SUPPORT
(optional): Flag indicating MLO support.NL80211_ATTR_EXTERNAL_AUTH_SUPPORT
(optional): Flag for external authentication support.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie connection lifetime to the creating socket.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: BSSID.NL80211_ATTR_RESP_IE
(optional): Response IEs.NL80211_ATTR_STATUS_CODE
: Status code (0 for success).NL80211_ATTR_TIMED_OUT
(optional): Flag if timed out.NL80211_ATTR_TIMEOUT_REASON
(optional): Timeout reason.NL80211_ATTR_FILS_KEK
(optional): FILS KEK.NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM
(optional): FILS ERP next sequence number.NL80211_ATTR_PMKID
(optional): PMKID.NL80211_ATTR_PMK
(optional): PMK.NL80211_ATTR_MLO_LINKS
(optional): MLO links for connection.
NL80211_CMD_ROAM
- Description: Notification that the card/driver roamed.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: New BSSID.NL80211_ATTR_MLO_LINKS
(optional): MLO links for roam.
NL80211_CMD_DISCONNECT
- Description: Drops a given connection or notifies userspace of disconnection.
- Attributes (for notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_DISCONNECTED_BY_AP
(optional): Flag if disconnected by AP.NL80211_ATTR_REASON_CODE
(optional): Reason code.NL80211_ATTR_RECONNECT_REQUESTED
(optional): Flag for immediate reconnect.NL80211_ATTR_MLO_LINKS
(optional): MLO links for disconnection.
NL80211_CMD_SET_PMKSA
- Description: Adds a PMKSA cache entry.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: BSSID.NL80211_ATTR_PMKID
: PMKID.NL80211_ATTR_PMK
(optional): PMK.NL80211_ATTR_SSID
(optional): SSID for FILS.NL80211_ATTR_FILS_CACHE_ID
(optional): FILS cache ID.NL80211_ATTR_PMK_LIFETIME
(optional): PMK lifetime.NL80211_ATTR_PMK_REAUTH_THRESHOLD
(optional): PMK reauthentication threshold.
NL80211_CMD_DEL_PMKSA
- Description: Deletes a PMKSA cache entry.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: BSSID.NL80211_ATTR_PMKID
: PMKID.NL80211_ATTR_SSID
(optional): SSID for FILS/SAE/OWE.NL80211_ATTR_FILS_CACHE_ID
(optional): FILS cache ID.
NL80211_CMD_FLUSH_PMKSA
- Description: Flushes all PMKSA cache entries.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_PMKSA_CANDIDATE
- Description: Event to inform userspace of PMKSA caching candidates.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_PMKSA_CANDIDATE
: Nested attribute with candidate info.
NL80211_CMD_UPDATE_CONNECT_PARAMS
- Description: Updates one or more connect parameters for subsequent roaming.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_IE
: Information elements.NL80211_ATTR_FILS_ERP_USERNAME
(optional): FILS ERP username.NL80211_ATTR_FILS_ERP_REALM
(optional): FILS ERP realm.NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM
(optional): FILS ERP next sequence number.NL80211_ATTR_FILS_ERP_RRK
(optional): FILS ERP RRK.
NL80211_CMD_SET_PMK
- Description: Sets the PMK or PMK-R0 for offloaded 4-Way handshake.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Authenticator MAC address.NL80211_ATTR_PMK
: PMK or PMK-R0.NL80211_ATTR_PMKR0_NAME
(optional): PMK-R0 Name.
NL80211_CMD_DEL_PMK
- Description: Deletes a previously configured PMK.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Authenticator MAC address.
NL80211_CMD_PORT_AUTHORIZED
- Description: Event indicating the port is authorized for data traffic.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.
NL80211_CMD_CONTROL_PORT_FRAME
- Description: Control Port (e.g., EAPOL) frame TX request and RX notification.
- Attributes (for TX request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_FRAME
: EAPOL data.NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLD.NL80211_ATTR_COOKIE
: Cookie for TX status.
- Attributes (for RX notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_FRAME
: EAPOL data.NL80211_ATTR_CONTROL_PORT_ETHERTYPE
: Protocol type.NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT
: Flag if unencrypted.NL80211_ATTR_MAC
: Peer MAC address.
NL80211_CMD_EXTERNAL_AUTH
- Description: Interface for host drivers to offload authentication to userspace.
- Attributes (for event request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_AUTH_TYPE
: Authentication type.NL80211_ATTR_MLD_ADDR
(optional): AP MLD address.NL80211_ATTR_MLO_LINKS
(optional): MLO links.
- Attributes (for command response):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_EXTERNAL_AUTH_ACTION
: Action to perform.NL80211_ATTR_STATUS_CODE
: Authentication status.
NL80211_CMD_UPDATE_OWE_INFO
- Description: Allows host driver to offload OWE processing to userspace.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_DH_PUBKEY
(optional): DH public key.NL80211_ATTR_DH_PRIVKEY
(optional): DH private key.NL80211_ATTR_OWE_DH_PARAM
(optional): OWE DH parameters.NL80211_ATTR_OWE_DH_PUBKEY_LEN
(optional): OWE DH public key length.NL80211_ATTR_OWE_DH_PRIVKEY_LEN
(optional): OWE DH private key length.NL80211_ATTR_OWE_DH_GROUP
(optional): OWE DH group.
NL80211_CMD_UNPROT_BEACON
- Description: Notification of an unprotected or incorrectly protected Beacon frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: BSSID.NL80211_ATTR_FRAME
: Beacon frame.
NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS
- Description: Reports TX status of a control port frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COOKIE
: TX command cookie.NL80211_ATTR_FRAME
: Frame contents.NL80211_ATTR_ACK
: Flag if acknowledged.
NL80211_CMD_SET_POWER_SAVE
- Description: Sets powersave mode.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_PS_STATE
: Powersave state.
NL80211_CMD_GET_POWER_SAVE
- Description: Gets powersave status.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_GET_WOWLAN
- Description: Gets Wake-on-Wireless-LAN (WoWLAN) settings.
- Attributes:
NL80211_ATTR_WIPHY
: Wiphy index.
NL80211_CMD_SET_WOWLAN
- Description: Sets WoWLAN settings or reports wakeup reason.
- Attributes (for set):
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_WOWLAN_TRIGGERS
: WoWLAN triggers to enable.
- Attributes (for notification):
NL80211_ATTR_WIPHY
: Wiphy index.NL80211_ATTR_WOWLAN_TRIGGERS
: Wakeup reason.
NL80211_CMD_SET_REKEY_OFFLOAD
- Description: Provides information for GTK rekey offload or notifies userspace of new replay counter.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_REKEY_DATA
: Nested attribute with rekey data.
NL80211_CMD_TDLS_OPER
- Description: Performs a high-level TDLS command or requests userspace action.
- Attributes (for request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_TDLS_OPERATION
: Requested operation.NL80211_ATTR_REASON_CODE
(optional): Reason code (with TDLS_TEARDOWN).
- Attributes (for event):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_TDLS_OPERATION
: Requested operation.NL80211_ATTR_REASON_CODE
(optional): Reason code.
NL80211_CMD_TDLS_MGMT
- Description: Sends a TDLS management frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_TDLS_ACTION
: TDLS action code.NL80211_ATTR_TDLS_DIALOG_TOKEN
(optional): Dialog token.NL80211_ATTR_FRAME
(optional): Frame contents.NL80211_ATTR_WIPHY_FREQ
(optional): Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.NL80211_ATTR_TDLS_PEER_CAPABILITY
(optional): TDLS peer capabilities.NL80211_ATTR_TDLS_INITIATOR
(optional): Flag if initiator.
NL80211_CMD_TDLS_CHANNEL_SWITCH
- Description: Starts channel-switching with a TDLS peer.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_WIPHY_FREQ
: Target channel frequency.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.NL80211_ATTR_OPER_CLASS
: Target operating class.
NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH
- Description: Stops channel-switching with a TDLS peer.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.
NL80211_CMD_VENDOR
- Description: Vendor-specified command/event.
- Attributes:
NL80211_ATTR_VENDOR_ID
: Vendor ID.NL80211_ATTR_VENDOR_SUBCMD
: Vendor sub-command.NL80211_ATTR_VENDOR_DATA
(optional): Data for the command.
NL80211_CMD_TESTMODE
- Description: Testmode command.
- Attributes:
NL80211_ATTR_WIPHY
orNL80211_ATTR_IFINDEX
: Device identifier.NL80211_ATTR_TESTDATA
: Test data blob.
NL80211_CMD_SET_BSS
- Description: Set BSS attributes.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_BSS_CTS_PROT
(optional): CTS protection.NL80211_ATTR_BSS_SHORT_PREAMBLE
(optional): Short preamble.NL80211_ATTR_BSS_SHORT_SLOT_TIME
(optional): Short slot time.NL80211_ATTR_BSS_BASIC_RATES
(optional): Basic rates.NL80211_ATTR_P2P_CTWINDOW
(optional): P2P GO CT Window.NL80211_ATTR_P2P_OPPPS
(optional): P2P GO opportunistic PS.NL80211_ATTR_HE_BSS_COLOR
(optional): HE BSS Color settings.
NL80211_CMD_SET_MGMT_EXTRA_IE
(Reserved, not used)NL80211_CMD_SET_TX_BITRATE_MASK
- Description: Sets the mask of rates for TX rate selection.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_TX_RATES
: Nested set of TX rate attributes.
NL80211_CMD_REGISTER_FRAME
- Description: Registers for receiving certain management frames.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_FRAME_TYPE
(optional): Frame type/subtype.NL80211_ATTR_FRAME_MATCH
: Match attribute.NL80211_ATTR_RECEIVE_MULTICAST
(optional): Flag to receive multicast frames.
NL80211_CMD_REGISTER_ACTION
(Alias forNL80211_CMD_REGISTER_FRAME
)NL80211_CMD_FRAME
- Description: Management frame TX request and RX notification.
- Attributes (for TX request):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_FRAME
: Frame contents.NL80211_ATTR_WIPHY_FREQ
(optional): Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.NL80211_ATTR_DURATION
(optional): Duration to wait for response.NL80211_ATTR_COOKIE
: Cookie for TX status.NL80211_ATTR_TX_NO_CCK_RATE
(optional): Flag to avoid CCK rates.NL80211_ATTR_CSA_C_OFFSETS_TX
(optional): Offsets to CSA counters.NL80211_ATTR_DONT_WAIT_FOR_ACK
(optional): Flag to not wait for ACK.NL80211_ATTR_MLO_LINK_ID
(optional): Link ID for MLD.
- Attributes (for RX notification):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_FRAME
: Frame contents.NL80211_ATTR_WIPHY_FREQ
: Channel frequency.NL80211_ATTR_RX_HW_TIMESTAMP
(optional): Frame RX timestamp.NL80211_ATTR_TX_HW_TIMESTAMP
(optional): ACK TX timestamp.NL80211_ATTR_RX_SIGNAL_DBM
(optional): Signal strength.NL80211_ATTR_RXMGMT_FLAGS
(optional): Flags for received management frame.
NL80211_CMD_FRAME_WAIT_CANCEL
- Description: Cancels a pending remain-on-channel duration or notifies of wait time expiration.
- Attributes:
NL80211_ATTR_WIPHY
orNL80211_ATTR_IFINDEX
: Radio/interface identifier.NL80211_ATTR_COOKIE
: Request cookie.
NL80211_CMD_ACTION
(Alias forNL80211_CMD_FRAME
)NL80211_CMD_FRAME_TX_STATUS
- Description: Reports TX status of a management frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COOKIE
: TX command cookie.NL80211_ATTR_FRAME
: Frame contents.NL80211_ATTR_ACK
: Flag if acknowledged.NL80211_ATTR_TX_HW_TIMESTAMP
(optional): TX timestamp.NL80211_ATTR_RX_HW_TIMESTAMP
(optional): ACK RX timestamp.
NL80211_CMD_ACTION_TX_STATUS
(Alias forNL80211_CMD_FRAME_TX_STATUS
)NL80211_CMD_SET_CQM
- Description: Connection quality monitor configuration.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_CQM
: Nested attribute with CQM parameters.
NL80211_CMD_NOTIFY_CQM
- Description: Connection quality monitor notification.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_CQM
: Nested attribute with CQM event details.
NL80211_CMD_SET_CHANNEL
- Description: Sets the channel for the given interface.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: Channel frequency.NL80211_ATTR_WIPHY_FREQ_OFFSET
(optional): Channel frequency offset.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.
NL80211_CMD_SET_WDS_PEER
(No longer supported)NL80211_CMD_UNPROT_DEAUTHENTICATE
- Description: Unprotected deauthentication frame notification.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Source MAC address.NL80211_ATTR_FRAME
: Deauthentication frame.
NL80211_CMD_UNPROT_DISASSOCIATE
- Description: Unprotected disassociation frame notification.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Source MAC address.NL80211_ATTR_FRAME
: Disassociation frame.
NL80211_CMD_UNEXPECTED_FRAME
- Description: Used by AP controller to ask for unexpected frames or kernel notification of such.
- Attributes (for event):
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: TA (Transmitting Address).NL80211_ATTR_FRAME
: Frame content.
NL80211_CMD_UNEXPECTED_4ADDR_FRAME
- Description: Event indicating an associated station sent a 4-address frame.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Station MAC address.NL80211_ATTR_FRAME
: Frame content.
NL80211_CMD_REGISTER_BEACONS
- Description: Registers socket to receive beacons from other BSSes when in AP mode.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SET_NOACK_MAP
- Description: Sets a bitmap for TIDs for No Acknowledgement Policy.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_NOACK_MAP
: No ACK map (u16).
NL80211_CMD_CH_SWITCH_NOTIFY
- Description: Notification that an AP or GO has switched channels.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: New channel frequency.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.
NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
- Description: Notification that a channel switch has started.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: Target channel frequency.NL80211_ATTR_CH_SWITCH_COUNT
: Number of TBTTs until switch.NL80211_ATTR_CH_SWITCH_BLOCK_TX
(optional): Flag if TX will be blocked.
NL80211_CMD_START_P2P_DEVICE
- Description: Starts a P2P Device.
- Attributes:
NL80211_ATTR_WDEV
: P2P Device identifier.
NL80211_CMD_STOP_P2P_DEVICE
- Description: Stops a P2P Device.
- Attributes:
NL80211_ATTR_WDEV
: P2P Device identifier.
NL80211_CMD_CONN_FAILED
- Description: Notification that a connection request to an AP failed.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_CONN_FAILED_REASON
: Reason for failure.
NL80211_CMD_SET_MCAST_RATE
- Description: Changes the multicast rate for IBSS or MESH vif.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MCAST_RATE
: Multicast TX rate.
NL80211_CMD_SET_MAC_ACL
- Description: Sets ACL for MAC address based access control.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC_ADDRS
: List of MAC addresses.NL80211_ATTR_ACL_POLICY
: ACL policy.
NL80211_CMD_GET_PROTOCOL_FEATURES
- Description: Gets global nl80211 protocol features.
- Attributes: None.
NL80211_CMD_UPDATE_FT_IES
- Description: Passes the most up-to-date Fast Transition Information Element to the driver.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_IE_RIC
(optional): RIC IE.NL80211_ATTR_MDID
(optional): Mobility Domain Identifier.
NL80211_CMD_FT_EVENT
- Description: Sends a Fast Transition event from the driver to the supplicant.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Target AP's MAC address.NL80211_ATTR_IE_RIC
(optional): RIC IE.NL80211_ATTR_MDID
(optional): Mobility Domain Identifier.NL80211_ATTR_RESP_IE
(optional): RSN IE.
NL80211_CMD_CRIT_PROTOCOL_START
- Description: Indicates userspace will start a critical protocol.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_CRIT_PROT_ID
: Critical protocol identifier.NL80211_ATTR_MAX_CRIT_PROT_DURATION
: Maximum duration for increased reliability.
NL80211_CMD_CRIT_PROTOCOL_STOP
- Description: Indicates the connection reliability can return to normal.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_CRIT_PROT_ID
: Critical protocol identifier.
NL80211_CMD_GET_COALESCE
- Description: Gets currently supported coalesce rules.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SET_COALESCE
- Description: Configures coalesce rules or clears existing rules.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COALESCE_RULE
: Nested attribute with coalesce rule information.
NL80211_CMD_CHANNEL_SWITCH
- Description: Performs a channel switch by announcing it in the beacon.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: New channel frequency.NL80211_ATTR_CHANNEL_WIDTH
(optional): Channel width.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.NL80211_ATTR_CH_SWITCH_COUNT
: Number of TBTTs until switch.NL80211_ATTR_CH_SWITCH_BLOCK_TX
(optional): Flag to block TX.NL80211_ATTR_CSA_IES
(optional): Nested IEs for CSA.NL80211_ATTR_CNTDWN_OFFS_BEACON
(optional): Offsets to CSA counters in beacon.NL80211_ATTR_CNTDWN_OFFS_PRESP
(optional): Offsets to CSA counters in probe response.
NL80211_CMD_SET_QOS_MAP
- Description: Sets Interworking QoS mapping for IP DSCP values.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_QOS_MAP
(optional): QoS mapping information.
NL80211_CMD_ADD_TX_TS
- Description: Asks the kernel to add a traffic stream.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_TSID
: TSID.NL80211_ATTR_USER_PRIO
: User priority.NL80211_ATTR_ADMITTED_TIME
(optional): Admitted time.
NL80211_CMD_DEL_TX_TS
- Description: Removes an existing traffic stream.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: Peer MAC address.NL80211_ATTR_TSID
: TSID.
NL80211_CMD_JOIN_OCB
- Description: Joins an OCB network.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_WIPHY_FREQ
: Center frequency.NL80211_ATTR_CHANNEL_WIDTH
: Bandwidth.NL80211_ATTR_CENTER_FREQ1
(optional): Center frequency 1.NL80211_ATTR_CENTER_FREQ2
(optional): Center frequency 2.
NL80211_CMD_LEAVE_OCB
- Description: Leaves the OCB network.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_START_NAN
- Description: Starts NAN operation.
- Attributes:
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_NAN_MASTER_PREF
: Master preference.NL80211_ATTR_BANDS
(optional): Operating bands.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie NAN interface lifetime to the creating socket.
NL80211_CMD_STOP_NAN
- Description: Stops NAN operation.
- Attributes:
NL80211_ATTR_WDEV
: WDEV identifier.
NL80211_CMD_ADD_NAN_FUNCTION
- Description: Adds a NAN function.
- Attributes:
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_NAN_FUNC
: Nested attribute with NAN function details.NL80211_ATTR_SOCKET_OWNER
(optional): Flag to tie NAN function lifetime to the creating socket.
NL80211_CMD_DEL_NAN_FUNCTION
- Description: Deletes a NAN function or notifies of its termination.
- Attributes (for request):
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_COOKIE
: Function cookie.
- Attributes (for notification):
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_NAN_FUNC_INSTANCE_ID
: Function instance ID.NL80211_ATTR_COOKIE
: Function cookie.NL80211_ATTR_NAN_FUNC_TERM_REASON
: Termination reason.
NL80211_CMD_CHANGE_NAN_CONFIG
- Description: Changes current NAN configuration.
- Attributes:
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_NAN_MASTER_PREF
(optional): Master preference.NL80211_ATTR_BANDS
(optional): Operating bands.
NL80211_CMD_NAN_MATCH
- Description: Notification when a NAN match is reported.
- Attributes:
NL80211_ATTR_WDEV
: WDEV identifier.NL80211_ATTR_NAN_MATCH
: Nested attribute with match details.NL80211_ATTR_COOKIE
: Function cookie.
NL80211_CMD_GET_FTM_RESPONDER_STATS
- Description: Retrieves FTM responder statistics.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_PEER_MEASUREMENT_START
- Description: Starts a peer measurement.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_PEER_MEASUREMENTS
: Nested attribute with measurement parameters.NL80211_ATTR_MAC
(optional): MAC address for randomization.NL80211_ATTR_MAC_MASK
(optional): MAC mask for randomization.NL80211_ATTR_TIMEOUT
(optional): Timeout for the measurement.
NL80211_CMD_PEER_MEASUREMENT_RESULT
- Description: Notification of peer measurement results.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COOKIE
: Measurement cookie.NL80211_ATTR_PEER_MEASUREMENTS
: Nested attribute with results.
NL80211_CMD_PEER_MEASUREMENT_COMPLETE
- Description: Notification that a peer measurement completed.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COOKIE
: Measurement cookie.
NL80211_CMD_SET_TID_CONFIG
- Description: Configures data frame TID specific settings.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
(optional): Peer MAC address.NL80211_ATTR_TID_CONFIG
: Nested attribute with TID config parameters.
NL80211_CMD_OBSS_COLOR_COLLISION
- Description: Notification of a BSS color collision.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_OBSS_COLOR_BITMAP
: Bitmap of colliding BSS colors.
NL80211_CMD_COLOR_CHANGE_REQUEST
- Description: Indicates userspace wants to change the BSS color.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_HE_BSS_COLOR
: Nested attribute with new BSS color.NL80211_ATTR_COLOR_CHANGE_COUNT
(optional): Number of TBTTs until change.NL80211_ATTR_COLOR_CHANGE_ELEMS
(optional): Nested IEs for color change.
NL80211_CMD_COLOR_CHANGE_STARTED
- Description: Notifies userland that a color change has started.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_COLOR_CHANGE_COUNT
: Number of TBTTs until change.NL80211_ATTR_COLOR_CHANGE_COLOR
: New color.
NL80211_CMD_COLOR_CHANGE_ABORTED
- Description: Notifies userland that the color change has been aborted.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_COLOR_CHANGE_COMPLETED
- Description: Notifies userland that the color change has completed.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.
NL80211_CMD_SET_FILS_AAD
- Description: Sets FILS AAD data to the driver.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: STA MAC address.NL80211_ATTR_FILS_KEK
: KEK.NL80211_ATTR_FILS_NONCES
: FILS Nonces.
NL80211_CMD_ASSOC_COMEBACK
- Description: Notification about an association temporal rejection with comeback.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
: BSSID.NL80211_ATTR_TIMEOUT
: Timeout value.
NL80211_CMD_SET_HW_TIMESTAMP
- Description: Enables/disables HW timestamping for TM/FTM frames.
- Attributes:
NL80211_ATTR_IFINDEX
: Interface index.NL80211_ATTR_MAC
(optional): Specific MAC address.NL80211_ATTR_HW_TIMESTAMP_ENABLED
(optional): Flag to enable/disable.