Johannes Berg 89afe614c0 mac80211: fix auth/assoc timeout handling
In my commit 1672c0e31917f49d31d30d79067103432bc20cc7
("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>
2013-02-15 09:41:10 +01:00
..
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:20 -04:00
2013-02-04 18:57:47 +01:00
2013-02-04 18:57:47 +01:00
2009-07-10 15:01:49 -04:00
2013-02-11 18:45:01 +01:00
2013-02-04 18:57:47 +01:00
2012-12-05 09:44:41 +01:00
2013-02-04 18:57:47 +01:00
2013-02-04 18:57:47 +01:00
2011-03-31 11:26:23 -03:00
2013-02-11 18:44:55 +01:00
2013-02-11 18:44:53 +01:00
2013-02-04 18:57:47 +01:00
2012-06-22 11:26:58 +02:00
2012-06-24 11:33:18 +02:00
2013-02-15 09:41:10 +01:00
2012-10-17 11:02:14 +02:00
2012-03-13 14:54:16 -04:00
2013-02-04 18:57:47 +01:00
2012-06-20 17:35:22 +02:00
2012-12-05 09:44:41 +01:00