mac80211: allow advertising correct maximum aggregate size
authorJohannes Berg <johannes.berg@intel.com>
Tue, 18 Jan 2011 12:52:23 +0000 (13:52 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jan 2011 16:36:12 +0000 (11:36 -0500)
commit5dd36bc933e8be84f8369ac64505a2938f9ce036
tree11538bafde53b6189da2af10d2f8a21c1b57565e
parent0b01f030d38e00650e2db42da083d8647aad40a5
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>
include/net/mac80211.h
net/mac80211/agg-tx.c