aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/key.c')
-rw-r--r--drivers/net/wireless/ath/key.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/key.c b/drivers/net/wireless/ath/key.c
index 62e3dac8f92..3a4769506ce 100644
--- a/drivers/net/wireless/ath/key.c
+++ b/drivers/net/wireless/ath/key.c
@@ -37,8 +37,7 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry)
37 void *ah = common->ah; 37 void *ah = common->ah;
38 38
39 if (entry >= common->keymax) { 39 if (entry >= common->keymax) {
40 ath_print(common, ATH_DBG_FATAL, 40 ath_err(common, "keycache entry %u out of range\n", entry);
41 "keychache entry %u out of range\n", entry);
42 return false; 41 return false;
43 } 42 }
44 43
@@ -75,8 +74,7 @@ static bool ath_hw_keysetmac(struct ath_common *common,
75 void *ah = common->ah; 74 void *ah = common->ah;
76 75
77 if (entry >= common->keymax) { 76 if (entry >= common->keymax) {
78 ath_print(common, ATH_DBG_FATAL, 77 ath_err(common, "keycache entry %u out of range\n", entry);
79 "keychache entry %u out of range\n", entry);
80 return false; 78 return false;
81 } 79 }
82 80
@@ -117,8 +115,7 @@ static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
117 u32 keyType; 115 u32 keyType;
118 116
119 if (entry >= common->keymax) { 117 if (entry >= common->keymax) {
120 ath_print(common, ATH_DBG_FATAL, 118 ath_err(common, "keycache entry %u out of range\n", entry);
121 "keycache entry %u out of range\n", entry);
122 return false; 119 return false;
123 } 120 }
124 121
@@ -159,8 +156,7 @@ static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
159 keyType = AR_KEYTABLE_TYPE_CLR; 156 keyType = AR_KEYTABLE_TYPE_CLR;
160 break; 157 break;
161 default: 158 default:
162 ath_print(common, ATH_DBG_FATAL, 159 ath_err(common, "cipher %u not supported\n", k->kv_type);
163 "cipher %u not supported\n", k->kv_type);
164 return false; 160 return false;
165 } 161 }
166 162
@@ -341,8 +337,7 @@ static int ath_setkey_tkip(struct ath_common *common, u16 keyix, const u8 *key,
341 memcpy(hk->kv_mic, key_txmic, sizeof(hk->kv_mic)); 337 memcpy(hk->kv_mic, key_txmic, sizeof(hk->kv_mic));
342 if (!ath_hw_set_keycache_entry(common, keyix, hk, NULL)) { 338 if (!ath_hw_set_keycache_entry(common, keyix, hk, NULL)) {
343 /* TX MIC entry failed. No need to proceed further */ 339 /* TX MIC entry failed. No need to proceed further */
344 ath_print(common, ATH_DBG_FATAL, 340 ath_err(common, "Setting TX MIC Key Failed\n");
345 "Setting TX MIC Key Failed\n");
346 return 0; 341 return 0;
347 } 342 }
348 343