Johannes Berg 4334ec8518 mac80211: fix TX status cookie in HW offload case
When the off-channel TX is done with remain-on-channel
offloaded to hardware, the reported cookie is wrong as
in that case we shouldn't use the SKB as the cookie but
need to instead use the corresponding r-o-c cookie
(XOR'ed with 2 to prevent API mismatches).

Fix this by keeping track of the hw_roc_skb pointer
just for the status processing and use the correct
cookie to report in this case. We can't use the
hw_roc_skb pointer itself because it is NULL'ed when
the frame is transmitted to prevent it being used
twice.

This fixes a bug where the P2P state machine in the
supplicant gets stuck because it never gets a correct
result for its transmitted frame.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-02-02 16:38:59 -05:00
..
2009-07-10 15:01:49 -04:00
2010-10-13 15:45:23 -04:00
2010-12-13 15:23:29 -05:00
2011-01-05 16:07:12 -05:00
2011-01-13 15:46:45 -05:00
2010-12-07 17:08:06 -05:00
2010-10-07 14:41:27 -04:00
2010-07-08 16:35:50 -04:00
2010-07-08 16:35:50 -04:00
2010-10-11 15:04:23 -04:00
2010-07-08 16:35:50 -04:00
2010-12-22 15:44:22 -05:00
2010-01-05 16:21:40 -05:00
2010-09-27 15:57:54 -04:00