Date: Wed, 12 Oct 2011 11:14:24 +0200 From: John Hay <jhay@meraka.org.za> To: freebsd-wireless@freebsd.org Subject: setting the country from rc.conf Message-ID: <20111012091424.GA35030@zibbi.meraka.csir.co.za>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying out 9.0 Beta on an Avila ARM board with Atheros wifi cards and need to set the country code. How do one go about it in rc.conf? I have tried a few ways, but have not been successful. ################## wlans_ath0="wlan0" create_args_wlan0="wlanmode adhoc" ifconfig_wlan0="country ZA channel 108 ssid mesh bssid 02:02:ca:fe:12:34 -bgscan" ifconfig_wlan0_ipv6="inet6 auto_linklocal" ipv6_prefix_wlan0="fd9c:6829:597c:10" ################## While booting, I see this: ################## wlan0: Ethernet address: 00:02:6f:34:21:cb ifconfig: unknown/undefined channel number 108 flags 0x0 ################## Ifconfig after booting looks like this: ################## broken-9# ifconfig ath0 ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether 00:02:6f:34:21:cb nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <adhoc> status: running broken-9# ifconfig wlan0 wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:02:6f:34:21:cb inet6 fe80::202:6fff:fe34:21cb%wlan0 prefixlen 64 scopeid 0x7 inet6 fd9c:6829:597c:10:202:6fff:fe34:21cb prefixlen 64 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect <adhoc> (autoselect <adhoc>) status: no carrier ssid "" channel 5 (2432 MHz 11g) country US ecm authmode OPEN privacy OFF txpower 27 scanvalid 60 protmode CTS wme burst bintval 0 broken-9# ################## I have also tried to break it up in 2 pieces: ################## wlans_ath0="wlan0" create_args_wlan0="wlanmode adhoc" ifconfig_wlan0="country ZA" ifconfig_wlan0_alias0="channel 108 ssid mesh bssid 02:02:ca:fe:12:34 -bgscan" ifconfig_wlan0_ipv6="inet6 auto_linklocal" ipv6_prefix_wlan0="fd9c:6829:597c:10" ################## Rebooting with this, the country is set to ZA, but the rest is not set. John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111012091424.GA35030>