From owner-freebsd-wireless@FreeBSD.ORG Fri Dec 28 16:41:36 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F7B6F6A for ; Fri, 28 Dec 2012 16:41:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22a.google.com (wg-in-x022a.1e100.net [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1B18FC12 for ; Fri, 28 Dec 2012 16:41:35 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id dr1so4282499wgb.1 for ; Fri, 28 Dec 2012 08:41:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=G2QR99uzsyW0do8bWTuH2AQUbtwcg04nEdoyXMXVWlc=; b=Ob2XcLHgdXwNMCIHhKPH7pDrtXXRRm60fDhgSaoq/xe1oQQ0ti/z+bwJcJ9SGinVWk he2Tv8zrtZpOxpQ+gcjPlYYzhgOaF0x7rQVWah4p2jFHOH6Zz2XaLC4VpqE1r3x8mhIq T8BM3tEkaZK+j0ujmZRl9qI1NUO3i0g7CBATQBDcgecRGzW2ZhHIrfswWgNCwCxivLI9 pPpeyvAcxqjKDbv2GcrOShOwAWVTzYxyIMuPZjIUv8YqOvqcR/5TdRURMthyEkaWX0Fe rio5Qdboj8eIdgReTseoFnJzLcv0kHO+N2GZLQNARXk5T9vpYv1mN3VrIU8x9RJOZRhZ qBHQ== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr54753528wjc.1.1356712895241; Fri, 28 Dec 2012 08:41:35 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 28 Dec 2012 08:41:34 -0800 (PST) In-Reply-To: <20121228151724.299770@gmx.net> References: <201212281250.qBSCo2kR026582@freefall.freebsd.org> <20121228151724.299770@gmx.net> Date: Fri, 28 Dec 2012 08:41:34 -0800 X-Google-Sender-Auth: 2GcFWf5kZ1HleT4Gbve938CrR6k Message-ID: Subject: Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface From: Adrian Chadd To: Carsten Wiedmann Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2012 16:41:36 -0000 Hi, The problem is likely because the 'ecm' flag isn't set when it creates the channel list. That's why I suggested setting the ecm flag, setting the regdomain or country, then checking the channel list. The iwi code just uses the default net80211 regulatory domain code to populate the channel list. The ath(4) code sets things up based on its own internal channel assembly code. That's why I've not noticed this behaviour before. The net80211 regulatory domain code doesn't check for channels >11 in 11b/g/bg mode if the ecm bit isn't set when the channel list is assembled. And that only gets done when you configure the regulatory domain - when setting/clearing the ecm flag, it doesn't trigger reinitialising the channel list. Hence why I said "set ecm bit, reset channel list, let me know how it goes." Thanks, Adrian On 28 December 2012 07:17, Carsten Wiedmann wrote: > Hi Adrian, > > I guess you mean: > ifconfig wlan0 regdomain ETSI > or > ifconfig wlan0 country DE > > But this makes no difference. I only have the channels 1-11. > > And "ifconfig wlan0" is always showing the correct: > "regdomain ETSI country DE" > > > Of course, I don't understand why it isn't enough to set "country DE" in "/etc/rc.conf"? > > > From "man ifconfig" --> country: > | Set the country code to use in calculating the regulatory con- > | straints for operation. In particular the set of available chan- > | nels, how the wireless device will operation on the channels, and > > > From "man regdomain" (The regdomain.xml file): > | This information is used by the ifconfig(8) program to construct regula- > | tory state for download to the system. > > > And in "/etc/regdomain.xml" I have: > | > | ETSI > | 0x30 > | > | > | > | 30 > | IEEE80211_CHAN_B > | > | > | > | > | > | 30 > | IEEE80211_CHAN_G > | > | > | ... > > 2412 is channel 1 > 2472 is channel 13 > > Regards, > Carsten > > -------- Original-Nachricht -------- >> Datum: Fri, 28 Dec 2012 06:29:19 -0800 >> Von: Adrian Chadd >> An: Carsten Wiedmann >> CC: freebsd-wireless@freebsd.org >> Betreff: Re: kern/174722: [wlan] can\'t use channel 12 and 13 (14) with my wifi interface > >> Hm, ok, so try: >> >> ifconfig wlan0 down >> ifconfig wlan0 ecm >> ifconfig wlan0 regdomain DE >> ifconfig wlan0 up >> ifconfig wlan0 list channel >> >> >> >> Adrian >> >> >> On 28 December 2012 04:50, Carsten Wiedmann wrote: >> > The following reply was made to PR kern/174722; it has been noted by >> GNATS. >> > >> > From: "Carsten Wiedmann" >> > 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"? >> > >> > _______________________________________________ >> > freebsd-wireless@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> > To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org"