Skip to content

Commit

Permalink
ath: Let user know which keycache method is complaining.
Browse files Browse the repository at this point in the history
Should make the warning messages more useful.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ben Greear authored and John W. Linville committed Apr 8, 2013
1 parent 9908b07 commit fedf1d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/net/wireless/ath/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry)
void *ah = common->ah;

if (entry >= common->keymax) {
ath_err(common, "keycache entry %u out of range\n", entry);
ath_err(common, "keyreset: keycache entry %u out of range\n",
entry);
return false;
}

Expand Down Expand Up @@ -91,7 +92,8 @@ static bool ath_hw_keysetmac(struct ath_common *common,
void *ah = common->ah;

if (entry >= common->keymax) {
ath_err(common, "keycache entry %u out of range\n", entry);
ath_err(common, "keysetmac: keycache entry %u out of range\n",
entry);
return false;
}

Expand Down Expand Up @@ -133,7 +135,8 @@ static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
u32 keyType;

if (entry >= common->keymax) {
ath_err(common, "keycache entry %u out of range\n", entry);
ath_err(common, "set-entry: keycache entry %u out of range\n",
entry);
return false;
}

Expand Down

0 comments on commit fedf1d8

Please sign in to comment.