]> git.hungrycats.org Git - linux/commit
iwlwifi: mvm: ROC - bug fixes around time events and locking
authorMatti Gottlieb <matti.gottlieb@intel.com>
Mon, 29 Sep 2014 08:46:04 +0000 (11:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:33 +0000 (15:57 -0800)
commit4e709ff658f620bba0c1eb2e0925df2ccc4439ea
tree294b22aaea00c88be300c5d33e2e1a43c4b93497
parente82d01761ce623228cb21fc2680720f9fcab62a7
iwlwifi: mvm: ROC - bug fixes around time events and locking

commit a6cc5163149532734b84c86cbffa4994e527074b upstream.

Don't add the time event to the list. We added it several
times the same time event, which leads to an infinite loop
when walking the list.

Since we (currently) don't support more than one ROC for STA
vif at a time, enforce this and don't add the time event
to any list.

We were also missing the locking of the mutex which led to
a lockdep splat - fix that.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/time-event.c