projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e957abb
)
mwifiex: fix usage of set tx power
author
Luis R. Rodriguez
<
[email protected]
>
Mon, 28 Nov 2011 21:38:50 +0000
(16:38 -0500)
committer
John W. Linville
<
[email protected]
>
Wed, 30 Nov 2011 20:08:30 +0000
(15:08 -0500)
mBm is passed but dBm was assumed...
Acked-by: Bing Zhao <
[email protected]
>
Signed-off-by: Luis R. Rodriguez <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/mwifiex/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/cfg80211.c
b/drivers/net/wireless/mwifiex/cfg80211.c
index e9ab9a3fbe9c2cb70ac2da2c0dbf3e1226c21bad..0db97cc84cb4556af9d0d5f44097dd384f20b0ac 100644
(file)
--- a/
drivers/net/wireless/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/mwifiex/cfg80211.c
@@
-120,10
+120,11
@@
mwifiex_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev,
static int
mwifiex_cfg80211_set_tx_power(struct wiphy *wiphy,
enum nl80211_tx_power_setting type,
- int
d
bm)
+ int
m
bm)
{
struct mwifiex_private *priv = mwifiex_cfg80211_get_priv(wiphy);
struct mwifiex_power_cfg power_cfg;
+ int dbm = MBM_TO_DBM(mbm);
if (type == NL80211_TX_POWER_FIXED) {
power_cfg.is_power_auto = 0;