diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-05-18 13:56:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:30 -0400 |
commit | e3da574a0ddd3e90a1e2b788b84b94bc17a75172 (patch) | |
tree | dc17ed9268594c1236e1f0b5efae2140b226b5cf /include/net | |
parent | 73606d00360cb93963aeb7bfbf8bfdbc51cfab9f (diff) |
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 <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 81a3bfa45471..389f1d20adf4 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -781,10 +781,11 @@ enum wiphy_params_flags { | |||
781 | * @get_key: get information about the key with the given parameters. | 781 | * @get_key: get information about the key with the given parameters. |
782 | * @mac_addr will be %NULL when requesting information for a group | 782 | * @mac_addr will be %NULL when requesting information for a group |
783 | * key. All pointers given to the @callback function need not be valid | 783 | * key. All pointers given to the @callback function need not be valid |
784 | * after it returns. | 784 | * after it returns. This function should return an error if it is |
785 | * not possible to retrieve the key, -ENOENT if it doesn't exist. | ||
785 | * | 786 | * |
786 | * @del_key: remove a key given the @mac_addr (%NULL for a group key) | 787 | * @del_key: remove a key given the @mac_addr (%NULL for a group key) |
787 | * and @key_index | 788 | * and @key_index, return -ENOENT if the key doesn't exist. |
788 | * | 789 | * |
789 | * @set_default_key: set the default key on an interface | 790 | * @set_default_key: set the default key on an interface |
790 | * | 791 | * |