|
@@ -688,7 +688,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
|
int result, i;
|
|
|
enum ieee80211_band band;
|
|
|
int channels, max_bitrates;
|
|
|
- bool supp_ht;
|
|
|
+ bool supp_ht, supp_vht;
|
|
|
netdev_features_t feature_whitelist;
|
|
|
static const u32 cipher_suites[] = {
|
|
|
/* keep WEP first, it may be removed below */
|
|
@@ -732,6 +732,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
|
channels = 0;
|
|
|
max_bitrates = 0;
|
|
|
supp_ht = false;
|
|
|
+ supp_vht = false;
|
|
|
for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
|
|
|
struct ieee80211_supported_band *sband;
|
|
|
|
|
@@ -749,6 +750,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
|
if (max_bitrates < sband->n_bitrates)
|
|
|
max_bitrates = sband->n_bitrates;
|
|
|
supp_ht = supp_ht || sband->ht_cap.ht_supported;
|
|
|
+ supp_vht = supp_vht || sband->vht_cap.vht_supported;
|
|
|
}
|
|
|
|
|
|
local->int_scan_req = kzalloc(sizeof(*local->int_scan_req) +
|
|
@@ -824,6 +826,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
|
if (supp_ht)
|
|
|
local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap);
|
|
|
|
|
|
+ if (supp_vht)
|
|
|
+ local->scan_ies_len +=
|
|
|
+ 2 + sizeof(struct ieee80211_vht_capabilities);
|
|
|
+
|
|
|
if (!local->ops->hw_scan) {
|
|
|
/* For hw_scan, driver needs to set these up. */
|
|
|
local->hw.wiphy->max_scan_ssids = 4;
|