]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: don't fail when removing a key from an inexisting sta
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 30 Mar 2017 09:04:47 +0000 (12:04 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Jun 2017 18:47:09 +0000 (21:47 +0300)
commit71793b7d3eb0897ca0dc4a109ede608d3e2c70ed
tree9e0233fc4cb75624449c99aa14afd4f5fdc46478
parente4c49c4937951de1cdbe35572ade40c948dec1e1
iwlwifi: mvm: don't fail when removing a key from an inexisting sta

The iwl_mvm_remove_sta_key() function handles removing a key when the
sta doesn't exist anymore.  Mistakenly, this was changed to return an
error while fixing another bug.

If the mvm_sta doesn't exist, we continue normally, but just don't try
to remove the igtk key.

Fixes: cd4d23c1ea9b ("iwlwifi: mvm: Fix removal of IGTK")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c