mac80211: allow cancelling dependent ROCs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 11 Jun 2012 15:09:41 +0000 (17:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jun 2012 08:11:31 +0000 (10:11 +0200)
commite979e33c3972044e1be5e46552a02c3b9c0bc7a7
treed34aea2a3a922b13cb85f5cf4077cad105cd50b2
parent535588e61a007416f46cf08b4ccb6cc73b3f6fb0
mac80211: allow cancelling dependent ROCs

In my redesign of remain-on-channel I forgot
that an item could be cancelled when it's a
dependent item that is part of another item.
Allow cancelling such items by removing them
from the dependents list.

Note that when we cancel the main item, all
its dependents are also cancelled. It would
be possible to not do that, but would need
tricks to promote an item from dependent to
top-level and is tricky in the HW ROC case.

Reported-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c