p54: fix p54_set_key's return code
authorChristian Lamparter <chunkeey@web.de>
Fri, 16 Jan 2009 18:46:28 +0000 (19:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Jan 2009 22:08:25 +0000 (17:08 -0500)
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>
drivers/net/wireless/p54/p54common.c

index ae31e3775e0c173c10a181ad3e34368ffefc603e..12d0717c3992219fc6da29ab8e27de398016665c 100644 (file)
@@ -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;
                }
        }