From: Johannes Berg Date: Mon, 18 May 2009 17:56:36 +0000 (+0200) Subject: cfg80211: allow wext to remove keys that don't exist X-Git-Tag: v2.6.31-rc1~330^2~313^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3da574a0ddd3e90a1e2b788b84b94bc17a75172;p=pandora-kernel.git cfg80211: allow wext to remove keys that don't exist Some applications using wireless extensions expect to be able to remove a key that doesn't exist. One example is wpa_supplicant which doesn't actually change behaviour when running into an error while trying to do that, but it prints an error message which users interpret as wpa_supplicant having problems. The safe thing to do is not change the behaviour of wireless extensions any more, so when the driver reports -ENOENT let the wext bridge code return success to userspace. To guarantee this, also document that drivers should return -ENOENT when the key doesn't exist. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed