summaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-01-12 14:26:30 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-01-19 17:36:09 +0100
commitdf6ba5d80d6c9b51471d5fa046c3c06988e5f62a (patch)
tree9321170ce223172318ff6e6fa34bd3b30559cf44 /net/mac80211/main.c
parentmac80211:mesh_mpp_table_grow call should depend on MESH_WORK_GROW_MPP_TABLE f... (diff)
downloadlinux-df6ba5d80d6c9b51471d5fa046c3c06988e5f62a.tar.xz
linux-df6ba5d80d6c9b51471d5fa046c3c06988e5f62a.zip
mac80211: add hw configuration for max ampdu buffer size
Some devices don't support the maximum AMDPU buffer size of 64, so we need to add an option to configure this in the hardware configuration. This value will be used in the ADDBA response instead of the value suggested in the request, if the latter is greater than the max supported. Signed-off-by: Luciano Coelho <coelho@ti.com> Tested-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 485d36bc9a46..1c507c6972e6 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -552,6 +552,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
local->hw.queues = 1;
local->hw.max_rates = 1;
local->hw.max_report_rates = 0;
+ local->hw.max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;
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;