]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix auth/assoc timeout handling
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Feb 2013 14:39:57 +0000 (15:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Feb 2013 08:41:10 +0000 (09:41 +0100)
commit6123da29e9dbb9a73ba053c9025951ea171e49ce
tree6fc8c817ee6ebf13c60d5d4d07c2c69609fcd5d0
parenteaf3d4a64571cb2a4324e81126b3970b041a7ffe
mac80211: fix auth/assoc timeout handling

In my commit 8a43a2d07c11c96f12f1a3c6c7ac1b6b0fac8111
("mac80211: start auth/assoc timeout on frame status")
I broke auth/assoc timeout handling: in case we wait
for the TX status, it now leaves the timeout field set
to 0, which is a valid time and can compare as being
before now ("jiffies"). Thus, if the work struct runs
for some other reason, the auth/assoc is treated as
having timed out.

Fix this by introducing a separate "timeout_started"
variable that tracks whether the timeout has started
and is checked before timing out.

Additionally, for proper TX status handling the change
requires that the skb->dev pointer is set up for all
the frames, so set it up for all frames in mac80211.

Reported-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Tested-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/sta_info.c
net/mac80211/tx.c