From: Jouni Malinen Date: Thu, 30 May 2013 07:25:23 +0000 (+0300) Subject: nl80211: Use NL80211_ATTR_PEER_AID to set TDLS peer AID X-Git-Tag: aosp-kk-from-upstream~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e112764e6d9e8154e3f33c667123143c3758e238;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 4e7f86d46..e1e27ea6b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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",