ソースを参照

ath9k: Fix TX power calculation

The commit, "ath9k_hw: Fix incorrect Tx control power in AR9003 template"
fixed the incorrect values in the eeprom templates, but if
boards have already been calibrated with incorrect values,
they would still be using the wrong TX power. Fix this by assigning
a default value in such cases.

Cc: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Sujith Manoharan 11 年 前
コミット
4cfe9a8d58
1 ファイル変更4 行追加0 行削除
  1. 4 0
      drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

+ 4 - 0
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

@@ -5065,6 +5065,10 @@ static u16 ar9003_hw_get_max_edge_power(struct ar9300_eeprom *eep,
 			break;
 			break;
 		}
 		}
 	}
 	}
+
+	if (is2GHz && !twiceMaxEdgePower)
+		twiceMaxEdgePower = 60;
+
 	return twiceMaxEdgePower;
 	return twiceMaxEdgePower;
 }
 }