Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90573
b: refs/heads/master
c: 253898c
h: refs/heads/master
i:
  90571: aedcec7
v: v3
  • Loading branch information
John W. Linville committed Apr 8, 2008
1 parent 08f2327 commit e1035c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: d59f720d88089f2feabe4335839521b26572dc75
refs/heads/master: 253898c4170c7f426d1bc32860fee04f27de3ade
5 changes: 4 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ static void handle_channel(struct ieee80211_channel *chan,
chan->flags = flags;
chan->max_antenna_gain = min(chan->orig_mag,
rg->max_antenna_gain);
chan->max_power = min(chan->orig_mpwr, rg->max_power);
if (chan->orig_mpwr)
chan->max_power = min(chan->orig_mpwr, rg->max_power);
else
chan->max_power = rg->max_power;
}

static void handle_band(struct ieee80211_supported_band *sband,
Expand Down

0 comments on commit e1035c7

Please sign in to comment.