Patchwork [4/4] driver_nl80211: pass station VHT capabilities to kernel

login
register
mail settings
Submitter Johannes Berg
Date Dec. 28, 2012, 2:32 p.m.
Message ID <1356705152-3549-4-git-send-email-johannes@sipsolutions.net>
Download mbox | patch
Permalink /patch/208491/
State Accepted
Headers show

Comments

Johannes Berg - Dec. 28, 2012, 2:32 p.m.
From: Johannes Berg <johannes.berg@intel.com>

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

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 2639747..42fc253 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5811,6 +5811,12 @@  static int wpa_driver_nl80211_sta_add(void *priv,
 			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);
 	upd.set = upd.mask;