From: Luis R. Rodriguez Date: Thu, 7 Jan 2010 22:24:56 +0000 (-0500) Subject: cfg80211: process the max power on a country IE X-Git-Tag: v3.12-rc1~11246^2~49^2~346 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08030db6e5275dda19ea1b3ab8a41c992799db4a;p=kernel%2Fkernel-generic.git cfg80211: process the max power on a country IE The max power from each country IE triplet was being ignored. This fix isn't critical as CRDA was always being used for the lower limit, but we should process it in case the AP still wants to decrease power output even more for whatever reason. Reported-by: Benoit PAPILLAULT Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 389247c..77d0bb6 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -680,7 +680,7 @@ static struct ieee80211_regdomain *country_ie_2_rd( */ freq_range->max_bandwidth_khz = MHZ_TO_KHZ(40); power_rule->max_antenna_gain = DBI_TO_MBI(100); - power_rule->max_eirp = DBM_TO_MBM(100); + power_rule->max_eirp = DBM_TO_MBM(triplet->chans.max_power); country_ie += 3; country_ie_len -= 3;