]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix double-start of remain-on-channel
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 18:11:33 +0000 (20:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 18:12:12 +0000 (20:12 +0200)
commite4be0e9bb8924f9a1b22451589ec2a4f962c2884
tree88a4d19016a1564598e9e083444d1948dae5c99d
parent8ee6038cff5acbf564bf6ab94b3d0a5b248f1a3f
mac80211: fix double-start of remain-on-channel

When a remain-on-channel item is deleted, we remove it
from the list and then start the next item. However,
if it wasn't actually the first item then calling
ieee80211_start_next_roc() is wrong as it will start
the first item -- even if that was already started.

Fix the two places that do this and add a warning to
prevent the problem from reoccurring.

Reported-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/offchannel.c