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)
commitca99861d5421c91f5a8fd3a77acb4b7be14f119d
treed11b0f99525f82515296c41fa643e518ddcbef11
parente54be4e7356c0612b48407d3b0647a29cb82e254
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