Atheros interface - sequence of media options

Sam Leffler sam at errno.com
Tue Jun 29 09:55:21 PDT 2004


On Tuesday 29 June 2004 03:59 am, Johann Hugo wrote:
> 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

I believe these are both the same issue.  It appears the net80211 layer is 
clearing the mediaopt settings when you switch media (unless ifconfig is 
doing it).  In general if you use ifconfig -m to get a list of possible 
settings and then use of those verbatim you should get the proper result.

	Sam


More information about the freebsd-current mailing list