Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289954
b: refs/heads/master
c: a48b13a
h: refs/heads/master
v: v3
  • Loading branch information
Hong Wu authored and John W. Linville committed Jan 24, 2012
1 parent 7ceb410 commit 670e60e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eccc068e8e84c8fe997115629925e0422a98e4de
refs/heads/master: a48b13ac811ee236151d9e0e0dcb5639b2ab4591
3 changes: 2 additions & 1 deletion trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
power = chan->max_power;
else
power = local->power_constr_level ?
(chan->max_power - local->power_constr_level) :
min(chan->max_power,
(chan->max_reg_power - local->power_constr_level)) :
chan->max_power;

if (local->user_power_level >= 0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ static void ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata,
if (pwr_constr_elem_len != 1)
return;

if ((*pwr_constr_elem <= conf->channel->max_power) &&
if ((*pwr_constr_elem <= conf->channel->max_reg_power) &&
(*pwr_constr_elem != sdata->local->power_constr_level)) {
sdata->local->power_constr_level = *pwr_constr_elem;
ieee80211_hw_config(sdata->local, 0);
Expand Down

0 comments on commit 670e60e

Please sign in to comment.