All of lore.kernel.org
 help / color / mirror / Atom feed
* [wireless-regdb] Fwd: possible mismatch Canadian regulatory info
       [not found] <CAPw1JcdLDkW9xEUfh-764kuC643DAJ+qWNf4RxmoyUXbpc-D5w@mail.gmail.com>
@ 2017-02-06 19:12 ` cory novak
  2017-02-06 19:39   ` Seth Forshee
  0 siblings, 1 reply; 11+ messages in thread
From: cory novak @ 2017-02-06 19:12 UTC (permalink / raw)
  To: wireless-regdb

(sorry if this is a duplicate, got a 'we don't accept html mails' error back)
---------- Forwarded message ----------
From: cory novak <cory.novak@gmail.com>
Date: Mon, Feb 6, 2017 at 11:07 AM
Subject: possible mismatch Canadian regulatory info
To: wireless-regdb@lists.infradead.org


I really tried to use alternate mediums before bothering this list
with info that appears to me to be mismatched, but, could easily
simply be a result of my lack of knowledge.  Here's my info:


Canada values from this source:
http://git.kernel.org/cgit/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt?id=HEAD

For Canada (5170 - 5250 is where I'm focusing):

country CA: DFS-FCC
(2402 - 2472 @ 40), (30)
(5170 - 5250 @ 80), (17), AUTO-BW
(5250 - 5330 @ 80), (24), DFS, AUTO-BW
(5490 - 5600 @ 80), (24), DFS
(5650 - 5730 @ 80), (24), DFS
(5735 - 5835 @ 80), (30)

*SEEM* to differ to my completely amateur eye vs industry canada
section 6.2 here:
http://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10971.html#s6.2

This is the applicable text for that band:

"The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10B, dBm,
whichever power is less. B is the 99% emission bandwidth in megahertz.
The e.i.r.p. spectral density shall not exceed 10 dBm in any 1.0 MHz
band."

An easier source to parse for the IC data :
http://www.semfionetworks.com/blog/industry-canada-new-5ghz-band-regulations

This is the output from my Archer C2600:    * 5180 MHz [36] (17.0 dBm)
                        * 5200 MHz [40] (17.0 dBm)
                        * 5220 MHz [44] (17.0 dBm)
                        * 5240 MHz [48] (17.0 dBm)


It appears that the 5170-5250 band is way under spec at 17dbm instead of 23dbm.


thanks

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] Fwd: possible mismatch Canadian regulatory info
  2017-02-06 19:12 ` [wireless-regdb] Fwd: possible mismatch Canadian regulatory info cory novak
@ 2017-02-06 19:39   ` Seth Forshee
  2017-02-06 19:44     ` cory novak
  0 siblings, 1 reply; 11+ messages in thread
From: Seth Forshee @ 2017-02-06 19:39 UTC (permalink / raw)
  To: cory novak; +Cc: wireless-regdb

On Mon, Feb 06, 2017 at 11:12:45AM -0800, cory novak wrote:
> (sorry if this is a duplicate, got a 'we don't accept html mails' error back)
> ---------- Forwarded message ----------
> From: cory novak <cory.novak@gmail.com>
> Date: Mon, Feb 6, 2017 at 11:07 AM
> Subject: possible mismatch Canadian regulatory info
> To: wireless-regdb@lists.infradead.org
> 
> 
> I really tried to use alternate mediums before bothering this list
> with info that appears to me to be mismatched, but, could easily
> simply be a result of my lack of knowledge.  Here's my info:
> 
> 
> Canada values from this source:
> http://git.kernel.org/cgit/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt?id=HEAD
> 
> For Canada (5170 - 5250 is where I'm focusing):
> 
> country CA: DFS-FCC
> (2402 - 2472 @ 40), (30)
> (5170 - 5250 @ 80), (17), AUTO-BW
> (5250 - 5330 @ 80), (24), DFS, AUTO-BW
> (5490 - 5600 @ 80), (24), DFS
> (5650 - 5730 @ 80), (24), DFS
> (5735 - 5835 @ 80), (30)
> 
> *SEEM* to differ to my completely amateur eye vs industry canada
> section 6.2 here:
> http://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10971.html#s6.2
> 
> This is the applicable text for that band:
> 
> "The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10B, dBm,
> whichever power is less. B is the 99% emission bandwidth in megahertz.
> The e.i.r.p. spectral density shall not exceed 10 dBm in any 1.0 MHz
> band."
> 
> An easier source to parse for the IC data :
> http://www.semfionetworks.com/blog/industry-canada-new-5ghz-band-regulations
> 
> This is the output from my Archer C2600:    * 5180 MHz [36] (17.0 dBm)
>                         * 5200 MHz [40] (17.0 dBm)
>                         * 5220 MHz [44] (17.0 dBm)
>                         * 5240 MHz [48] (17.0 dBm)
> 
> 
> It appears that the 5170-5250 band is way under spec at 17dbm instead of 23dbm.

It looks to me like you are correct. Would you like to send a patch? Or
if you aren't familiar with patching the regulatory db I can generate
one.

Thanks,
Seth


_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] Fwd: possible mismatch Canadian regulatory info
  2017-02-06 19:39   ` Seth Forshee
@ 2017-02-06 19:44     ` cory novak
  2017-02-06 20:50       ` [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada Seth Forshee
  0 siblings, 1 reply; 11+ messages in thread
From: cory novak @ 2017-02-06 19:44 UTC (permalink / raw)
  To: wireless-regdb

On Mon, Feb 6, 2017 at 11:39 AM, Seth Forshee
<seth.forshee@canonical.com> wrote:
> On Mon, Feb 06, 2017 at 11:12:45AM -0800, cory novak wrote:
>> (sorry if this is a duplicate, got a 'we don't accept html mails' error back)
>> ---------- Forwarded message ----------
>> From: cory novak <cory.novak@gmail.com>
>> Date: Mon, Feb 6, 2017 at 11:07 AM
>> Subject: possible mismatch Canadian regulatory info
>> To: wireless-regdb@lists.infradead.org
>>
>>
>> I really tried to use alternate mediums before bothering this list
>> with info that appears to me to be mismatched, but, could easily
>> simply be a result of my lack of knowledge.  Here's my info:
>>
>>
>> Canada values from this source:
>> http://git.kernel.org/cgit/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt?id=HEAD
>>
>> For Canada (5170 - 5250 is where I'm focusing):
>>
>> country CA: DFS-FCC
>> (2402 - 2472 @ 40), (30)
>> (5170 - 5250 @ 80), (17), AUTO-BW
>> (5250 - 5330 @ 80), (24), DFS, AUTO-BW
>> (5490 - 5600 @ 80), (24), DFS
>> (5650 - 5730 @ 80), (24), DFS
>> (5735 - 5835 @ 80), (30)
>>
>> *SEEM* to differ to my completely amateur eye vs industry canada
>> section 6.2 here:
>> http://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10971.html#s6.2
>>
>> This is the applicable text for that band:
>>
>> "The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10B, dBm,
>> whichever power is less. B is the 99% emission bandwidth in megahertz.
>> The e.i.r.p. spectral density shall not exceed 10 dBm in any 1.0 MHz
>> band."
>>
>> An easier source to parse for the IC data :
>> http://www.semfionetworks.com/blog/industry-canada-new-5ghz-band-regulations
>>
>> This is the output from my Archer C2600:    * 5180 MHz [36] (17.0 dBm)
>>                         * 5200 MHz [40] (17.0 dBm)
>>                         * 5220 MHz [44] (17.0 dBm)
>>                         * 5240 MHz [48] (17.0 dBm)
>>
>>
>> It appears that the 5170-5250 band is way under spec at 17dbm instead of 23dbm.
>
> It looks to me like you are correct. Would you like to send a patch? Or
> if you aren't familiar with patching the regulatory db I can generate
> one.
>
> Thanks,
> Seth
>

Hi Seth

Just a dumb user here, I'd appreciate it if you'd go ahead.
thanks :)

Cory

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-06 19:44     ` cory novak
@ 2017-02-06 20:50       ` Seth Forshee
  2017-02-07  7:52         ` Johannes Berg
  2017-03-01 15:49         ` Seth Forshee
  0 siblings, 2 replies; 11+ messages in thread
From: Seth Forshee @ 2017-02-06 20:50 UTC (permalink / raw)
  To: wireless-regdb; +Cc: cory novak

Based on the information from [1] the power limit for 5150-5250
MHz can be increased to 23 dBm. Also update some rules to match
exact frequency ranges given in that document.

[1] http://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10971.html

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 db.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/db.txt b/db.txt
index 05108e0d4d1c..699c1e7a713f 100644
--- a/db.txt
+++ b/db.txt
@@ -230,9 +230,9 @@ country BZ: DFS-JP
 
 country CA: DFS-FCC
 	(2402 - 2472 @ 40), (30)
-	(5170 - 5250 @ 80), (17), AUTO-BW
-	(5250 - 5330 @ 80), (24), DFS, AUTO-BW
-	(5490 - 5600 @ 80), (24), DFS
+	(5150 - 5250 @ 80), (23), AUTO-BW
+	(5250 - 5350 @ 80), (24), DFS, AUTO-BW
+	(5470 - 5600 @ 80), (24), DFS
 	(5650 - 5730 @ 80), (24), DFS
 	(5735 - 5835 @ 80), (30)
 
-- 
2.7.4


_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-06 20:50       ` [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada Seth Forshee
@ 2017-02-07  7:52         ` Johannes Berg
  2017-02-07 14:04           ` Seth Forshee
  2017-03-01 15:49         ` Seth Forshee
  1 sibling, 1 reply; 11+ messages in thread
From: Johannes Berg @ 2017-02-07  7:52 UTC (permalink / raw)
  To: Seth Forshee, wireless-regdb; +Cc: cory novak

On Mon, 2017-02-06 at 14:50 -0600, Seth Forshee wrote:
> +	(5150 - 5250 @ 80), (23), AUTO-BW

For 20 MHz this is right, since the document says:

    The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10 B,
    dBm, whichever power is less. B is the 99% emission bandwidth in
    megahertz. The e.i.r.p. spectral density shall not exceed 10 dBm in
    any 1.0 MHz band.

However, for < 20 MHz, like 5 or 10, which we in theory do support, you
can't use that much due to the spectral density requirement. It seems
possible that that's where the 17 dBm came from, since 10 + 10 log10(5)
is about 17.

johannes

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-07  7:52         ` Johannes Berg
@ 2017-02-07 14:04           ` Seth Forshee
  2017-02-07 14:15             ` Johannes Berg
  2017-02-13 13:58             ` Matthias May
  0 siblings, 2 replies; 11+ messages in thread
From: Seth Forshee @ 2017-02-07 14:04 UTC (permalink / raw)
  To: Johannes Berg; +Cc: cory novak, wireless-regdb

On Tue, Feb 07, 2017 at 08:52:30AM +0100, Johannes Berg wrote:
> On Mon, 2017-02-06 at 14:50 -0600, Seth Forshee wrote:
> > +	(5150 - 5250 @ 80), (23), AUTO-BW
> 
> For 20 MHz this is right, since the document says:
> 
>     The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10 B,
>     dBm, whichever power is less. B is the 99% emission bandwidth in
>     megahertz. The e.i.r.p. spectral density shall not exceed 10 dBm in
>     any 1.0 MHz band.
> 
> However, for < 20 MHz, like 5 or 10, which we in theory do support, you
> can't use that much due to the spectral density requirement. It seems
> possible that that's where the 17 dBm came from, since 10 + 10 log10(5)
> is about 17.

Yes, thanks. I had forgotten to consider bandwidths less than 20 MHz.

Seth

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-07 14:04           ` Seth Forshee
@ 2017-02-07 14:15             ` Johannes Berg
  2017-02-13 13:58             ` Matthias May
  1 sibling, 0 replies; 11+ messages in thread
From: Johannes Berg @ 2017-02-07 14:15 UTC (permalink / raw)
  To: Seth Forshee; +Cc: cory novak, wireless-regdb


> Yes, thanks. I had forgotten to consider bandwidths less than 20 MHz.
> 
We really should add the ability to capture this, but we haven't gotten
that now since we can't change the format ... another thing waiting for
the signed file loader.

johannes

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-07 14:04           ` Seth Forshee
  2017-02-07 14:15             ` Johannes Berg
@ 2017-02-13 13:58             ` Matthias May
  2017-03-01 15:07               ` Seth Forshee
  1 sibling, 1 reply; 11+ messages in thread
From: Matthias May @ 2017-02-13 13:58 UTC (permalink / raw)
  To: wireless-regdb

On 07/02/17 15:04, Seth Forshee wrote:
> On Tue, Feb 07, 2017 at 08:52:30AM +0100, Johannes Berg wrote:
>> On Mon, 2017-02-06 at 14:50 -0600, Seth Forshee wrote:
>>> +	(5150 - 5250 @ 80), (23), AUTO-BW
>>
>> For 20 MHz this is right, since the document says:
>>
>>     The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10 B,
>>     dBm, whichever power is less. B is the 99% emission bandwidth in
>>     megahertz. The e.i.r.p. spectral density shall not exceed 10 dBm in
>>     any 1.0 MHz band.
>>
>> However, for < 20 MHz, like 5 or 10, which we in theory do support, you
>> can't use that much due to the spectral density requirement. It seems
>> possible that that's where the 17 dBm came from, since 10 + 10 log10(5)
>> is about 17.
> 
> Yes, thanks. I had forgotten to consider bandwidths less than 20 MHz.
> 
> Seth
> 
> _______________________________________________
> wireless-regdb mailing list
> wireless-regdb@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/wireless-regdb
> 

According to  .../include/net/cfg80211.h

>static inline int
>ieee80211_chandef_max_power(struct cfg80211_chan_def *chandef)
>{
>	switch (chandef->width) {
>	case NL80211_CHAN_WIDTH_5:
>		return min(chandef->chan->max_reg_power - 6,
>			   chandef->chan->max_power);
>	case NL80211_CHAN_WIDTH_10:
>		return min(chandef->chan->max_reg_power - 3,
>			   chandef->chan->max_power);
>	default:
>		break;
>	}
>	return chandef->chan->max_power;
>}

This looks to me like it already handles the reduction of power
according to bandwidth.

BR
Matthias

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-13 13:58             ` Matthias May
@ 2017-03-01 15:07               ` Seth Forshee
  2017-03-01 15:35                 ` Johannes Berg
  0 siblings, 1 reply; 11+ messages in thread
From: Seth Forshee @ 2017-03-01 15:07 UTC (permalink / raw)
  To: Matthias May, Johannes Berg; +Cc: cory novak, wireless-regdb

There were some replies to this, but I just noticed that the mailing
list somehow got dropped. Bringing the discussion back to the list.

On Mon, Feb 13, 2017 at 02:58:28PM +0100, Matthias May wrote:
> On 07/02/17 15:04, Seth Forshee wrote:
> > On Tue, Feb 07, 2017 at 08:52:30AM +0100, Johannes Berg wrote:
> >> On Mon, 2017-02-06 at 14:50 -0600, Seth Forshee wrote:
> >>> +	(5150 - 5250 @ 80), (23), AUTO-BW
> >>
> >> For 20 MHz this is right, since the document says:
> >>
> >>     The maximum e.i.r.p. shall not exceed 200 mW or 10 + 10 log10 B,
> >>     dBm, whichever power is less. B is the 99% emission bandwidth in
> >>     megahertz. The e.i.r.p. spectral density shall not exceed 10 dBm in
> >>     any 1.0 MHz band.
> >>
> >> However, for < 20 MHz, like 5 or 10, which we in theory do support, you
> >> can't use that much due to the spectral density requirement. It seems
> >> possible that that's where the 17 dBm came from, since 10 + 10 log10(5)
> >> is about 17.
> > 
> > Yes, thanks. I had forgotten to consider bandwidths less than 20 MHz.
> > 
> > Seth
> > 
> > _______________________________________________
> > wireless-regdb mailing list
> > wireless-regdb@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/wireless-regdb
> > 
> 
> According to  .../include/net/cfg80211.h
> 
> >static inline int
> >ieee80211_chandef_max_power(struct cfg80211_chan_def *chandef)
> >{
> >	switch (chandef->width) {
> >	case NL80211_CHAN_WIDTH_5:
> >		return min(chandef->chan->max_reg_power - 6,
> >			   chandef->chan->max_power);
> >	case NL80211_CHAN_WIDTH_10:
> >		return min(chandef->chan->max_reg_power - 3,
> >			   chandef->chan->max_power);
> >	default:
> >		break;
> >	}
> >	return chandef->chan->max_power;
> >}
> 
> This looks to me like it already handles the reduction of power
> according to bandwidth.

Johannes, just wanted to confirm that based on this you no longer have
any objection to the changes.

Thanks,
Seth

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-03-01 15:07               ` Seth Forshee
@ 2017-03-01 15:35                 ` Johannes Berg
  0 siblings, 0 replies; 11+ messages in thread
From: Johannes Berg @ 2017-03-01 15:35 UTC (permalink / raw)
  To: Seth Forshee, Matthias May; +Cc: cory novak, wireless-regdb


> > 
> > > static inline int
> > > ieee80211_chandef_max_power(struct cfg80211_chan_def *chandef)
> > > {
> > > 	switch (chandef->width) {
> > > 	case NL80211_CHAN_WIDTH_5:
> > > 		return min(chandef->chan->max_reg_power - 6,
> > > 			   chandef->chan->max_power);
> > > 	case NL80211_CHAN_WIDTH_10:
> > > 		return min(chandef->chan->max_reg_power - 3,
> > > 			   chandef->chan->max_power);
> > > 	default:
> > > 		break;
> > > 	}
> > > 	return chandef->chan->max_power;
> > > }
> > 
> > This looks to me like it already handles the reduction of power
> > according to bandwidth.
> 
> Johannes, just wanted to confirm that based on this you no longer
> have any objection to the changes.

Yep, looks fine.

johannes

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada
  2017-02-06 20:50       ` [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada Seth Forshee
  2017-02-07  7:52         ` Johannes Berg
@ 2017-03-01 15:49         ` Seth Forshee
  1 sibling, 0 replies; 11+ messages in thread
From: Seth Forshee @ 2017-03-01 15:49 UTC (permalink / raw)
  To: wireless-regdb; +Cc: cory novak

On Mon, Feb 06, 2017 at 02:50:34PM -0600, Seth Forshee wrote:
> Based on the information from [1] the power limit for 5150-5250
> MHz can be increased to 23 dBm. Also update some rules to match
> exact frequency ranges given in that document.
> 
> [1] http://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10971.html
> 
> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>

Applied.

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-01 15:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAPw1JcdLDkW9xEUfh-764kuC643DAJ+qWNf4RxmoyUXbpc-D5w@mail.gmail.com>
2017-02-06 19:12 ` [wireless-regdb] Fwd: possible mismatch Canadian regulatory info cory novak
2017-02-06 19:39   ` Seth Forshee
2017-02-06 19:44     ` cory novak
2017-02-06 20:50       ` [wireless-regdb] [RFC] wireless-regdb: Update 5 GHz rules for Canada Seth Forshee
2017-02-07  7:52         ` Johannes Berg
2017-02-07 14:04           ` Seth Forshee
2017-02-07 14:15             ` Johannes Berg
2017-02-13 13:58             ` Matthias May
2017-03-01 15:07               ` Seth Forshee
2017-03-01 15:35                 ` Johannes Berg
2017-03-01 15:49         ` Seth Forshee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.