Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54c8067a authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

iwlagn: do not check for AP mode for WEP keys



Even when we configure WEP keys in AP mode
ones without a station pointer are default
keys, so don't check for AP mode here.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 21cb9879
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3450,7 +3450,7 @@ static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
	 */
	if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
	     key->cipher == WLAN_CIPHER_SUITE_WEP104) &&
	    !sta && vif->type != NL80211_IFTYPE_AP) {
	    !sta) {
		if (cmd == SET_KEY)
			is_default_wep_key = !priv->key_mapping_key;
		else