Patchwork [RFC,6/7] driver_nl80211: pass station VHT capabilities to kernel

login
register
mail settings
Submitter Johannes Berg
Date Nov. 21, 2012, 4:32 p.m.
Message ID <1353515536-30235-7-git-send-email-johannes@sipsolutions.net>
Download mbox | patch
Permalink /patch/200810/
State Deferred
Headers show

Comments

Johannes Berg - Nov. 21, 2012, 4:32 p.m.
From: Johannes Berg <johannes.berg@intel.com>

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
---
 src/drivers/driver_nl80211.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 6920301..8207a96 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5775,6 +5775,11 @@  static int wpa_driver_nl80211_sta_add(void *priv,
 			sizeof(*params->ht_capabilities),
 			params->ht_capabilities);
 	}
+	if (params->vht_capabilities) {
+		NLA_PUT(msg, NL80211_ATTR_VHT_CAPABILITY,
+			sizeof(*params->vht_capabilities),
+			params->vht_capabilities);
+	}
 
 	os_memset(&upd, 0, sizeof(upd));
 	upd.mask = sta_flags_nl80211(params->flags);