mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
iwlwifi: mvm: Allow TKIP for AP mode
[ Upstream commit6f3df8c119] Support for setting keys for TKIP cipher suite was mistakenly removed for AP mode. Fix this. Fixes:85aeb58cec("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c4a3dcb0a2
commit
fe5ef5fe3e
@@ -3133,10 +3133,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);
|
||||
|
||||
Reference in New Issue
Block a user