Rename VHT elements to match the standard
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>
This commit is contained in:
parent
8f8f68ba67
commit
5d285040d6
6 changed files with 16 additions and 16 deletions
|
@ -3696,7 +3696,7 @@ static int __check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
|
||||||
if (resp != WLAN_STATUS_SUCCESS)
|
if (resp != WLAN_STATUS_SUCCESS)
|
||||||
return resp;
|
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)
|
if (resp != WLAN_STATUS_SUCCESS)
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
@ -6382,9 +6382,9 @@ u8 * hostapd_eid_wb_chsw_wrapper(struct hostapd_data *hapd, u8 *eid)
|
||||||
&chan2) != HOSTAPD_MODE_IEEE80211A)
|
&chan2) != HOSTAPD_MODE_IEEE80211A)
|
||||||
return eid;
|
return eid;
|
||||||
|
|
||||||
*eid++ = WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER;
|
*eid++ = WLAN_EID_CHANNEL_SWITCH_WRAPPER;
|
||||||
*eid++ = 5; /* Length of 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++ = 3; /* Length of Wide Bandwidth Channel Switch element */
|
||||||
*eid++ = bw; /* New Channel Width */
|
*eid++ = bw; /* New Channel Width */
|
||||||
*eid++ = chan1; /* New Channel Center Frequency Segment 0 */
|
*eid++ = chan1; /* New Channel Center Frequency Segment 0 */
|
||||||
|
|
|
@ -542,10 +542,10 @@ static ParseRes __ieee802_11_parse_elems(const u8 *start, size_t len,
|
||||||
break;
|
break;
|
||||||
elems->vht_operation = pos;
|
elems->vht_operation = pos;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION:
|
case WLAN_EID_OPERATING_MODE_NOTIFICATION:
|
||||||
if (elen != 1)
|
if (elen != 1)
|
||||||
break;
|
break;
|
||||||
elems->vht_opmode_notif = pos;
|
elems->opmode_notif = pos;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_LINK_ID:
|
case WLAN_EID_LINK_ID:
|
||||||
if (elen < 18)
|
if (elen < 18)
|
||||||
|
@ -769,8 +769,8 @@ void ieee802_11_elems_clear_ids(struct ieee802_11_elems *elems,
|
||||||
case WLAN_EID_VHT_OPERATION:
|
case WLAN_EID_VHT_OPERATION:
|
||||||
elems->vht_operation = NULL;
|
elems->vht_operation = NULL;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION:
|
case WLAN_EID_OPERATING_MODE_NOTIFICATION:
|
||||||
elems->vht_opmode_notif = NULL;
|
elems->opmode_notif = NULL;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_LINK_ID:
|
case WLAN_EID_LINK_ID:
|
||||||
elems->link_id = NULL;
|
elems->link_id = NULL;
|
||||||
|
|
|
@ -55,7 +55,7 @@ struct ieee802_11_elems {
|
||||||
const u8 *peer_mgmt;
|
const u8 *peer_mgmt;
|
||||||
const u8 *vht_capabilities;
|
const u8 *vht_capabilities;
|
||||||
const u8 *vht_operation;
|
const u8 *vht_operation;
|
||||||
const u8 *vht_opmode_notif;
|
const u8 *opmode_notif;
|
||||||
const u8 *vendor_ht_cap;
|
const u8 *vendor_ht_cap;
|
||||||
const u8 *vendor_vht;
|
const u8 *vendor_vht;
|
||||||
const u8 *p2p;
|
const u8 *p2p;
|
||||||
|
|
|
@ -435,13 +435,13 @@
|
||||||
#define WLAN_EID_ANTENNA_SECTOR_ID_PATTERN 190
|
#define WLAN_EID_ANTENNA_SECTOR_ID_PATTERN 190
|
||||||
#define WLAN_EID_VHT_CAP 191
|
#define WLAN_EID_VHT_CAP 191
|
||||||
#define WLAN_EID_VHT_OPERATION 192
|
#define WLAN_EID_VHT_OPERATION 192
|
||||||
#define WLAN_EID_VHT_EXTENDED_BSS_LOAD 193
|
#define WLAN_EID_EXTENDED_BSS_LOAD 193
|
||||||
#define WLAN_EID_VHT_WIDE_BW_CHSWITCH 194
|
#define WLAN_EID_WIDE_BW_CHSWITCH 194
|
||||||
#define WLAN_EID_TRANSMIT_POWER_ENVELOPE 195
|
#define WLAN_EID_TRANSMIT_POWER_ENVELOPE 195
|
||||||
#define WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER 196
|
#define WLAN_EID_CHANNEL_SWITCH_WRAPPER 196
|
||||||
#define WLAN_EID_VHT_AID 197
|
#define WLAN_EID_AID 197
|
||||||
#define WLAN_EID_VHT_QUIET_CHANNEL 198
|
#define WLAN_EID_QUIET_CHANNEL 198
|
||||||
#define WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION 199
|
#define WLAN_EID_OPERATING_MODE_NOTIFICATION 199
|
||||||
#define WLAN_EID_UPSIM 200
|
#define WLAN_EID_UPSIM 200
|
||||||
#define WLAN_EID_REDUCED_NEIGHBOR_REPORT 201
|
#define WLAN_EID_REDUCED_NEIGHBOR_REPORT 201
|
||||||
#define WLAN_EID_TVHT_OPERATION 202
|
#define WLAN_EID_TVHT_OPERATION 202
|
||||||
|
|
|
@ -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 &&
|
} else if (*pos == WLAN_EID_HT_CAP &&
|
||||||
pos[1] >= sizeof(struct ieee80211_ht_capabilities)) {
|
pos[1] >= sizeof(struct ieee80211_ht_capabilities)) {
|
||||||
ie->ht_capabilities = pos + 2;
|
ie->ht_capabilities = pos + 2;
|
||||||
} else if (*pos == WLAN_EID_VHT_AID) {
|
} else if (*pos == WLAN_EID_AID) {
|
||||||
if (pos[1] >= 2)
|
if (pos[1] >= 2)
|
||||||
ie->aid = WPA_GET_LE16(pos + 2) & 0x3fff;
|
ie->aid = WPA_GET_LE16(pos + 2) & 0x3fff;
|
||||||
} else if (*pos == WLAN_EID_VHT_CAP &&
|
} else if (*pos == WLAN_EID_VHT_CAP &&
|
||||||
|
|
|
@ -771,7 +771,7 @@ static struct sta_info * mesh_mpm_add_peer(struct wpa_supplicant *wpa_s,
|
||||||
#ifdef CONFIG_IEEE80211AC
|
#ifdef CONFIG_IEEE80211AC
|
||||||
copy_sta_vht_capab(data, sta, elems->vht_capabilities);
|
copy_sta_vht_capab(data, sta, elems->vht_capabilities);
|
||||||
copy_sta_vht_oper(data, sta, elems->vht_operation);
|
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 */
|
#endif /* CONFIG_IEEE80211AC */
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211AX
|
#ifdef CONFIG_IEEE80211AX
|
||||||
|
|
Loading…
Reference in a new issue