Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
Hi Adrian, Just to make sure: | ifconfig wlan0 regdomain DE can't work. So I used: | ifconfig wlan0 down | ifconfig wlan0 ecm | ifconfig wlan0 regdomain ETSI | ifconfig wlan0 up | ifconfig wlan0 list channel But this also shows me not the channels 12/13. BTW ath vs. iwi: As you read in my first mail, I have the same issue if I use ndis for my device. If you can build a ndis driver for your interface (NDISulator), you should have the same issue. Regards, Carsten Original-Nachricht Datum: Fri, 28 Dec 2012 08:41:34 -0800 Von: Adrian Chadd adr...@freebsd.org An: Carsten Wiedmann carsten_st...@gmx.de CC: freebsd-wireless@freebsd.org Betreff: Re: kern/174722: [wlan] can\'t use channel 12 and 13 (14) with my wifi interface 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 carsten_st...@gmx.de 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: | rd id=etsi | nameETSI/name | sku0x30/sku | netband mode=11b | band | freqband ref=F1_2412_2472/ | maxpower30/maxpower | flagsIEEE80211_CHAN_B/flags | /band | /netband | netband mode=11g | band | freqband ref=F1_2412_2472/ | maxpower30/maxpower | flagsIEEE80211_CHAN_G/flags | /band | /netband | ... 2412 is channel 1 2472 is channel 13 Regards, Carsten Original-Nachricht Datum: Fri, 28 Dec 2012 06:29:19 -0800 Von: Adrian Chadd adr...@freebsd.org An: Carsten Wiedmann carsten_st...@gmx.de 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 carsten_st...@gmx.de wrote: The following reply was made to PR kern/174722; it has been noted by GNATS. From: Carsten Wiedmann carsten_st...@gmx.de To: bug-follo...@freebsd.org, carsten_st...@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
Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
The following reply was made to PR kern/174722; it has been noted by GNATS. From: Carsten Wiedmann carsten_st...@gmx.de To: bug-follo...@freebsd.org, carsten_st...@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-unsubscr...@freebsd.org
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 carsten_st...@gmx.de wrote: The following reply was made to PR kern/174722; it has been noted by GNATS. From: Carsten Wiedmann carsten_st...@gmx.de To: bug-follo...@freebsd.org, carsten_st...@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-unsubscr...@freebsd.org ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
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 carsten_st...@gmx.de 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: | rd id=etsi | nameETSI/name | sku0x30/sku | netband mode=11b | band | freqband ref=F1_2412_2472/ | maxpower30/maxpower | flagsIEEE80211_CHAN_B/flags | /band | /netband | netband mode=11g | band | freqband ref=F1_2412_2472/ | maxpower30/maxpower | flagsIEEE80211_CHAN_G/flags | /band | /netband | ... 2412 is channel 1 2472 is channel 13 Regards, Carsten Original-Nachricht Datum: Fri, 28 Dec 2012 06:29:19 -0800 Von: Adrian Chadd adr...@freebsd.org An: Carsten Wiedmann carsten_st...@gmx.de 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 carsten_st...@gmx.de wrote: The following reply was made to PR kern/174722; it has been noted by GNATS. From: Carsten Wiedmann carsten_st...@gmx.de To: bug-follo...@freebsd.org, carsten_st...@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-unsubscr...@freebsd.org ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
Old Synopsis: can't use channel 12 and 13 (14) with my wifi interface New Synopsis: [wlan] can't use channel 12 and 13 (14) with my wifi interface 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 ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: kern/174722: [wlan] can't use channel 12 and 13 (14) with my wifi interface
The following reply was made to PR kern/174722; it has been noted by GNATS. From: Adrian Chadd adr...@freebsd.org To: bug-follo...@freebsd.org Cc: Carsten Wiedmann carsten_st...@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 ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org