mac80211: fix offchannel TX cookie matching
commit4641f8a010eb97303fbc9bd8a094139b52ffd629
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Oct 2011 16:27:10 +0000 (4 18:27 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:35:51 +0000 (11 09:35 -0800)
treefaf12450d0c295795f7f70464c9ae018f2c50f9e
parent806aeb924e925e6f1584ff956c9b9695e4ec18f9
mac80211: fix offchannel TX cookie matching

commit 28a1bcdb57d50f3038a255741ecc83e391e5282e upstream.

When I introduced in-kernel off-channel TX I
introduced a bug -- the work can't be canceled
again because the code clear the skb pointer.
Fix this by keeping track separately of whether
TX status has already been reported.

Reported-by: Jouni Malinen <j@w1.fi>
Tested-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/status.c
net/mac80211/work.c