History

wifi: nl80211: Add more NAN capabilities

Add better break down for NAN capabilities, as NAN has multiple optional features. This allows to better indicate which features are supported or or offloaded to the device.

Andrei Otcheretianski committed 1 year ago

Commit 3cbadd81 parent 1ccfd8d1 file · +55 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/nl80211.h+55−0
@@ -2964,6 +2964,10 @@ enum nl80211_commands { · 2963 unmodified lines
2964 * @NL80211_ATTR_NAN_NEW_CLUSTER: Flag attribute indicating that a new2964 * @NL80211_ATTR_NAN_NEW_CLUSTER: Flag attribute indicating that a new
2965 * NAN cluster has been created. This is used with2965 * NAN cluster has been created. This is used with
2966 * %NL80211_CMD_NAN_CLUSTER_JOINED2966 * %NL80211_CMD_NAN_CLUSTER_JOINED
2967 * @NL80211_ATTR_NAN_CAPABILITIES: Nested attribute for NAN capabilities.
2968 * This is used with %NL80211_CMD_GET_WIPHY to indicate the NAN
2969 * capabilities supported by the driver. See &enum nl80211_nan_capabilities
2970 * for details.
2967 *2971 *
2968 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2972 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2969 * @NL80211_ATTR_MAX: highest attribute number currently defined2973 * @NL80211_ATTR_MAX: highest attribute number currently defined
@@ -3529,6 +3533,7 @@ enum nl80211_attrs { · 559 unmodified lines
3529 NL80211_ATTR_BSS_PARAM,3533 NL80211_ATTR_BSS_PARAM,
3530 NL80211_ATTR_NAN_CONFIG,3534 NL80211_ATTR_NAN_CONFIG,
3531 NL80211_ATTR_NAN_NEW_CLUSTER,3535 NL80211_ATTR_NAN_NEW_CLUSTER,
3536 NL80211_ATTR_NAN_CAPABILITIES,
3532 3537
3533 /* add attributes here, update the policy in nl80211.c */3538 /* add attributes here, update the policy in nl80211.c */
3534 3539
@@ -8362,4 +8367,54 @@ enum nl80211_s1g_short_beacon_attrs { · 4827 unmodified lines
8362 __NL80211_S1G_SHORT_BEACON_ATTR_LAST - 18367 __NL80211_S1G_SHORT_BEACON_ATTR_LAST - 1
8363};8368};
8364 8369
8370/**
8371 * enum nl80211_nan_capabilities - NAN (Neighbor Aware Networking)
8372 * capabilities.
8373 *
8374 * @__NL80211_NAN_CAPABILITIES_INVALID: Invalid.
8375 * @NL80211_NAN_CAPA_CONFIGURABLE_SYNC: Flag attribute indicating that
8376 * the device supports configurable synchronization. If set, the device
8377 * should be able to handle %NL80211_ATTR_NAN_CONFIG
8378 * attribute in the %NL80211_CMD_START_NAN (and change) command.
8379 * @NL80211_NAN_CAPA_USERSPACE_DE: Flag attribute indicating that
8380 * NAN Discovery Engine (DE) is not offloaded and the driver assumes
8381 * user space DE implementation. When set, %NL80211_CMD_ADD_NAN_FUNCTION,
8382 * %NL80211_CMD_DEL_NAN_FUNCTION and %NL80211_CMD_NAN_MATCH commands
8383 * should not be used. In addition, the device/driver should support
8384 * sending discovery window (DW) notifications using
8385 * %NL80211_CMD_NAN_NEXT_DW_NOTIFICATION and handling transmission and
8386 * reception of NAN SDF frames on NAN device interface during DW windows.
8387 * (%NL80211_CMD_FRAME is used to transmit SDFs)
8388 * @NL80211_NAN_CAPA_OP_MODE: u8 attribute indicating the supported operation
8389 * modes as defined in Wi-Fi Aware (TM) specification Table 81 (Operation
8390 * Mode field format).
8391 * @NL80211_NAN_CAPA_NUM_ANTENNAS: u8 attribute indicating the number of
8392 * TX and RX antennas supported by the device. Lower nibble indicates
8393 * the number of TX antennas and upper nibble indicates the number of RX
8394 * antennas. Value 0 indicates the information is not available.
8395 * See table 79 of Wi-Fi Aware (TM) specification (Number of
8396 * Antennas field).
8397 * @NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME: u16 attribute indicating the
8398 * maximum time in microseconds that the device requires to switch
8399 * channels.
8400 * @NL80211_NAN_CAPA_CAPABILITIES: u8 attribute containing the
8401 * capabilities of the device as defined in Wi-Fi Aware (TM)
8402 * specification Table 79 (Capabilities field).
8403 * @__NL80211_NAN_CAPABILITIES_LAST: Internal
8404 * @NL80211_NAN_CAPABILITIES_MAX: Highest NAN capability attribute.
8405 */
8406enum nl80211_nan_capabilities {
8407 __NL80211_NAN_CAPABILITIES_INVALID,
8408
8409 NL80211_NAN_CAPA_CONFIGURABLE_SYNC,
8410 NL80211_NAN_CAPA_USERSPACE_DE,
8411 NL80211_NAN_CAPA_OP_MODE,
8412 NL80211_NAN_CAPA_NUM_ANTENNAS,
8413 NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME,
8414 NL80211_NAN_CAPA_CAPABILITIES,
8415 /* keep last */
8416 __NL80211_NAN_CAPABILITIES_LAST,
8417 NL80211_NAN_CAPABILITIES_MAX = __NL80211_NAN_CAPABILITIES_LAST - 1,
8418};
8419
8365#endif /* __LINUX_NL80211_H */8420#endif /* __LINUX_NL80211_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t