]> 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)
commit8a43a2d07c11c96f12f1a3c6c7ac1b6b0fac8111
treecc5b6b0017129b5748cfa2bace537d43c991d66c
parent839e6daad58da3b10cec040d86815d58d80fbf94
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