aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-01-18 07:52:23 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-19 11:36:12 -0500
commit5dd36bc933e8be84f8369ac64505a2938f9ce036 (patch)
tree11538bafde53b6189da2af10d2f8a21c1b57565e /include
parent0b01f030d38e00650e2db42da083d8647aad40a5 (diff)
mac80211: allow advertising correct maximum aggregate size
Currently, mac80211 always advertises that it may send up to 64 subframes in an aggregate. This is fine, since it's the max, but might as well be set to zero instead since it doesn't have any information. However, drivers might have that information, so allow them to set a variable giving it, which will then be used. The default of zero will be fine since to the peer that means we don't know and it will just use its own limit for the buffer size. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/mac80211.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 5afe341b4010..d6b0045788ce 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1154,6 +1154,10 @@ enum ieee80211_hw_flags {
1154 * This is only relevant if the device has restrictions on the 1154 * This is only relevant if the device has restrictions on the
1155 * number of subframes, if it relies on mac80211 to do reordering 1155 * number of subframes, if it relies on mac80211 to do reordering
1156 * it shouldn't be set. 1156 * it shouldn't be set.
1157 *
1158 * @max_tx_aggregation_subframes: maximum number of subframes in an
1159 * aggregate an HT driver will transmit, used by the peer as a
1160 * hint to size its reorder buffer.
1157 */ 1161 */
1158struct ieee80211_hw { 1162struct ieee80211_hw {
1159 struct ieee80211_conf conf; 1163 struct ieee80211_conf conf;
@@ -1173,6 +1177,7 @@ struct ieee80211_hw {
1173 u8 max_report_rates; 1177 u8 max_report_rates;
1174 u8 max_rate_tries; 1178 u8 max_rate_tries;
1175 u8 max_rx_aggregation_subframes; 1179 u8 max_rx_aggregation_subframes;
1180 u8 max_tx_aggregation_subframes;
1176}; 1181};
1177 1182
1178/** 1183/**