diff options
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) |