|
@@ -537,6 +537,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
|
|
|
/* set up some defaults */
|
|
|
local->hw.queues = 1;
|
|
|
local->hw.max_rates = 1;
|
|
|
+ local->hw.max_report_rates = 0;
|
|
|
local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
|
|
|
local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
|
|
|
local->user_power_level = -1;
|
|
@@ -612,6 +613,9 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
|
WLAN_CIPHER_SUITE_AES_CMAC
|
|
|
};
|
|
|
|
|
|
+ if (hw->max_report_rates == 0)
|
|
|
+ hw->max_report_rates = hw->max_rates;
|
|
|
+
|
|
|
/*
|
|
|
* generic code guarantees at least one band,
|
|
|
* set this very early because much code assumes
|