From 00ad53ef6816a417fc7d3756c3652c5c0d605af9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 25 Aug 2008 11:30:39 +0300 Subject: [PATCH] Send HT parameters for new STAs This depends on a mac80211 patch to add NL80211_ATTR_HT_CAPABILITY (which is not yet in wireless-testing). --- hostapd/driver_nl80211.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index 58452fb41..1b03aa108 100644 --- a/hostapd/driver_nl80211.c +++ b/hostapd/driver_nl80211.c @@ -813,6 +813,16 @@ static int i802_sta_add2(const char *ifname, void *priv, NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL, params->listen_interval); +#ifdef CONFIG_IEEE80211N +#ifdef NL80211_ATTR_HT_CAPABILITY + if (params->ht_capabilities) { + NLA_PUT(msg, NL80211_ATTR_HT_CAPABILITY, + params->ht_capabilities->length, + ¶ms->ht_capabilities->data); + } +#endif /* NL80211_ATTR_HT_CAPABILITY */ +#endif /* CONFIG_IEEE80211N */ + ret = nl_send_auto_complete(drv->nl_handle, msg); if (ret < 0) goto nla_put_failure;