Re: Atheros interface - sequence of media options

From: Sam Leffler <sam_at_errno.com>
Date: Tue, 29 Jun 2004 09:56:48 -0700
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
Received on Tue Jun 29 2004 - 14:55:21 UTC

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