projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59f720
)
cfg80211: default to regulatory max power for channel
author
John W. Linville
<linville@tuxdriver.com>
Thu, 3 Apr 2008 19:32:54 +0000
(15:32 -0400)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 8 Apr 2008 20:44:41 +0000
(16:44 -0400)
If the driver does not specify a maximum power output, default to the
regulatory max.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index 8cc6037eb2aede16e748c7afa8f1cdbf745925b2..185488da246647c06bd85261f856a71fed182c34 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-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,