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

Commit be892471 authored by John W. Linville's avatar John W. Linville Committed by John W. Linville
Browse files

mac80211: silently accept deletion of non-existant key



Otherwise, 'iwconfig wlan0 key off' with no key set results in:

	Error for wireless request "Set Encode" (8B2A) :
	    SET failed on device wlan0 ; No such file or directory.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5983a3df
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -55,9 +55,6 @@ static int ieee80211_set_encryption(struct net_device *dev, u8 *sta_addr,
			key = sta->key;
			key = sta->key;
		}
		}


		if (!key)
			return -ENOENT;

		ieee80211_key_free(key);
		ieee80211_key_free(key);
		return 0;
		return 0;
	} else {
	} else {