linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 2/5] ath6kl: fix ath6kl's set tx power
@ 2011-11-23 16:08 Luis R. Rodriguez
  2011-11-24 12:31 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Luis R. Rodriguez @ 2011-11-23 16:08 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luis R. Rodriguez, Kalle Valo

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>
---
 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 0252604..9f3d3f0 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -1181,11 +1181,12 @@ static int ath6kl_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed)
 */
 static int ath6kl_cfg80211_set_txpower(struct wiphy *wiphy,
 				       enum nl80211_tx_power_setting type,
-				       int dbm)
+				       int mbm)
 {
 	struct ath6kl *ar = (struct ath6kl *)wiphy_priv(wiphy);
 	struct ath6kl_vif *vif;
 	u8 ath6kl_dbm;
+	int dbm = MBM_TO_DBM(mbm);
 
 	ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: type 0x%x, dbm %d\n", __func__,
 		   type, dbm);
-- 
1.7.4.15.g7811d


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RFC 2/5] ath6kl: fix ath6kl's set tx power
  2011-11-23 16:08 [RFC 2/5] ath6kl: fix ath6kl's set tx power Luis R. Rodriguez
@ 2011-11-24 12:31 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2011-11-24 12:31 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

On 11/23/2011 06:08 PM, Luis R. Rodriguez wrote:
> 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>

Thanks, applied.

Kalle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-24 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 16:08 [RFC 2/5] ath6kl: fix ath6kl's set tx power Luis R. Rodriguez
2011-11-24 12:31 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).