From nobody@FreeBSD.org  Sat Jul 20 17:35:57 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id B6893731
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 20 Jul 2013 17:35:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id A955FCB3
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 20 Jul 2013 17:35:57 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6KHZveD024684
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 20 Jul 2013 17:35:57 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6KHZv6c024680;
	Sat, 20 Jul 2013 17:35:57 GMT
	(envelope-from nobody)
Message-Id: <201307201735.r6KHZv6c024680@oldred.freebsd.org>
Date: Sat, 20 Jul 2013 17:35:57 GMT
From: Norikatsu Shigemura <nork@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [regdomain.xml] ifconfig wlan0 country JP is missed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180682
>Category:       conf
>Synopsis:       [regdomain.xml] [patch] ifconfig wlan0 country JP is missed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 20 17:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Jul 20 22:28:26 UTC 2013
>Originator:     Norikatsu Shigemura
>Release:        FreeBSD 10.0-CURRENT
>Organization:
Personal
>Environment:
FreeBSD pelsia.ninth-nine.com 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r253479M: Sun Jul 21 01:01:34 JST 2013     nork@pelsia.ninth-nine.com:/usr/obj/usr/src/sys/PELSIA  amd64

>Description:
In my environment (Intel Centrino Advanced-N 6200),
I got 'ifconfig wlan0 country JP' missed.

# ifconfig wlan0 country JP
ifconfig: SIOCS80211: Invalid argument

And I got following failure message, too:

Jul 21 00:13:18 pelsia kernel: iwn0: iwn_setregdomain: invalid channel 8 freq 2447/0x20480

I tried to modify /etc/regdomain.xml and tried to do
ifconfig.  So I found error setting at freqband
'H4_2412_2472' (only use in regdomain Japan).

At least, this should be set <freqend>2466</freqend>
instead of <freqend>2472</freqend>.  However, maybe,
this should be used 'H4_2412_2462'.

Sorry, I couldn't find this reason that this should be
2412MHz-2472MHz and/or 2412MHz-2466MHz(2462MHz?).
So I don't know my patch is right.
>How-To-Repeat:
N/A
>Fix:
Index: etc/regdomain.xml
===================================================================
--- etc/regdomain.xml	(revision 253505)
+++ etc/regdomain.xml	(working copy)
@@ -356,7 +356,7 @@
       <flags>IEEE80211_CHAN_HT20</flags>
     </band>
     <band>
-      <freqband ref="H4_2412_2472"/>
+      <freqband ref="H4_2412_2462"/>
       <maxpower>23</maxpower>
       <flags>IEEE80211_CHAN_G</flags>
       <flags>IEEE80211_CHAN_HT40</flags>
@@ -1862,10 +1862,6 @@
   <freqstart>2412</freqstart> <freqend>2472</freqend>
   <chanwidth>20</chanwidth> <chansep>5</chansep>
 </freqband>
-<freqband id="H4_2412_2472">
-  <freqstart>2412</freqstart> <freqend>2472</freqend>
-  <chanwidth>40</chanwidth> <chansep>5</chansep>
-</freqband>
 <freqband id="F1_2467_2472">
   <freqstart>2467</freqstart> <freqend>2472</freqend>
   <chanwidth>20</chanwidth> <chansep>5</chansep>

>Release-Note:
>Audit-Trail:
>Unformatted:
