EHT: Update EHT Operation element to P802.11be/D2.3 in AP settings
IEEE P802.11be/D2.0 added a 4-octet Basic EHT-MCS And Nss Set field into the EHT Operation element. cfg80211 is now verifying that the EHT Operation element has large enough payload and that check is failing with the previous version. This commit does not really set the correct Basic EHT-MCS And Nss Set values, but the IE length check is now passing to allow initial mac80211_hwsim testing to succeed. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e869fdfeef
commit
f4096e7cd5
2 changed files with 14 additions and 3 deletions
|
@ -197,17 +197,24 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
|
|||
struct ieee80211_eht_operation *oper;
|
||||
u8 *pos = eid, seg0 = 0, seg1 = 0;
|
||||
enum oper_chan_width chwidth;
|
||||
size_t elen = 1 + 4 + 3;
|
||||
|
||||
if (!hapd->iface->current_mode)
|
||||
return eid;
|
||||
|
||||
*pos++ = WLAN_EID_EXTENSION;
|
||||
*pos++ = 5;
|
||||
*pos++ = 1 + elen;
|
||||
*pos++ = WLAN_EID_EXT_EHT_OPERATION;
|
||||
|
||||
oper = (struct ieee80211_eht_operation *) pos;
|
||||
oper->oper_params = EHT_OPER_INFO_PRESENT;
|
||||
|
||||
/* TODO: Fill in appropriate EHT-MCS max Nss information */
|
||||
oper->basic_eht_mcs_nss_set[0] = 0x11;
|
||||
oper->basic_eht_mcs_nss_set[1] = 0x00;
|
||||
oper->basic_eht_mcs_nss_set[2] = 0x00;
|
||||
oper->basic_eht_mcs_nss_set[3] = 0x00;
|
||||
|
||||
if (is_6ghz_op_class(conf->op_class))
|
||||
chwidth = op_class_to_ch_width(conf->op_class);
|
||||
else
|
||||
|
@ -246,7 +253,7 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
|
|||
oper->oper_info.ccfs0 = seg0 ? seg0 : hapd->iconf->channel;
|
||||
oper->oper_info.ccfs1 = seg1;
|
||||
|
||||
return pos + 4;
|
||||
return pos + elen;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue