]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211 : fix a race with update_tkip_key
authorgregor kowski <gregor.kowski@gmail.com>
Wed, 9 Dec 2009 22:25:05 +0000 (23:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:31:14 +0000 (13:31 -0500)
commit900c6b0a87ed2e8c72a104d44bf2b14ccf5dcb65
treed11b0f99525f82515296c41fa643e518ddcbef11
parent2b0811ddf20fc9c4b8cef0745354590193545cb6
mac80211 : fix a race with update_tkip_key

The mac80211 tkip code won't call update_tkip_key, if rx packets
are received without KEY_FLAG_UPLOADED_TO_HARDWARE. This can happen on
first packet because the hardware key stuff is called asynchronously with
todo workqueue.

This patch workaround that by tracking if we sent the key to the driver.

Signed-off-by: Gregor Kowski <gregor.kowski@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/key.h
net/mac80211/tkip.c