iwlwifi: mvm: implement driver RX queues sync command
[deliverable/linux.git] / drivers / net / wireless / intel / iwlwifi / mvm / rxmq.c
index 651604d18a3252af432d396bff7e923bd1439c2c..b4d9c42d411afd53a869e5f393f7f1a703d912a5 100644 (file)
@@ -406,6 +406,13 @@ void iwl_mvm_rx_queue_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
        internal_notif = (void *)notif->payload;
 
        switch (internal_notif->type) {
+       case IWL_MVM_RXQ_SYNC:
+               if (mvm->queue_sync_cookie == internal_notif->cookie)
+                       atomic_dec(&mvm->queue_sync_counter);
+               else
+                       WARN_ONCE(1,
+                                 "Received expired RX queue sync message\n");
+               break;
        case IWL_MVM_RXQ_NOTIF_DEL_BA:
                /* TODO */
                break;
This page took 0.025667 seconds and 5 git commands to generate.