aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath9k/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 5e9a3e19da40..fc4439f97506 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -817,7 +817,7 @@ static int ath_key_config(struct ath_softc *sc,
817 hk.kv_type = ATH9K_CIPHER_AES_CCM; 817 hk.kv_type = ATH9K_CIPHER_AES_CCM;
818 break; 818 break;
819 default: 819 default:
820 return -EINVAL; 820 return -EOPNOTSUPP;
821 } 821 }
822 822
823 hk.kv_len = key->keylen; 823 hk.kv_len = key->keylen;
@@ -851,7 +851,7 @@ static int ath_key_config(struct ath_softc *sc,
851 else 851 else
852 idx = ath_reserve_key_cache_slot(sc); 852 idx = ath_reserve_key_cache_slot(sc);
853 if (idx < 0) 853 if (idx < 0)
854 return -EIO; /* no free key cache entries */ 854 return -ENOSPC; /* no free key cache entries */
855 } 855 }
856 856
857 if (key->alg == ALG_TKIP) 857 if (key->alg == ALG_TKIP)