|
11 | 11 | * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> |
12 | 12 | * Copyright 2008 Colin McCabe <colin@cozybit.com> |
13 | 13 | * Copyright 2015-2017 Intel Deutschland GmbH |
14 | | - * Copyright (C) 2018-2022 Intel Corporation |
| 14 | + * Copyright (C) 2018-2023 Intel Corporation |
15 | 15 | * |
16 | 16 | * Permission to use, copy, modify, and/or distribute this software for any |
17 | 17 | * purpose with or without fee is hereby granted, provided that the above |
|
334 | 334 | * use %NL80211_CMD_START_AP or similar functions. |
335 | 335 | */ |
336 | 336 |
|
| 337 | +/** |
| 338 | + * DOC: OWE DH IE handling offload |
| 339 | + * |
| 340 | + * By setting @NL80211_EXT_FEATURE_OWE_OFFLOAD flag, drivers can indicate |
| 341 | + * kernel/application space to avoid DH IE handling. When this flag is |
| 342 | + * advertised, the driver/device will take care of DH IE inclusion and |
| 343 | + * processing of peer DH IE to generate PMK. |
| 344 | + */ |
| 345 | + |
337 | 346 | /** |
338 | 347 | * enum nl80211_commands - supported nl80211 commands |
339 | 348 | * |
|
559 | 568 | * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC |
560 | 569 | * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, |
561 | 570 | * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS |
562 | | - * authentication. |
| 571 | + * authentication. Additionally in case of SAE offload and OWE offloads |
| 572 | + * PMKSA entry can be deleted using %NL80211_ATTR_SSID. |
563 | 573 | * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. |
564 | 574 | * |
565 | 575 | * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain |
|
1299 | 1309 | * @NL80211_CMD_MODIFY_LINK_STA: Modify a link of an MLD station |
1300 | 1310 | * @NL80211_CMD_REMOVE_LINK_STA: Remove a link of an MLD station |
1301 | 1311 | * |
| 1312 | + * @NL80211_CMD_SET_HW_TIMESTAMP: Enable/disable HW timestamping of Timing |
| 1313 | + * measurement and Fine timing measurement frames. If %NL80211_ATTR_MAC |
| 1314 | + * is included, enable/disable HW timestamping only for frames to/from the |
| 1315 | + * specified MAC address. Otherwise enable/disable HW timestamping for |
| 1316 | + * all TM/FTM frames (including ones that were enabled with specific MAC |
| 1317 | + * address). If %NL80211_ATTR_HW_TIMESTAMP_ENABLED is not included, disable |
| 1318 | + * HW timestamping. |
| 1319 | + * The number of peers that HW timestamping can be enabled for concurrently |
| 1320 | + * is indicated by %NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS. |
| 1321 | + * |
1302 | 1322 | * @NL80211_CMD_MAX: highest used command number |
1303 | 1323 | * @__NL80211_CMD_AFTER_LAST: internal use |
1304 | 1324 | */ |
@@ -1560,6 +1580,8 @@ enum nl80211_commands { |
1560 | 1580 | NL80211_CMD_ANDROID_KABI_RESERVED_9, |
1561 | 1581 | NL80211_CMD_ANDROID_KABI_RESERVED_10, |
1562 | 1582 |
|
| 1583 | + NL80211_CMD_SET_HW_TIMESTAMP, |
| 1584 | + |
1563 | 1585 | /* add new commands above here */ |
1564 | 1586 |
|
1565 | 1587 | /* used to define NL80211_CMD_MAX below */ |
@@ -2785,6 +2807,27 @@ enum nl80211_commands { |
2785 | 2807 | * indicates that the sub-channel is punctured. Higher 16 bits are |
2786 | 2808 | * reserved. |
2787 | 2809 | * |
| 2810 | + * @NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS: Maximum number of peers that HW |
| 2811 | + * timestamping can be enabled for concurrently (u16), a wiphy attribute. |
| 2812 | + * A value of 0xffff indicates setting for all peers (i.e. not specifying |
| 2813 | + * an address with %NL80211_CMD_SET_HW_TIMESTAMP) is supported. |
| 2814 | + * @NL80211_ATTR_HW_TIMESTAMP_ENABLED: Indicates whether HW timestamping should |
| 2815 | + * be enabled or not (flag attribute). |
| 2816 | + * |
| 2817 | + * @NL80211_ATTR_EMA_RNR_ELEMS: Optional nested attribute for |
| 2818 | + * reduced neighbor report (RNR) elements. This attribute can be used |
| 2819 | + * only when NL80211_MBSSID_CONFIG_ATTR_EMA is enabled. |
| 2820 | + * Userspace is responsible for splitting the RNR into multiple |
| 2821 | + * elements such that each element excludes the non-transmitting |
| 2822 | + * profiles already included in the MBSSID element |
| 2823 | + * (%NL80211_ATTR_MBSSID_ELEMS) at the same index. Each EMA beacon |
| 2824 | + * will be generated by adding MBSSID and RNR elements at the same |
| 2825 | + * index. If the userspace includes more RNR elements than number of |
| 2826 | + * MBSSID elements then these will be added in every EMA beacon. |
| 2827 | + * |
| 2828 | + * @NL80211_ATTR_MLO_LINK_DISABLED: Flag attribute indicating that the link is |
| 2829 | + * disabled. |
| 2830 | + * |
2788 | 2831 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
2789 | 2832 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
2790 | 2833 | * @__NL80211_ATTR_AFTER_LAST: internal use |
@@ -3319,6 +3362,13 @@ enum nl80211_attrs { |
3319 | 3362 |
|
3320 | 3363 | NL80211_ATTR_PUNCT_BITMAP, |
3321 | 3364 |
|
| 3365 | + NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS, |
| 3366 | + NL80211_ATTR_HW_TIMESTAMP_ENABLED, |
| 3367 | + |
| 3368 | + NL80211_ATTR_EMA_RNR_ELEMS, |
| 3369 | + |
| 3370 | + NL80211_ATTR_MLO_LINK_DISABLED, |
| 3371 | + |
3322 | 3372 | NL80211_ATTR_ANDROID_KABI_RESERVED_1, |
3323 | 3373 | NL80211_ATTR_ANDROID_KABI_RESERVED_2, |
3324 | 3374 | NL80211_ATTR_ANDROID_KABI_RESERVED_3, |
@@ -3347,7 +3397,7 @@ enum nl80211_attrs { |
3347 | 3397 |
|
3348 | 3398 | /* add attributes here, update the policy in nl80211.c */ |
3349 | 3399 |
|
3350 | | - __NL80211_ATTR_MAX_IMPLEMENTED = NL80211_ATTR_PUNCT_BITMAP, |
| 3400 | + __NL80211_ATTR_MAX_IMPLEMENTED = NL80211_ATTR_MLO_LINK_DISABLED, |
3351 | 3401 | __NL80211_ATTR_AFTER_LAST, |
3352 | 3402 | NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST, |
3353 | 3403 | NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 |
@@ -6435,6 +6485,12 @@ enum nl80211_feature_flags { |
6435 | 6485 | * in authentication and deauthentication frames sent to unassociated peer |
6436 | 6486 | * using @NL80211_CMD_FRAME. |
6437 | 6487 | * |
| 6488 | + * @NL80211_EXT_FEATURE_OWE_OFFLOAD: Driver/Device wants to do OWE DH IE |
| 6489 | + * handling in station mode. |
| 6490 | + * |
| 6491 | + * @NL80211_EXT_FEATURE_OWE_OFFLOAD_AP: Driver/Device wants to do OWE DH IE |
| 6492 | + * handling in AP mode. |
| 6493 | + * |
6438 | 6494 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
6439 | 6495 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
6440 | 6496 | */ |
@@ -6506,8 +6562,8 @@ enum nl80211_ext_feature_index { |
6506 | 6562 | NL80211_EXT_FEATURE_PUNCT, |
6507 | 6563 | NL80211_EXT_FEATURE_SECURE_NAN, |
6508 | 6564 | NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA, |
6509 | | - NL80211_EXT_FEATURE_ANDROID_KABI_RESERVED_1, |
6510 | | - NL80211_EXT_FEATURE_ANDROID_KABI_RESERVED_2, |
| 6565 | + NL80211_EXT_FEATURE_OWE_OFFLOAD, |
| 6566 | + NL80211_EXT_FEATURE_OWE_OFFLOAD_AP, |
6511 | 6567 | NL80211_EXT_FEATURE_ANDROID_KABI_RESERVED_3, |
6512 | 6568 | NL80211_EXT_FEATURE_ANDROID_KABI_RESERVED_4, |
6513 | 6569 | NL80211_EXT_FEATURE_ANDROID_KABI_RESERVED_5, |
|
0 commit comments