Bug 87857 - ifconfig(8) wireless options order matters
Summary: ifconfig(8) wireless options order matters
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-23 02:20 UTC by João
Modified: 2018-04-11 20:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João 2005-10-23 02:20:17 UTC
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

Fix: 

using the correct ifconfig sequence
Comment 1 João 2005-10-23 03:50:53 UTC
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
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:20 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped