diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-01-16 19:46:28 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-16 17:08:25 -0500 |
commit | 674743033c1ae9f7cc94e1e0037f6f719e6d1d67 (patch) | |
tree | 8fb5d87d3222202cb697d02a398309a611423b35 /drivers/net/wireless | |
parent | 275719089bfe7dbf446b72c3e520966e7fa42b6a (diff) | |
download | op-kernel-dev-674743033c1ae9f7cc94e1e0037f6f719e6d1d67.zip op-kernel-dev-674743033c1ae9f7cc94e1e0037f6f719e6d1d67.tar.gz |
p54: fix p54_set_key's return code
p54 doesn't support AES-128-CMAC offload.
This patch will fix the noisy mac80211 warnings, when 802.11w is enabled:
mac80211-phy189: failed to set key (4, ff:ff:ff:ff:ff:ff) to hardware (-22)
mac80211-phy189: failed to set key (5, ff:ff:ff:ff:ff:ff) to hardware (-22)
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index ae31e37..12d0717 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c @@ -2077,7 +2077,7 @@ static int p54_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd, algo = P54_CRYPTO_AESCCMP; break; default: - return -EINVAL; + return -EOPNOTSUPP; } } |