From b08c1d972a3b9135a0ccc5432309ee635841f466 Mon Sep 17 00:00:00 2001 From: Luciano Coelho Date: Tue, 20 May 2014 23:31:05 +0300 Subject: [PATCH] iwlwifi: mvm: add switch_vif_chanctx operation Implement the switch_vif_chanctx operation with support for a single-vif and SWAP mode. The REASSIGN mode and multi-vifs are not supported yet. This operation needs to implement 4 steps, namely unassign, remove, add and assign the chanctx. In order to do this, split out these operations into locked and non-locked parts, thus allowing us to call them while locked. Additionally, in order to allow us to restart the hardware when something fails, add a boolean to the iwl_mvm_nic_restart() function that tells whether the restart was triggered by a FW error or something else. Signed-off-by: Luciano Coelho Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-format-patch failed