]> git.itanic.dy.fi Git - linux-stable/commitdiff
iwlwifi: mvm: Allow TKIP for AP mode
authorIlan Peer <ilan.peer@intel.com>
Mon, 11 Jun 2018 11:05:11 +0000 (14:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:48 +0000 (18:00 +0100)
[ Upstream commit 6f3df8c1192c873a6ad9a76328920f6f85af90a8 ]

Support for setting keys for TKIP cipher suite was mistakenly removed
for AP mode. Fix this.

Fixes: 85aeb58cec1a ("iwlwifi: mvm: Enable security on new TX API")
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c

index d31d84eebc5d02add8a7fbc07692f1fd04555658..d16e2ed4419fe45ee48b8ef0e8d912e5a0293b43 100644 (file)
@@ -3067,10 +3067,6 @@ static int __iwl_mvm_set_sta_key(struct iwl_mvm *mvm,
 
        switch (keyconf->cipher) {
        case WLAN_CIPHER_SUITE_TKIP:
-               if (vif->type == NL80211_IFTYPE_AP) {
-                       ret = -EINVAL;
-                       break;
-               }
                addr = iwl_mvm_get_mac_addr(mvm, vif, sta);
                /* get phase 1 key from mac80211 */
                ieee80211_get_key_rx_seq(keyconf, 0, &seq);