aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohn W. Linville <linville@linville-t41.local>2008-03-25 11:43:15 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-27 15:51:20 -0400
commitbe892471c42f70e47541e42b8dba7ff91cebd026 (patch)
tree97a8ff4237b9adc6b2ed88cdad761d43c5a28dcd /net/mac80211
parent5983a3dff0036d7ef6a2139473564f4f3e7b2a11 (diff)
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: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/ieee80211_ioctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index 5af23d31872..b047eebb633 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -55,9 +55,6 @@ static int ieee80211_set_encryption(struct net_device *dev, u8 *sta_addr,
key = sta->key;
}
- if (!key)
- return -ENOENT;
-
ieee80211_key_free(key);
return 0;
} else {