diff options
author | Luis R. Rodriguez <mcgrof@qca.qualcomm.com> | 2011-11-23 11:08:14 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-24 07:30:22 -0500 |
commit | b992a28557afdcabcee7d8af88471dddfe791c11 (patch) | |
tree | f93c822bd98688b9da711633b307ccb34658222d /drivers/net/wireless/ath/ath6kl/cfg80211.c | |
parent | 50553c2c8145c3278668f385a71abbf79108e737 (diff) |
ath6kl: fix ath6kl's set tx power
ath6kl assumed cfg80211 passed to us power in dBm but it is in mBm.
Cc: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 364f7884a3d3..29e63938684f 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -1200,11 +1200,12 @@ static int ath6kl_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) | |||
1200 | */ | 1200 | */ |
1201 | static int ath6kl_cfg80211_set_txpower(struct wiphy *wiphy, | 1201 | static int ath6kl_cfg80211_set_txpower(struct wiphy *wiphy, |
1202 | enum nl80211_tx_power_setting type, | 1202 | enum nl80211_tx_power_setting type, |
1203 | int dbm) | 1203 | int mbm) |
1204 | { | 1204 | { |
1205 | struct ath6kl *ar = (struct ath6kl *)wiphy_priv(wiphy); | 1205 | struct ath6kl *ar = (struct ath6kl *)wiphy_priv(wiphy); |
1206 | struct ath6kl_vif *vif; | 1206 | struct ath6kl_vif *vif; |
1207 | u8 ath6kl_dbm; | 1207 | u8 ath6kl_dbm; |
1208 | int dbm = MBM_TO_DBM(mbm); | ||
1208 | 1209 | ||
1209 | ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: type 0x%x, dbm %d\n", __func__, | 1210 | ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: type 0x%x, dbm %d\n", __func__, |
1210 | type, dbm); | 1211 | type, dbm); |