iwlwifi: mvm: don't keep an mvm ref when the interface is down
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 25 Nov 2015 20:15:32 +0000 (22:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Dec 2015 07:06:32 +0000 (09:06 +0200)
commita42b2af3cfcfa43307f4d56e6aeba154161c7f05
treec564060c955b2d9982089eabafa44ad4cc364010
parent863558168d55e992ad6999736e5115ee0268a762
iwlwifi: mvm: don't keep an mvm ref when the interface is down

There is no reason to keep a reference when the interface is down,
since we are not really doing anything.  The reference is only needed
when the mac80211 start op (or a hw restart) is running, to prevent
going into runtime or system supend in the meantime.  This will allow
us to support runtime PM when the interface is down (in another
patch).

Signed-off-by: Luca Coelho <luciano.coelho@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/ops.c