developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 7298198a54d81b969f688164ef33d952ddfcb81e Mon Sep 17 00:00:00 2001 |
| 2 | From: Johannes Berg <johannes.berg@intel.com> |
| 3 | Date: Thu, 24 Aug 2023 09:19:47 +0200 |
| 4 | Subject: [PATCH 21/28] update nl80211.h |
| 5 | |
| 6 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 7 | --- |
| 8 | nl80211.h | 30 +++++++++++++++++++++++++++++- |
| 9 | 1 file changed, 29 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/nl80211.h b/nl80211.h |
| 12 | index c59fec4..88eb85c 100644 |
| 13 | --- a/nl80211.h |
| 14 | +++ b/nl80211.h |
| 15 | @@ -11,7 +11,7 @@ |
| 16 | * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> |
| 17 | * Copyright 2008 Colin McCabe <colin@cozybit.com> |
| 18 | * Copyright 2015-2017 Intel Deutschland GmbH |
| 19 | - * Copyright (C) 2018-2022 Intel Corporation |
| 20 | + * Copyright (C) 2018-2023 Intel Corporation |
| 21 | * |
| 22 | * Permission to use, copy, modify, and/or distribute this software for any |
| 23 | * purpose with or without fee is hereby granted, provided that the above |
| 24 | @@ -1309,6 +1309,11 @@ |
| 25 | * The number of peers that HW timestamping can be enabled for concurrently |
| 26 | * is indicated by %NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS. |
| 27 | * |
| 28 | + * @NL80211_CMD_LINKS_REMOVED: Notify userspace about the removal of STA MLD |
| 29 | + * setup links due to AP MLD removing the corresponding affiliated APs with |
| 30 | + * Multi-Link reconfiguration. %NL80211_ATTR_MLO_LINKS is used to provide |
| 31 | + * information about the removed STA MLD setup links. |
| 32 | + * |
| 33 | * @NL80211_CMD_MAX: highest used command number |
| 34 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 35 | */ |
| 36 | @@ -1562,6 +1567,8 @@ enum nl80211_commands { |
| 37 | |
| 38 | NL80211_CMD_SET_HW_TIMESTAMP, |
| 39 | |
| 40 | + NL80211_CMD_LINKS_REMOVED, |
| 41 | + |
| 42 | /* add new commands above here */ |
| 43 | |
| 44 | /* used to define NL80211_CMD_MAX below */ |
| 45 | @@ -2805,6 +2812,9 @@ enum nl80211_commands { |
| 46 | * index. If the userspace includes more RNR elements than number of |
| 47 | * MBSSID elements then these will be added in every EMA beacon. |
| 48 | * |
| 49 | + * @NL80211_ATTR_MLO_LINK_DISABLED: Flag attribute indicating that the link is |
| 50 | + * disabled. |
| 51 | + * |
| 52 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 53 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 54 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 55 | @@ -3341,6 +3351,8 @@ enum nl80211_attrs { |
| 56 | |
| 57 | NL80211_ATTR_EMA_RNR_ELEMS, |
| 58 | |
| 59 | + NL80211_ATTR_MLO_LINK_DISABLED, |
| 60 | + |
| 61 | /* add attributes here, update the policy in nl80211.c */ |
| 62 | |
| 63 | __NL80211_ATTR_AFTER_LAST, |
| 64 | @@ -3667,6 +3679,13 @@ enum nl80211_eht_ru_alloc { |
| 65 | * (u8, see &enum nl80211_eht_gi) |
| 66 | * @NL80211_RATE_INFO_EHT_RU_ALLOC: EHT RU allocation, if not present then |
| 67 | * non-OFDMA was used (u8, see &enum nl80211_eht_ru_alloc) |
| 68 | + * @NL80211_RATE_INFO_S1G_MCS: S1G MCS index (u8, 0-10) |
| 69 | + * @NL80211_RATE_INFO_S1G_NSS: S1G NSS value (u8, 1-4) |
| 70 | + * @NL80211_RATE_INFO_1_MHZ_WIDTH: 1 MHz S1G rate |
| 71 | + * @NL80211_RATE_INFO_2_MHZ_WIDTH: 2 MHz S1G rate |
| 72 | + * @NL80211_RATE_INFO_4_MHZ_WIDTH: 4 MHz S1G rate |
| 73 | + * @NL80211_RATE_INFO_8_MHZ_WIDTH: 8 MHz S1G rate |
| 74 | + * @NL80211_RATE_INFO_16_MHZ_WIDTH: 16 MHz S1G rate |
| 75 | * @__NL80211_RATE_INFO_AFTER_LAST: internal use |
| 76 | */ |
| 77 | enum nl80211_rate_info { |
| 78 | @@ -3693,6 +3712,13 @@ enum nl80211_rate_info { |
| 79 | NL80211_RATE_INFO_EHT_NSS, |
| 80 | NL80211_RATE_INFO_EHT_GI, |
| 81 | NL80211_RATE_INFO_EHT_RU_ALLOC, |
| 82 | + NL80211_RATE_INFO_S1G_MCS, |
| 83 | + NL80211_RATE_INFO_S1G_NSS, |
| 84 | + NL80211_RATE_INFO_1_MHZ_WIDTH, |
| 85 | + NL80211_RATE_INFO_2_MHZ_WIDTH, |
| 86 | + NL80211_RATE_INFO_4_MHZ_WIDTH, |
| 87 | + NL80211_RATE_INFO_8_MHZ_WIDTH, |
| 88 | + NL80211_RATE_INFO_16_MHZ_WIDTH, |
| 89 | |
| 90 | /* keep last */ |
| 91 | __NL80211_RATE_INFO_AFTER_LAST, |
| 92 | @@ -4424,6 +4450,7 @@ enum nl80211_sched_scan_match_attr { |
| 93 | * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed |
| 94 | * @NL80211_RRF_NO_HE: HE operation not allowed |
| 95 | * @NL80211_RRF_NO_320MHZ: 320MHz operation not allowed |
| 96 | + * @NL80211_RRF_NO_EHT: EHT operation not allowed |
| 97 | */ |
| 98 | enum nl80211_reg_rule_flags { |
| 99 | NL80211_RRF_NO_OFDM = 1<<0, |
| 100 | @@ -4443,6 +4470,7 @@ enum nl80211_reg_rule_flags { |
| 101 | NL80211_RRF_NO_160MHZ = 1<<16, |
| 102 | NL80211_RRF_NO_HE = 1<<17, |
| 103 | NL80211_RRF_NO_320MHZ = 1<<18, |
| 104 | + NL80211_RRF_NO_EHT = 1<<19, |
| 105 | }; |
| 106 | |
| 107 | #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR |
| 108 | -- |
| 109 | 2.39.2 |
| 110 | |