]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Report unique remain-on-channel cookie values
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Oct 2011 13:00:13 +0000 (16:00 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:55 +0000 (12:58 +0200)
commit15d92583bc2e0d014c1fecc2b7531a978e44e26d
tree386a1c7c51e25021156174632fed554d870b2d68
parentbed1f58dc70f598c524e2507e0c10fca5ec50186
ath6kl: Report unique remain-on-channel cookie values

Even though only a single concurrent remain-on-channel operation is
supported, there may be two pending remain-on-channel events (one to
indicate end of a canceled operation and another to indicate start of a
new operation). User space won't be able to distinguish these events
unless unique cookies are used.

The previous behavior resulted in wpa_supplicant getting quite
confused about the driver's offchannel state in various sequences
and this made the P2P state machine behave incorrectly. Use of
more than a single remain-on-channel cookie value fixes this.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/wmi.c