Skip to content

Commit

Permalink
brcm80211: fix usage of set tx power
Browse files Browse the repository at this point in the history
mBm is passed but dBm was assumed...

Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Nov 30, 2011
1 parent 1432de0 commit d3f3113
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,14 +1429,15 @@ brcmf_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *ndev,

static s32
brcmf_cfg80211_set_tx_power(struct wiphy *wiphy,
enum nl80211_tx_power_setting type, s32 dbm)
enum nl80211_tx_power_setting type, s32 mbm)
{

struct brcmf_cfg80211_priv *cfg_priv = wiphy_to_cfg(wiphy);
struct net_device *ndev = cfg_to_ndev(cfg_priv);
u16 txpwrmw;
s32 err = 0;
s32 disable = 0;
s32 dbm = MBM_TO_DBM(mbm);

WL_TRACE("Enter\n");
if (!check_sys_up(wiphy))
Expand Down

0 comments on commit d3f3113

Please sign in to comment.