Atheros interface - sequence of media options

From: Johann Hugo <jhugo_at_icomtek.csir.co.za>
Date: Tue, 29 Jun 2004 12:59:52 +0200
Hi

Is there a magic order in which media options should be passed to an atheros 
interface. Changing the sequence seems to make a difference e.g. :

1) ------------------------------------
ath2# ifconfig ath0 ssid ath101 10.10.20.2/24 mediaopt adhoc channel 36 mode 
11a media OFDM/6Mbps
ath2# ifconfig ath0                                                                 
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.20.2 netmask 0xffffff00 broadcast 10.10.20.255
        inet6 fe80::205:5dff:fe95:ef2e%ath0 prefixlen 64 scopeid 0x4
        ether 00:05:5d:95:ef:2e
        media: IEEE 802.11 Wireless Ethernet OFDM/6Mbps (OFDM/6Mbps)
        status: no carrier
        ssid ath101 1:ath101
        channel 36 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1
---------------------------------------
AND
---------------------------------------
ath2# ifconfig ath0 ssid ath101 10.10.20.2/24 channel 36 mode 11a media 
OFDM/6Mbps mediaopt adhoc
ath2# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.20.2 netmask 0xffffff00 broadcast 10.10.20.255
        inet6 fe80::205:5dff:fe95:ef2e%ath0 prefixlen 64 scopeid 0x4
        ether 00:05:5d:95:ef:2e
        media: IEEE 802.11 Wireless Ethernet OFDM/6Mbps <adhoc> (autoselect 
<adhoc>)
        status: associated
        ssid ath101 1:ath101
        channel 36 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1

2) --------------------------------------
If I change the media to OFDM/36Mbps it also seems to forget that if was in 
adhoc mode.

ath2# ifconfig ath0 media OFDM/36Mbps
ath2# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.20.2 netmask 0xffffff00 broadcast 10.10.20.255
        inet6 fe80::205:5dff:fe95:ef2e%ath0 prefixlen 64 scopeid 0x4
        ether 00:05:5d:95:ef:2e
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps (OFDM/6Mbps)
        status: no carrier
        ssid ath101 1:ath101
        channel 36 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1

ath2# ifconfig ath0 mediaopt adhoc
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.20.2 netmask 0xffffff00 broadcast 10.10.20.255
        inet6 fe80::205:5dff:fe95:ef2e%ath0 prefixlen 64 scopeid 0x4
        ether 00:05:5d:95:ef:2e
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps <adhoc> (autoselect 
<adhoc>)
        status: associated
        ssid ath101 1:ath101
        channel 36 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1

3) -------------------------------------------
Other Info: 
I am running current, build on 25 Jul 2004

ath2# uname -a
FreeBSD ath2.icomtek.csir.co.za 5-20040625-CURRENT FreeBSD 5-20040625-CURRENT 
#0: Fri Jun 25 03:50:43 GMT 2004     root_at_builder.icomtek.csir.co.za:/usr/
obj/usr/src/sys/GENERIC  i386

The Wifi card = D-link DWL-AG520

Johann Hugo
Received on Tue Jun 29 2004 - 09:00:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:59 UTC