iwlwifi: mvm: cleanup roc te on restart cleanup
authorEliad Peller <eliad@wizery.com>
Wed, 9 Dec 2015 14:33:20 +0000 (16:33 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Dec 2015 06:52:51 +0000 (08:52 +0200)
commit305d236e83b664e0c1e1e29d06f8780fdd311fd4
treeac7d0a9c2a85ba83e4cea2183b78bd9ce1ae1ba0
parent95a451c5e2eff812d572ee289a92cc5d38cc7e1c
iwlwifi: mvm: cleanup roc te on restart cleanup

iwl_mvm_restart_cleanup() calls ieee80211_remain_on_channel_expired()
on cleanup, but it doesn't clean the actual roc time
events, resulting in failure of further ROC attempts.

Refactor iwl_mvm_stop_roc() a bit, and add a new function
to only cleanup the roc time events (without sending further
commands).

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c
drivers/net/wireless/intel/iwlwifi/mvm/time-event.h