]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: move roc cookie assignment earlier
authorEliad Peller <eliad@wizery.com>
Sun, 12 Jan 2014 09:06:37 +0000 (11:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 21:34:42 +0000 (13:34 -0800)
commit3881ea3edb2c9d08fde0160e64b8c5143737a5ec
tree710a44996294a765ea57f5ac55056249bbff363c
parent72f80f1cadc1b7140337e717f424d536463bc373
mac80211: move roc cookie assignment earlier

commit 2f617435c3a6fe3f39efb9ae2baa77de2d6c97b8 upstream.

ieee80211_start_roc_work() might add a new roc
to existing roc, and tell cfg80211 it has already
started.

However, this might happen before the roc cookie
was set, resulting in REMAIN_ON_CHANNEL (started)
event with null cookie. Consequently, it can make
wpa_supplicant go out of sync.

Fix it by setting the roc cookie earlier.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/cfg.c