Re: [PATCH] mac80211 : fix a race with update_tkip_key

Johannes Berg
2009-11-16T21:56:04Z

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

On Mon, 2009-11-16 at 22:53 +0100, gregor kowski wrote:
> 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.

> - ctx->initialized = 1;
> + ctx->initialized = TKIP_STATE_PHASE1_DONE;

Now you just need to rename the variable holding it to "state" too...

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]