Commit 84288044 authored by Mohammed Shafi Shajakhan's avatar Mohammed Shafi Shajakhan Committed by John W. Linville
Browse files

ath9k: better position PAPRD debug message

the training power calculation indirectly depends on target power under
some scenarios, unless we have a valid training power, the PAPRD frames
won't be sent out. so when we get an invalid training power, its better
to display them before returning back.
Signed-off-by: default avatarMohammed Shafi Shajakhan <>
Signed-off-by: default avatarJohn W. Linville <>
parent 05c0be2f
...@@ -119,15 +119,16 @@ static int ar9003_paprd_setup_single_table(struct ath_hw *ah) ...@@ -119,15 +119,16 @@ static int ar9003_paprd_setup_single_table(struct ath_hw *ah)
else else
training_power = ar9003_get_training_power_5g(ah); training_power = ar9003_get_training_power_5g(ah);
ath_dbg(common, ATH_DBG_CALIBRATE,
"Training power: %d, Target power: %d\n",
training_power, ah->paprd_target_power);
if (training_power < 0) { if (training_power < 0) {
ath_dbg(common, ATH_DBG_CALIBRATE, ath_dbg(common, ATH_DBG_CALIBRATE,
"PAPRD target power delta out of range"); "PAPRD target power delta out of range");
return -ERANGE; return -ERANGE;
} }
ah->paprd_training_power = training_power; ah->paprd_training_power = training_power;
ath_dbg(common, ATH_DBG_CALIBRATE,
"Training power: %d, Target power: %d\n",
ah->paprd_training_power, ah->paprd_target_power);
ah->paprd_ratemask); ah->paprd_ratemask);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment