summaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-03 22:59:00 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-04-06 13:18:19 +0200
commit6e0456b5454561c4e9fa9e8a4acea405e6d56c80 (patch)
tree0d3203eaa74cb6ad1595040fe3373c90af84b5f0 /net/mac80211/sta_info.c
parentc9c5962b56c10c34d8fedc20cd6d6ebdaa2383c6 (diff)
downloadtalos-obmc-linux-6e0456b5454561c4e9fa9e8a4acea405e6d56c80.tar.gz
talos-obmc-linux-6e0456b5454561c4e9fa9e8a4acea405e6d56c80.zip
mac80211: add A-MSDU tx support
Requires software tx queueing and fast-xmit support. For good performance, drivers need frag_list support as well. This avoids the need for copying data of aggregated frames. Running without it is only supported for debugging purposes. To avoid performance and packet size issues, the rate control module or driver needs to limit the maximum A-MSDU size by setting max_rc_amsdu_len in struct ieee80211_sta. Signed-off-by: Felix Fietkau <nbd@openwrt.org> [fix locking issue] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r--net/mac80211/sta_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index cf2aca0cc200..960e13d8ed30 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -416,6 +416,8 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
}
}
+ sta->sta.max_rc_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_BA;
+
sta_dbg(sdata, "Allocated STA %pM\n", sta->sta.addr);
return sta;
OpenPOWER on IntegriCloud