iwlwifi: mvm: wake the wait queue when the RX sync counter is zero
authorSara Sharon <sara.sharon@intel.com>
Sun, 9 Oct 2016 14:34:24 +0000 (17:34 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Oct 2016 05:50:52 +0000 (08:50 +0300)
commit3a732c65de427fdae67a243fd331356034b5a1e8
treefc046b16a339fcabb803d09c5e4f988cebdfe604
parent5bfadc8255e2cd92be7538fd7dfa777c27f58be0
iwlwifi: mvm: wake the wait queue when the RX sync counter is zero

When we sync the RX queues the driver waits to receive echo
notification on all the RX queues.
The wait queue is set with timeout until all queues have received
the notification.
However, iwl_mvm_rx_queue_notif() never woke up the wait queue,
with the result of the counter value being checked only when the
timeout expired.
This may cause a latency of up to 1 second.

Fixes: 0636b938214c ("iwlwifi: mvm: implement driver RX queues sync command")
Signed-off-by: Sara Sharon <sara.sharon@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/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c