From owner-freebsd-current@FreeBSD.ORG Tue Jun 29 11:00:25 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 E41D716A4CE for ; Tue, 29 Jun 2004 11:00:24 +0000 (GMT) Received: from marge.icomtek.csir.co.za (marge.icomtek.csir.co.za [146.64.28.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E269B43D2F for ; Tue, 29 Jun 2004 11:00:09 +0000 (GMT) (envelope-from jhugo@icomtek.csir.co.za) Received: from jeep.icomtek.csir.co.za (jeep.icomtek.csir.co.za [146.64.28.29])i5TAxqmj037250 for ; Tue, 29 Jun 2004 12:59:52 +0200 (SAST) (envelope-from jhugo@icomtek.csir.co.za) From: Johann Hugo To: freebsd-current@freebsd.org Date: Tue, 29 Jun 2004 12:59:52 +0200 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200406291152.59913.jhugo@icomtek.csir.co.za> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: 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 11:00:25 -0000 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 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@builder.icomtek.csir.co.za:/usr/ obj/usr/src/sys/GENERIC i386 The Wifi card = D-link DWL-AG520 Johann Hugo