]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: mvm: add switch_vif_chanctx operation
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 20 May 2014 20:31:05 +0000 (23:31 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Jul 2014 18:41:17 +0000 (21:41 +0300)
commitb08c1d972a3b9135a0ccc5432309ee635841f466
tree4babfc418c95186f8729228aa1d78d5ec387619f
parent0166230c6c696d501a2d2616a30e295b71e39d43
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 <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/ops.c