setting the country from rc.conf

John Hay jhay at meraka.org.za
Wed Oct 12 09:14:29 UTC 2011


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 at meraka.csir.co.za / jhay at FreeBSD.org


More information about the freebsd-wireless mailing list