Commit 742c29fd authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

mwifiex: fix usage of set tx power

mBm is passed but dBm was assumed...
Acked-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e957abb6
...@@ -120,10 +120,11 @@ mwifiex_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev, ...@@ -120,10 +120,11 @@ mwifiex_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev,
static int static int
mwifiex_cfg80211_set_tx_power(struct wiphy *wiphy, mwifiex_cfg80211_set_tx_power(struct wiphy *wiphy,
enum nl80211_tx_power_setting type, enum nl80211_tx_power_setting type,
int dbm) int mbm)
{ {
struct mwifiex_private *priv = mwifiex_cfg80211_get_priv(wiphy); struct mwifiex_private *priv = mwifiex_cfg80211_get_priv(wiphy);
struct mwifiex_power_cfg power_cfg; struct mwifiex_power_cfg power_cfg;
int dbm = MBM_TO_DBM(mbm);
if (type == NL80211_TX_POWER_FIXED) { if (type == NL80211_TX_POWER_FIXED) {
power_cfg.is_power_auto = 0; power_cfg.is_power_auto = 0;
......
Markdown is supported
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