From owner-freebsd-wireless@FreeBSD.ORG Wed Oct 12 09:14:29 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96128106564A for ; Wed, 12 Oct 2011 09:14:29 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id A8D298FC1E for ; Wed, 12 Oct 2011 09:14:28 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id A1A46B833; Wed, 12 Oct 2011 11:14:24 +0200 (SAST) Date: Wed, 12 Oct 2011 11:14:24 +0200 From: John Hay To: freebsd-wireless@freebsd.org Message-ID: <20111012091424.GA35030@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: setting the country from rc.conf X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 12 Oct 2011 09:14:29 -0000 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 metric 0 mtu 2290 ether 00:02:6f:34:21:cb nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11a status: running broken-9# ifconfig wlan0 wlan0: flags=8c43 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 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) 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