mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
nl80211: Use NL80211_ATTR_PEER_AID to set TDLS peer AID
This is needed for TDLS with VHT to allow partial AID to be set correctly for the direct link frames. cfg80211 validation rules prevented NL80211_ATTR_STA_AID from being used for this in set_station case, so the new attribute is used instead. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f8a5fd4243
commit
e112764e6d
@ -6241,6 +6241,9 @@ static int wpa_driver_nl80211_sta_add(void *priv,
|
||||
params->listen_interval);
|
||||
NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL,
|
||||
params->listen_interval);
|
||||
} else if (params->aid && (params->flags & WPA_STA_TDLS_PEER)) {
|
||||
wpa_printf(MSG_DEBUG, " * peer_aid=%u", params->aid);
|
||||
NLA_PUT_U16(msg, NL80211_ATTR_PEER_AID, params->aid);
|
||||
}
|
||||
if (params->ht_capabilities) {
|
||||
wpa_hexdump(MSG_DEBUG, " * ht_capabilities",
|
||||
|
Loading…
Reference in New Issue
Block a user