]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: return the actual error code when switch_vif_chanctx fails
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 10 Nov 2014 09:10:10 +0000 (11:10 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:28 +0000 (08:30 +0200)
commit0376fc457e4cf95e6fd83d07a3711462b2b03ae6
tree89b4e6cd7395272c0ab72d3aafb2d77a9cb4908f
parent1ea5f50c27e319ea8185b9ded270cd038c49990c
iwlwifi: mvm: return the actual error code when switch_vif_chanctx fails

We have code to recover and go back to the original channel context if
something fails in the middle of switch_vif_chanctx, but we return the
error code of the recover calls instead of the original code, so if
the recovery succeeds, we will return 0 (success).  Fix this by not
assigning the return value of the recovery calls to ret.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c