From owner-freebsd-current@FreeBSD.ORG Tue Jun 29 16:55:21 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84F3916A4CF for ; Tue, 29 Jun 2004 16:55:21 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D7E843D4C for ; Tue, 29 Jun 2004 16:55:21 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i5TGtFWi084385 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 29 Jun 2004 09:55:16 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-current@freebsd.org Date: Tue, 29 Jun 2004 09:56:48 -0700 User-Agent: KMail/1.6.1 References: <200406291152.59913.jhugo@icomtek.csir.co.za> In-Reply-To: <200406291152.59913.jhugo@icomtek.csir.co.za> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406290956.48650.sam@errno.com> cc: Johann Hugo Subject: Re: Atheros interface - sequence of media options X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 16:55:21 -0000 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 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 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 (autoselect > ) > 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 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 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 > (autoselect ) > 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