hostapd: Make VHT IE struct more expressive
The VHT IE struct just has an opaque 8-byte array for the MCS set, make it more expressive by explicitly naming the pieces. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
3a2a7c3da6
commit
851b73eb28
2 changed files with 7 additions and 2 deletions
|
@ -38,7 +38,7 @@ u8 * hostapd_eid_vht_capabilities(struct hostapd_data *hapd, u8 *eid)
|
||||||
hapd->iface->current_mode->vht_capab);
|
hapd->iface->current_mode->vht_capab);
|
||||||
|
|
||||||
/* Supported MCS set comes from hw */
|
/* Supported MCS set comes from hw */
|
||||||
os_memcpy(cap->vht_supported_mcs_set,
|
os_memcpy(&cap->vht_supported_mcs_set,
|
||||||
hapd->iface->current_mode->vht_mcs_set, 8);
|
hapd->iface->current_mode->vht_mcs_set, 8);
|
||||||
|
|
||||||
pos += sizeof(*cap);
|
pos += sizeof(*cap);
|
||||||
|
|
|
@ -579,7 +579,12 @@ struct ieee80211_ht_operation {
|
||||||
|
|
||||||
struct ieee80211_vht_capabilities {
|
struct ieee80211_vht_capabilities {
|
||||||
le32 vht_capabilities_info;
|
le32 vht_capabilities_info;
|
||||||
u8 vht_supported_mcs_set[8];
|
struct {
|
||||||
|
le16 rx_map;
|
||||||
|
le16 rx_highest;
|
||||||
|
le16 tx_map;
|
||||||
|
le16 tx_highest;
|
||||||
|
} vht_supported_mcs_set;
|
||||||
} STRUCT_PACKED;
|
} STRUCT_PACKED;
|
||||||
|
|
||||||
struct ieee80211_vht_operation {
|
struct ieee80211_vht_operation {
|
||||||
|
|
Loading…
Reference in a new issue