diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-09 06:20:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:13 -0400 |
commit | d51626df5747efaa8d2c00678f64cb503845effe (patch) | |
tree | cd1edba321572abd8b7ce90b9ecd4d6ff4c1ef1d /net/wireless/nl80211.c | |
parent | 94778280fabdb6bc76db5509bd95859f1141385b (diff) |
nl80211: export HT capabilities
This exports the local HT capabilities in nl80211.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 572793c8c7ab..4d12e885170e 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -157,6 +157,19 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags, | |||
157 | if (!nl_band) | 157 | if (!nl_band) |
158 | goto nla_put_failure; | 158 | goto nla_put_failure; |
159 | 159 | ||
160 | /* add HT info */ | ||
161 | if (dev->wiphy.bands[band]->ht_cap.ht_supported) { | ||
162 | NLA_PUT(msg, NL80211_BAND_ATTR_HT_MCS_SET, | ||
163 | sizeof(dev->wiphy.bands[band]->ht_cap.mcs), | ||
164 | &dev->wiphy.bands[band]->ht_cap.mcs); | ||
165 | NLA_PUT_U16(msg, NL80211_BAND_ATTR_HT_CAPA, | ||
166 | dev->wiphy.bands[band]->ht_cap.cap); | ||
167 | NLA_PUT_U8(msg, NL80211_BAND_ATTR_HT_AMPDU_FACTOR, | ||
168 | dev->wiphy.bands[band]->ht_cap.ampdu_factor); | ||
169 | NLA_PUT_U8(msg, NL80211_BAND_ATTR_HT_AMPDU_DENSITY, | ||
170 | dev->wiphy.bands[band]->ht_cap.ampdu_density); | ||
171 | } | ||
172 | |||
160 | /* add frequencies */ | 173 | /* add frequencies */ |
161 | nl_freqs = nla_nest_start(msg, NL80211_BAND_ATTR_FREQS); | 174 | nl_freqs = nla_nest_start(msg, NL80211_BAND_ATTR_FREQS); |
162 | if (!nl_freqs) | 175 | if (!nl_freqs) |