]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Rename VHT elements to match the standard
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 26 Apr 2023 18:15:25 +0000 (21:15 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 26 Apr 2023 20:10:03 +0000 (23:10 +0300)
Some of the information elements added in IEEE Std 802.11ax-2013 for VHT
purposes have since then been taken into use for other cases and renamed
to remove the "VHT" prefix in the standard. Update the defines for those
elements in the implementation to match the names used in the current
standard.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11.c
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h
src/common/ieee802_11_defs.h
src/common/wpa_common.c
wpa_supplicant/mesh_mpm.c

index 908e97105f6aac91ed6d4ec67e3e032ecb756d06..f795c06a66e227601f7468dc24068fff4243d8ec 100644 (file)
@@ -3696,7 +3696,7 @@ static int __check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
                if (resp != WLAN_STATUS_SUCCESS)
                        return resp;
 
-               resp = set_sta_vht_opmode(hapd, sta, elems->vht_opmode_notif);
+               resp = set_sta_vht_opmode(hapd, sta, elems->opmode_notif);
                if (resp != WLAN_STATUS_SUCCESS)
                        return resp;
        }
@@ -6382,9 +6382,9 @@ u8 * hostapd_eid_wb_chsw_wrapper(struct hostapd_data *hapd, u8 *eid)
                                   &chan2) != HOSTAPD_MODE_IEEE80211A)
                return eid;
 
-       *eid++ = WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER;
+       *eid++ = WLAN_EID_CHANNEL_SWITCH_WRAPPER;
        *eid++ = 5; /* Length of Channel Switch Wrapper */
-       *eid++ = WLAN_EID_VHT_WIDE_BW_CHSWITCH;
+       *eid++ = WLAN_EID_WIDE_BW_CHSWITCH;
        *eid++ = 3; /* Length of Wide Bandwidth Channel Switch element */
        *eid++ = bw; /* New Channel Width */
        *eid++ = chan1; /* New Channel Center Frequency Segment 0 */
index 22f65affa876d440a7a14421fd87dced5a754a07..a8f16b3d114cd890f2e14b11140b5a8f6106274e 100644 (file)
@@ -542,10 +542,10 @@ static ParseRes __ieee802_11_parse_elems(const u8 *start, size_t len,
                                break;
                        elems->vht_operation = pos;
                        break;
-               case WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION:
+               case WLAN_EID_OPERATING_MODE_NOTIFICATION:
                        if (elen != 1)
                                break;
-                       elems->vht_opmode_notif = pos;
+                       elems->opmode_notif = pos;
                        break;
                case WLAN_EID_LINK_ID:
                        if (elen < 18)
@@ -769,8 +769,8 @@ void ieee802_11_elems_clear_ids(struct ieee802_11_elems *elems,
                case WLAN_EID_VHT_OPERATION:
                        elems->vht_operation = NULL;
                        break;
-               case WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION:
-                       elems->vht_opmode_notif = NULL;
+               case WLAN_EID_OPERATING_MODE_NOTIFICATION:
+                       elems->opmode_notif = NULL;
                        break;
                case WLAN_EID_LINK_ID:
                        elems->link_id = NULL;
index 8e730440af2a5e319db0364091cc149da8a69a73..785fe608a4c6091dc1d34d319e7db98d29066809 100644 (file)
@@ -55,7 +55,7 @@ struct ieee802_11_elems {
        const u8 *peer_mgmt;
        const u8 *vht_capabilities;
        const u8 *vht_operation;
-       const u8 *vht_opmode_notif;
+       const u8 *opmode_notif;
        const u8 *vendor_ht_cap;
        const u8 *vendor_vht;
        const u8 *p2p;
index dfad0b7b85aec0b7f727107710f1aded02bdcde4..12789227c4c9379303030b1ccb0caf30a9e8aa74 100644 (file)
 #define WLAN_EID_ANTENNA_SECTOR_ID_PATTERN 190
 #define WLAN_EID_VHT_CAP 191
 #define WLAN_EID_VHT_OPERATION 192
-#define WLAN_EID_VHT_EXTENDED_BSS_LOAD 193
-#define WLAN_EID_VHT_WIDE_BW_CHSWITCH  194
+#define WLAN_EID_EXTENDED_BSS_LOAD 193
+#define WLAN_EID_WIDE_BW_CHSWITCH  194
 #define WLAN_EID_TRANSMIT_POWER_ENVELOPE 195
-#define WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER 196
-#define WLAN_EID_VHT_AID 197
-#define WLAN_EID_VHT_QUIET_CHANNEL 198
-#define WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION 199
+#define WLAN_EID_CHANNEL_SWITCH_WRAPPER 196
+#define WLAN_EID_AID 197
+#define WLAN_EID_QUIET_CHANNEL 198
+#define WLAN_EID_OPERATING_MODE_NOTIFICATION 199
 #define WLAN_EID_UPSIM 200
 #define WLAN_EID_REDUCED_NEIGHBOR_REPORT 201
 #define WLAN_EID_TVHT_OPERATION 202
index 15ebcabb62ad990bf5f56a7aeb30cd44e51f85d4..367af8f631204d762478ff05d64990627cf6dd2d 100644 (file)
@@ -3567,7 +3567,7 @@ int wpa_parse_kde_ies(const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
                } else if (*pos == WLAN_EID_HT_CAP &&
                           pos[1] >= sizeof(struct ieee80211_ht_capabilities)) {
                        ie->ht_capabilities = pos + 2;
-               } else if (*pos == WLAN_EID_VHT_AID) {
+               } else if (*pos == WLAN_EID_AID) {
                        if (pos[1] >= 2)
                                ie->aid = WPA_GET_LE16(pos + 2) & 0x3fff;
                } else if (*pos == WLAN_EID_VHT_CAP &&
index da6d9db05f088bac18ba4bbd4f749895731dfe0e..c9e14d5c2d61749f4e25fae807c3d1352a3a640d 100644 (file)
@@ -771,7 +771,7 @@ static struct sta_info * mesh_mpm_add_peer(struct wpa_supplicant *wpa_s,
 #ifdef CONFIG_IEEE80211AC
        copy_sta_vht_capab(data, sta, elems->vht_capabilities);
        copy_sta_vht_oper(data, sta, elems->vht_operation);
-       set_sta_vht_opmode(data, sta, elems->vht_opmode_notif);
+       set_sta_vht_opmode(data, sta, elems->opmode_notif);
 #endif /* CONFIG_IEEE80211AC */
 
 #ifdef CONFIG_IEEE80211AX