]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: don't warn in queue sync on RF-kill
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Apr 2017 08:21:18 +0000 (10:21 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Jun 2017 21:13:01 +0000 (00:13 +0300)
commit6ad0435991482107664f65b7ae3fd588f10149d4
tree783f28b3e1b9a00d2fdbb525eed8be425a7717f0
parentfa4de7f7c349d0fca751d1ad331c1fa8f528a47d
iwlwifi: mvm: don't warn in queue sync on RF-kill

If we happen to be in or get into the queue sync when RF-kill
is asserted, we return from there and warn since there are
still queue sync notifications outstanding. These can't ever
come though, because we're in RF-kill, so don't WARN then.

While at it, also move the warning to the appropriate place,
if the request is not synchronous then we shouldn't warn, but
currently always will.

To make it fast, also trigger the waitq when on rfkill assert.

Fixes: 0636b938214c ("iwlwifi: mvm: implement driver RX queues sync command")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c