]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: start auth/assoc timeout on frame status
authorJohannes Berg <johannes.berg@intel.com>
Tue, 29 Jan 2013 14:02:27 +0000 (15:02 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 31 Jan 2013 13:28:43 +0000 (14:28 +0100)
commit2e90d8fb2459eb9af9c5f504b1a11c540dc473d4
treecc5b6b0017129b5748cfa2bace537d43c991d66c
parent146961aec7821eb56d3d07f554878197b60eade3
mac80211: start auth/assoc timeout on frame status

When sending authentication/association frames they
might take a bit of time to go out because we may
have to synchronise with the AP, in particular in
the case where it's really a P2P GO. In this case
the 200ms fixed timeout could potentially be too
short if the beacon interval is relatively large.

For drivers that report TX status we can do better.
Instead of starting the timeout directly, start it
only when the frame status arrives. Since then the
frame was out on the air, we can wait shorter (the
typical response time is supposed to be 30ms, wait
100ms.) Also, if the frame failed to be transmitted
try again right away instead of waiting.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/scan.c
net/mac80211/status.c
net/mac80211/util.c