diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index f0106d331938..dddedfad5404 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -558,6 +558,19 @@ ieee80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = { | |||
558 | }, | 558 | }, |
559 | }; | 559 | }; |
560 | 560 | ||
561 | static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = { | ||
562 | .ampdu_params_info = IEEE80211_HT_AMPDU_PARM_FACTOR | | ||
563 | IEEE80211_HT_AMPDU_PARM_DENSITY, | ||
564 | |||
565 | .cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 | | ||
566 | IEEE80211_HT_CAP_MAX_AMSDU | | ||
567 | IEEE80211_HT_CAP_SGI_40), | ||
568 | .mcs = { | ||
569 | .rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff, | ||
570 | 0xff, 0xff, 0xff, 0xff, 0xff, }, | ||
571 | }, | ||
572 | }; | ||
573 | |||
561 | struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | 574 | struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, |
562 | const struct ieee80211_ops *ops) | 575 | const struct ieee80211_ops *ops) |
563 | { | 576 | { |
@@ -631,6 +644,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
631 | local->user_power_level = -1; | 644 | local->user_power_level = -1; |
632 | local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; | 645 | local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; |
633 | local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; | 646 | local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; |
647 | wiphy->ht_capa_mod_mask = &mac80211_ht_capa_mod_mask; | ||
634 | 648 | ||
635 | INIT_LIST_HEAD(&local->interfaces); | 649 | INIT_LIST_HEAD(&local->interfaces); |
636 | 650 | ||