|
@@ -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 dbm)
|
|
|
+ int mbm)
|
|
|
{
|
|
|
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;
|