From 122d16f25db3d319ce090860acb3fdd413deaad6 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Thu, 14 Feb 2013 18:12:42 +0200 Subject: [PATCH] nl80211: Configure STA Capabilities and Extended Capabilities These are needed to allow drivers to implement all TDLS functionality properly. Signed-hostap: Jouni Malinen --- src/drivers/driver_nl80211.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index e19bb463c..bff0a512e 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5857,6 +5857,16 @@ static int wpa_driver_nl80211_sta_add(void *priv, params->vht_capabilities); } + wpa_printf(MSG_DEBUG, " * capability=0x%x", params->capability); + NLA_PUT_U16(msg, NL80211_ATTR_STA_CAPABILITY, params->capability); + + if (params->ext_capab) { + wpa_hexdump(MSG_DEBUG, " * ext_capab", + params->ext_capab, params->ext_capab_len); + NLA_PUT(msg, NL80211_ATTR_STA_EXT_CAPABILITY, + params->ext_capab_len, params->ext_capab); + } + os_memset(&upd, 0, sizeof(upd)); upd.mask = sta_flags_nl80211(params->flags); upd.set = upd.mask;