]> git.baikalelectronics.ru Git - kernel.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)
commit72fca6f132d70929429916920ba2edfd52913dbd
tree9e0233fc4cb75624449c99aa14afd4f5fdc46478
parentfedd138cdb441fec17c72f66416acaa9512ef8e0
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: a42e09bcab5b ("iwlwifi: mvm: Fix removal of IGTK")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c