From nobody@FreeBSD.org  Wed Dec 26 18:20:21 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 69B27743
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Dec 2012 18:20:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5030E8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Dec 2012 18:20:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQIKLMP001425
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Dec 2012 18:20:21 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qBQIKLcS001424;
	Wed, 26 Dec 2012 18:20:21 GMT
	(envelope-from nobody)
Message-Id: <201212261820.qBQIKLcS001424@red.freebsd.org>
Date: Wed, 26 Dec 2012 18:20:21 GMT
From: Carsten Wiedmann <carsten_sttgt@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can't use channel 12 and 13 (14) with my wifi interface
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174722
>Category:       kern
>Synopsis:       [wlan] can't use channel 12 and 13 (14) with my wifi interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 26 18:30:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri Dec 28 12:50:02 UTC 2012
>Originator:     Carsten Wiedmann
>Release:        FreeBSD 9.0-RELEASE-p5
>Organization:
>Environment:
FreeBSD freebsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Hello,

I can't 
I have this network card:
iwi0: <Intel(R) PRO/Wireless 2200BG> mem 0xe0204000-0xe0204fff irq 11 at device 6.0 on pci2

Interface setup in "/etc/rc.conf" is:
wlans_iwi0="wlan0"
ifconfig_wlan0="DHCP WPA country DE"


Output of "ifconfig wlan0" is:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0e:35:a8:2e:f1
        inet 192.168.0.30 netmask 0xffffff00 broadcast 192.168.0.255
        nd6 options=23<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
        status: associated
        ssid WLAN channel 9 (2452 MHz 11g) bssid 0c:0c:0b:14:cd:98
        regdomain ETSI country DE authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 24 scanvalid 60
        protmode CTS wme roaming MANUAL


But even I'm in regdomain ETSI, "ifconfig wlan0 list regdomain":
:regdomain ETSI country DE anywhere -ecm

A "ifconfig wlan0 list channels" only shows me channel 1 to 11. Looking
in "/etc/regdomain.xml", channel 12-13 should be possible in ETSI.

BTW: This also happens if I use ndis, instead of the iwi driver.

Of course, booting the notebook with Windows or Debian (squeeze), I can
use channel 12-13 (14).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Dec 28 03:25:08 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174722 

From: Adrian Chadd <adrian@freebsd.org>
To: bug-followup@freebsd.org
Cc: Carsten Wiedmann <carsten_sttgt@gmx.de>
Subject: Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
Date: Thu, 27 Dec 2012 19:57:55 -0800

 Hi,
 
 This may be the problem:
 
 :regdomain ETSI country DE anywhere -ecm
 
 Please try:
 
 ifconfig wlan0 down
 ifconfig wlan0 ecm
 ifconfig wlan0 up
 
 If ECM isn't enabled then you won't see channels > 11 in 11bg mode.
 
 
 
 Adrian

From: "Carsten Wiedmann" <carsten_sttgt@gmx.de>
To: bug-followup@FreeBSD.org, carsten_sttgt@gmx.de
Cc:  
Subject: Re: kern/174722: can't use channel 12 and 13 (14) with my wifi
 interface
Date: Fri, 28 Dec 2012 13:43:25 +0100

 Hmmm, doesn't work:
 
 freebsd# ifconfig wlan0 list regdomain
 :regdomain ETSI country DE anywhere ecm
 Channel   1 : 2412      MHz 11b          Channel   6 : 2437      MHz 11g
 Channel   1 : 2412      MHz 11g          Channel   7 : 2442      MHz 11b
 Channel   2 : 2417      MHz 11b          Channel   7 : 2442      MHz 11g
 Channel   2 : 2417      MHz 11g          Channel   8 : 2447      MHz 11b
 Channel   3 : 2422      MHz 11b          Channel   8 : 2447      MHz 11g
 Channel   3 : 2422      MHz 11g          Channel   9 : 2452      MHz 11b
 Channel   4 : 2427      MHz 11b          Channel   9 : 2452      MHz 11g
 Channel   4 : 2427      MHz 11g          Channel  10 : 2457      MHz 11b
 Channel   5 : 2432      MHz 11b          Channel  10 : 2457      MHz 11g
 Channel   5 : 2432      MHz 11g          Channel  11 : 2462      MHz 11b
 Channel   6 : 2437      MHz 11b          Channel  11 : 2462      MHz 11g
 
 BTW:
 Even "ifconfig wlan0 ecm" is changing this setting, I can't find "ecm" in "man ifconfig"?

From: "Carsten Wiedmann" <carsten_sttgt@gmx.de>
To: bug-followup@FreeBSD.org, carsten_sttgt@gmx.de
Cc:  
Subject: Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi
 interface
Date: Fri, 28 Dec 2012 13:47:59 +0100

 Hmmm, doesn't work:
 
 freebsd# ifconfig wlan0 list regdomain
 :regdomain ETSI country DE anywhere ecm
 Channel   1 : 2412      MHz 11b          Channel   6 : 2437      MHz 11g
 Channel   1 : 2412      MHz 11g          Channel   7 : 2442      MHz 11b
 Channel   2 : 2417      MHz 11b          Channel   7 : 2442      MHz 11g
 Channel   2 : 2417      MHz 11g          Channel   8 : 2447      MHz 11b
 Channel   3 : 2422      MHz 11b          Channel   8 : 2447      MHz 11g
 Channel   3 : 2422      MHz 11g          Channel   9 : 2452      MHz 11b
 Channel   4 : 2427      MHz 11b          Channel   9 : 2452      MHz 11g
 Channel   4 : 2427      MHz 11g          Channel  10 : 2457      MHz 11b
 Channel   5 : 2432      MHz 11b          Channel  10 : 2457      MHz 11g
 Channel   5 : 2432      MHz 11g          Channel  11 : 2462      MHz 11b
 Channel   6 : 2437      MHz 11b          Channel  11 : 2462      MHz 11g
 
 BTW:
 Even "ifconfig wlan0 ecm" is changing this setting, I can't find "ecm" in "man ifconfig"?
 
>Unformatted:
