aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2013-04-01 18:37:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-08 15:28:37 -0400
commitfedf1d809cb05662d57c447dbb1559f3f563bf4f (patch)
treec357cd1a91f3a5e89cb4fbbfe926500eb246423b
parent9908b07465556d4c96685d7f1ead0e17b01c662d (diff)
ath: Let user know which keycache method is complaining.
Should make the warning messages more useful. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/key.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/key.c b/drivers/net/wireless/ath/key.c
index 5c54aa43ca2d..1816b4e7dc26 100644
--- a/drivers/net/wireless/ath/key.c
+++ b/drivers/net/wireless/ath/key.c
@@ -45,7 +45,8 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry)
45 void *ah = common->ah; 45 void *ah = common->ah;
46 46
47 if (entry >= common->keymax) { 47 if (entry >= common->keymax) {
48 ath_err(common, "keycache entry %u out of range\n", entry); 48 ath_err(common, "keyreset: keycache entry %u out of range\n",
49 entry);
49 return false; 50 return false;
50 } 51 }
51 52
@@ -91,7 +92,8 @@ static bool ath_hw_keysetmac(struct ath_common *common,
91 void *ah = common->ah; 92 void *ah = common->ah;
92 93
93 if (entry >= common->keymax) { 94 if (entry >= common->keymax) {
94 ath_err(common, "keycache entry %u out of range\n", entry); 95 ath_err(common, "keysetmac: keycache entry %u out of range\n",
96 entry);
95 return false; 97 return false;
96 } 98 }
97 99
@@ -133,7 +135,8 @@ static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
133 u32 keyType; 135 u32 keyType;
134 136
135 if (entry >= common->keymax) { 137 if (entry >= common->keymax) {
136 ath_err(common, "keycache entry %u out of range\n", entry); 138 ath_err(common, "set-entry: keycache entry %u out of range\n",
139 entry);
137 return false; 140 return false;
138 } 141 }
139 142