From nobody@FreeBSD.org  Sun Oct 23 01:10:37 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8192816A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Oct 2005 01:10:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE7043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Oct 2005 01:10:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9N1AauH097261
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Oct 2005 01:10:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9N1Aa12097260;
	Sun, 23 Oct 2005 01:10:36 GMT
	(envelope-from nobody)
Message-Id: <200510230110.j9N1Aa12097260@www.freebsd.org>
Date: Sun, 23 Oct 2005 01:10:36 GMT
From: joo <joao@matik.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ifconfig wireless options order matters
X-Send-Pr-Version: www-2.3

>Number:         87857
>Category:       docs
>Synopsis:       ifconfig(8) wireless options order matters
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 23 01:20:17 GMT 2005
>Closed-Date:    
>Last-Modified:  Fri Oct 28 21:57:40 GMT 2005
>Originator:     joo
>Release:        6.0-RC1
>Organization:
Infomatik
>Environment:
FreeBSD ap6.matik.com.br 6.0-RC1 FreeBSD 6.0-RC1 #4: Sat Oct 22 11:25:28 UTC 2005     hmm@ap6.matik.com.br:/usr/src/sys/i386/compile/ap6.0.kernel  i386
        
>Description:
I have a 6.0-RC1 hostap, one senao pcmcia and one DWL-AG530 pci-card, the clients are using broadcom as ndis or orinoco as wi or senao as wi
     
when not chosing the correct ifconfig options sequence either on the client or the hostap the wireless card is not configured correctly, example, this sequence appears to be correct:
        ifconfig ath0 inet 192.168.2.1/29 media OFDM/54Mbps mediaopt hostap mode 11g ssid casa11g up 

when I do 
        ifconfig ath0 inet 192.168.2.1/29 mode 11g media OFDM/54Mbps mediaopt hostap ssid casa11g up 

i get an error: 
ifconfig: SIOCSIFMEDIA (media): Invalid argument

I could get the same results for ath, wi(prism) and ndis as hostap or client

on the client I get for example

        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps (DS/11Mbps)
        status: associated
        ssid casa channel 1 bssid 

or this

        media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b (OFDM/54Mbps)
        status: associated
        ssid casa11g channel 1 bssid 



>How-To-Repeat:
              
>Fix:
           using the correct ifconfig sequence
>Release-Note:
>Audit-Trail:

From: JoaoBR <joao@matik.com.br>
To: bug-followup@freebsd.org, joao@matik.com.br
Cc:  
Subject: Re: docs/87857: ifconfig wireless options order matters
Date: Sat, 22 Oct 2005 23:50:53 -0300

 so funny I think is this :
 
 ######################
 on the AP(server)
 configured with
 192.168.2.1/29 media OFDM/54Mbps mediaopt hostap mode 11g ssid casa11g up
 
 ath0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.2.1 netmask 0xfffffff8 broadcast 192.168.2.7
         ether 00:11:95:c2:2a:89
         media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g <hostap>
         status: associated
         ssid casa11g channel 2 bssid 00:11:95:c2:2a:89
         authmode OPEN privacy OFF txpowmax 50 protmode CTS dtimperiod 1
         bintval 100
 ######################
 
 on client (broadcom as ndis)
 configured with
 192.168.2.2/29 media OFDM/54Mbps ssid casa11g mode 11g bssid any up
 
 ndis0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.2.2 netmask 0xfffffff8 broadcast 192.168.2.7
         ether 00:14:a4:0e:b9:fc
         media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b (OFDM/54Mbp=
 s)
         status: associated
         ssid casa11g channel 1 bssid 00:11:95:c2:2a:89
         authmode OPEN privacy OFF txpowmax 100 protmode CTS
 #######################
 
 but configured with
 192.168.2.2/29 media OFDM/54Mbps mode 11g ssid casa11g bssid any up
 I see
 
 
 ndis0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.2.2 netmask 0xfffffff8 broadcast 192.168.2.7
         ether 00:14:a4:0e:b9:fc
         media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g=20
 (OFDM/54Mbps)
         status: associated
         ssid casa11g channel 1 bssid 00:11:95:c2:2a:89
         authmode OPEN privacy OFF txpowmax 100 protmode CTS
 
 #######################
 
 please check on both, mode 11g with 11b and channel
 
 on the server I see channel 2 and on client channel 1
 
 but at the end I have access with this wireless connections (both)
 
 Jo=E3o
 
 
 
 
 
 
 
 A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
 Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br
>Unformatted:
