developer | e638cf4 | 2021-12-09 15:25:49 +0800 | [diff] [blame] | 1 | diff --git a/package/network/services/hostapd/patches/903-2102-sync-include-uapi-linux-nl80211.patch b/package/network/services/hostapd/patches/903-2102-sync-include-uapi-linux-nl80211.patch |
| 2 | new file mode 100644 |
| 3 | index 0000000..51a0d7f |
| 4 | --- /dev/null |
| 5 | +++ b/package/network/services/hostapd/patches/903-2102-sync-include-uapi-linux-nl80211.patch |
| 6 | @@ -0,0 +1,163 @@ |
| 7 | +diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h |
| 8 | +index 9679d56..ab84efc 100644 |
| 9 | +--- a/src/drivers/nl80211_copy.h |
| 10 | ++++ b/src/drivers/nl80211_copy.h |
| 11 | +@@ -2483,6 +2483,56 @@ enum nl80211_commands { |
| 12 | + * |
| 13 | + * @NL80211_ATTR_RECEIVE_MULTICAST: multicast flag for the |
| 14 | + * %NL80211_CMD_REGISTER_FRAME command, see the description there. |
| 15 | ++ * @NL80211_ATTR_WIPHY_FREQ_OFFSET: offset of the associated |
| 16 | ++ * %NL80211_ATTR_WIPHY_FREQ in positive KHz. Only valid when supplied with |
| 17 | ++ * an %NL80211_ATTR_WIPHY_FREQ_OFFSET. |
| 18 | ++ * @NL80211_ATTR_CENTER_FREQ1_OFFSET: Center frequency offset in KHz for the |
| 19 | ++ * first channel segment specified in %NL80211_ATTR_CENTER_FREQ1. |
| 20 | ++ * @NL80211_ATTR_SCAN_FREQ_KHZ: nested attribute with KHz frequencies |
| 21 | ++ * |
| 22 | ++ * @NL80211_ATTR_HE_6GHZ_CAPABILITY: HE 6 GHz Band Capability element (from |
| 23 | ++ * association request when used with NL80211_CMD_NEW_STATION). |
| 24 | ++ * |
| 25 | ++ * @NL80211_ATTR_FILS_DISCOVERY: Optional parameter to configure FILS |
| 26 | ++ * discovery. It is a nested attribute, see |
| 27 | ++ * &enum nl80211_fils_discovery_attributes. |
| 28 | ++ * |
| 29 | ++ * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure |
| 30 | ++ * unsolicited broadcast probe response. It is a nested attribute, see |
| 31 | ++ * &enum nl80211_unsol_bcast_probe_resp_attributes. |
| 32 | ++ * |
| 33 | ++ * @NL80211_ATTR_S1G_CAPABILITY: S1G Capability information element (from |
| 34 | ++ * association request when used with NL80211_CMD_NEW_STATION) |
| 35 | ++ * @NL80211_ATTR_S1G_CAPABILITY_MASK: S1G Capability Information element |
| 36 | ++ * override mask. Used with NL80211_ATTR_S1G_CAPABILITY in |
| 37 | ++ * NL80211_CMD_ASSOCIATE or NL80211_CMD_CONNECT. |
| 38 | ++ * |
| 39 | ++ * @NL80211_ATTR_SAE_PWE: Indicates the mechanism(s) allowed for SAE PWE |
| 40 | ++ * derivation in WPA3-Personal networks which are using SAE authentication. |
| 41 | ++ * This is a u8 attribute that encapsulates one of the values from |
| 42 | ++ * &enum nl80211_sae_pwe_mechanism. |
| 43 | ++ * |
| 44 | ++ * @NL80211_ATTR_SAR_SPEC: SAR power limitation specification when |
| 45 | ++ * used with %NL80211_CMD_SET_SAR_SPECS. The message contains fields |
| 46 | ++ * of %nl80211_sar_attrs which specifies the sar type and related |
| 47 | ++ * sar specs. Sar specs contains array of %nl80211_sar_specs_attrs. |
| 48 | ++ * |
| 49 | ++ * @NL80211_ATTR_RECONNECT_REQUESTED: flag attribute, used with deauth and |
| 50 | ++ * disassoc events to indicate that an immediate reconnect to the AP |
| 51 | ++ * is desired. |
| 52 | ++ * |
| 53 | ++ * @NL80211_ATTR_OBSS_COLOR_BITMAP: bitmap of the u64 BSS colors for the |
| 54 | ++ * %NL80211_CMD_OBSS_COLOR_COLLISION event. |
| 55 | ++ * |
| 56 | ++ * @NL80211_ATTR_COLOR_CHANGE_COUNT: u8 attribute specifying the number of TBTT's |
| 57 | ++ * until the color switch event. |
| 58 | ++ * @NL80211_ATTR_COLOR_CHANGE_COLOR: u8 attribute specifying the color that we are |
| 59 | ++ * switching to |
| 60 | ++ * @NL80211_ATTR_COLOR_CHANGE_ELEMS: Nested set of attributes containing the IE |
| 61 | ++ * information for the time while performing a color switch. |
| 62 | ++ * |
| 63 | ++ * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce |
| 64 | ++ * transmit power to stay within regulatory limits. u32, dBi. |
| 65 | + * |
| 66 | + * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 67 | + * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 68 | +@@ -2960,6 +3010,34 @@ enum nl80211_attrs { |
| 69 | + NL80211_ATTR_PMK_REAUTH_THRESHOLD, |
| 70 | + |
| 71 | + NL80211_ATTR_RECEIVE_MULTICAST, |
| 72 | ++ NL80211_ATTR_WIPHY_FREQ_OFFSET, |
| 73 | ++ NL80211_ATTR_CENTER_FREQ1_OFFSET, |
| 74 | ++ NL80211_ATTR_SCAN_FREQ_KHZ, |
| 75 | ++ |
| 76 | ++ NL80211_ATTR_HE_6GHZ_CAPABILITY, |
| 77 | ++ |
| 78 | ++ NL80211_ATTR_FILS_DISCOVERY, |
| 79 | ++ |
| 80 | ++ NL80211_ATTR_UNSOL_BCAST_PROBE_RESP, |
| 81 | ++ |
| 82 | ++ NL80211_ATTR_S1G_CAPABILITY, |
| 83 | ++ NL80211_ATTR_S1G_CAPABILITY_MASK, |
| 84 | ++ |
| 85 | ++ NL80211_ATTR_SAE_PWE, |
| 86 | ++ |
| 87 | ++ NL80211_ATTR_RECONNECT_REQUESTED, |
| 88 | ++ |
| 89 | ++ NL80211_ATTR_SAR_SPEC, |
| 90 | ++ |
| 91 | ++ NL80211_ATTR_DISABLE_HE, |
| 92 | ++ |
| 93 | ++ NL80211_ATTR_OBSS_COLOR_BITMAP, |
| 94 | ++ |
| 95 | ++ NL80211_ATTR_COLOR_CHANGE_COUNT, |
| 96 | ++ NL80211_ATTR_COLOR_CHANGE_COLOR, |
| 97 | ++ NL80211_ATTR_COLOR_CHANGE_ELEMS, |
| 98 | ++ |
| 99 | ++ NL80211_ATTR_WIPHY_ANTENNA_GAIN, |
| 100 | + |
| 101 | + /* add attributes here, update the policy in nl80211.c */ |
| 102 | + |
| 103 | +@@ -5705,6 +5783,46 @@ enum nl80211_feature_flags { |
| 104 | + * @NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS: management frame registrations |
| 105 | + * are possible for multicast frames and those will be reported properly. |
| 106 | + * |
| 107 | ++ * @NL80211_EXT_FEATURE_SCAN_FREQ_KHZ: This driver supports receiving and |
| 108 | ++ * reporting scan request with %NL80211_ATTR_SCAN_FREQ_KHZ. In order to |
| 109 | ++ * report %NL80211_ATTR_SCAN_FREQ_KHZ, %NL80211_SCAN_FLAG_FREQ_KHZ must be |
| 110 | ++ * included in the scan request. |
| 111 | ++ * |
| 112 | ++ * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS: The driver |
| 113 | ++ * can report tx status for control port over nl80211 tx operations. |
| 114 | ++ * |
| 115 | ++ * @NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION: Driver supports Operating |
| 116 | ++ * Channel Validation (OCV) when using driver's SME for RSNA handshakes. |
| 117 | ++ * |
| 118 | ++ * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK: Device wants to do 4-way |
| 119 | ++ * handshake with PSK in AP mode (PSK is passed as part of the start AP |
| 120 | ++ * command). |
| 121 | ++ * |
| 122 | ++ * @NL80211_EXT_FEATURE_SAE_OFFLOAD_AP: Device wants to do SAE authentication |
| 123 | ++ * in AP mode (SAE password is passed as part of the start AP command). |
| 124 | ++ * |
| 125 | ++ * @NL80211_EXT_FEATURE_FILS_DISCOVERY: Driver/device supports FILS discovery |
| 126 | ++ * frames transmission |
| 127 | ++ * |
| 128 | ++ * @NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP: Driver/device supports |
| 129 | ++ * unsolicited broadcast probe response transmission |
| 130 | ++ * |
| 131 | ++ * @NL80211_EXT_FEATURE_BEACON_RATE_HE: Driver supports beacon rate |
| 132 | ++ * configuration (AP/mesh) with HE rates. |
| 133 | ++ * |
| 134 | ++ * @NL80211_EXT_FEATURE_SECURE_LTF: Device supports secure LTF measurement |
| 135 | ++ * exchange protocol. |
| 136 | ++ * |
| 137 | ++ * @NL80211_EXT_FEATURE_SECURE_RTT: Device supports secure RTT measurement |
| 138 | ++ * exchange protocol. |
| 139 | ++ * |
| 140 | ++ * @NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE: Device supports management |
| 141 | ++ * frame protection for all management frames exchanged during the |
| 142 | ++ * negotiation and range measurement procedure. |
| 143 | ++ * |
| 144 | ++ * @NL80211_EXT_FEATURE_BSS_COLOR: The driver supports BSS color collision |
| 145 | ++ * detection and change announcemnts. |
| 146 | ++ * |
| 147 | + * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 148 | + * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| 149 | + */ |
| 150 | +@@ -5758,6 +5876,18 @@ enum nl80211_ext_feature_index { |
| 151 | + NL80211_EXT_FEATURE_DEL_IBSS_STA, |
| 152 | + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS, |
| 153 | + NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT, |
| 154 | ++ NL80211_EXT_FEATURE_SCAN_FREQ_KHZ, |
| 155 | ++ NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS, |
| 156 | ++ NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION, |
| 157 | ++ NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK, |
| 158 | ++ NL80211_EXT_FEATURE_SAE_OFFLOAD_AP, |
| 159 | ++ NL80211_EXT_FEATURE_FILS_DISCOVERY, |
| 160 | ++ NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP, |
| 161 | ++ NL80211_EXT_FEATURE_BEACON_RATE_HE, |
| 162 | ++ NL80211_EXT_FEATURE_SECURE_LTF, |
| 163 | ++ NL80211_EXT_FEATURE_SECURE_RTT, |
| 164 | ++ NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE, |
| 165 | ++ NL80211_EXT_FEATURE_BSS_COLOR, |
| 166 | + |
| 167 | + /* add new features before the definition below */ |
| 168 | + NUM_NL80211_EXT_FEATURES, |
| 169 | + |