[Voyage-linux] wifi device discovery

Edwin Whitelaw (spam-protected)
Fri Aug 24 05:01:30 HKT 2007


Folks,

I had posted about this back in April when 0.3 came out and hadn't seen 
it happen since the 0.4 releases until today.  I have a WRAP running 
0.4.1, all upgrades.  One Engenius NL2611 as 2.4GHz AP and one CM9 
backhaul on channel 52.  Seems it's a random thing as to which radio 
gets wifi0 and which gets wifi1.  Obviously having the wrong order on 
boot takes the system out of service since the configuration parameters 
are totally different for the two radios.  I had one suggestion 
regarding adding some udev rules to match MAC addresses and assign 
interface names to radios discreetly but I would prefer to simply know 
which mini-PCI slot was going to get 0 and which gets 1 and have it stay 
that way.  Has anyone else experienced this?  Is this a direct result of 
udev?  What's the best approach to remove the uncertainty in device 
discovery?

Thanks,

Edwin

-----------------
Linux auburnhills 2.6.20-486-voyage #1 PREEMPT Mon Jul 16 06:39:47 GMT 
2007 i586

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 __  __
 \ \/ /___ __  __ ___  ___  ___    Useful Commands:
  \  // _ \\ \/ /,-_ |/ _ |/ -_)     remountrw - mount disk as read-write
   \/ \___/ \  / \___,\_  |\___|     remountro - mount disk as read-only
           _/_/        _'_|          remove.docs - remove all docs and 
manpages
     { V o y a g e } - L i n u x
      < http://linux.voyage.hk >   Version: 0.4 (Build Date 20070723)

---
auburnhills:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

wifi1     IEEE 802.11b  ESSID:"auburnhills"  Nickname:""
          Mode:Master  Frequency:2.427 GHz  Access Point: 00:02:6F:36:9E:50
          Bit Rate:11 Mb/s   Tx-Power=23 dBm   Sensitivity=1/3
          Retry short limit:8   RTS thr:off   Fragment thr:off
          Encryption key:xxxxxxxxxxxxxxxxxxxxxx   Security mode:restricted
          Power Management:off

wlan0     IEEE 802.11b  ESSID:"auburnhills"  Nickname:""
          Mode:Master  Frequency:2.427 GHz  Access Point: 00:02:6F:36:9E:50
          Bit Rate:11 Mb/s   Tx-Power=23 dBm   Sensitivity=1/3
          Retry short limit:8   RTS thr:off   Fragment thr:off
          Encryption key:xxxxxxxxxxxxxxxxxxxxxx   Security mode:restricted
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:255  Rx invalid frag:0
          Tx excessive retries:83  Invalid misc:3121   Missed beacon:0

br0       no wireless extensions.

ath0      IEEE 802.11a  ESSID:"reilly-ah"  Nickname:""
          Mode:Managed  Frequency:5.26 GHz  Access Point: 00:0B:6B:36:FE:21
          Bit Rate:36 Mb/s   Tx-Power:16 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:xxxxxxxxxxxxxxxxxxxxx   Security mode:restricted
          Power Management:off
          Link Quality=28/94  Signal level=-66 dBm  Noise level=-94 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
-----
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp

# hostap WDS Bridge
auto br0
iface br0 inet static
        address 172.17.24.1
        netmask 255.255.255.0
        broadcast 172.17.24.255
        bridge_ports eth0 wlan0
        pre-up iwconfig wlan0 mode Master essid auburnhills channel 4
        up iwconfig wlan0 key s:xxxxxxxxxxxx
        up iwconfig wlan0 txpower 23db

auto br0:0
iface br0:0 inet static
        address 172.16.24.1
        netmask 255.255.255.0
        broadcast 172.16.24.255

auto br0:1
iface br0:1 inet static
        address 192.168.1.200
        netmask 255.255.255.0
        broadcast 192.168.1.255

auto ath0
iface ath0 inet static
        address 10.220.6.2
        netmask 255.255.255.0
        broadcast 10.220.6.255
        gateway 10.220.6.1
        madwifi-base wifi0
        wireless-mode Managed
        wireless-essid reilly-ah
        wireless-key s:xxxxxxxxxx
        up athctrl -i wifi0 -d 4800
        up /sbin/sysctl -w dev.wifi0.diversity=0
#       up /sbin/sysctl -w dev.wifi1.txantenna=1
#       up /sbin/sysctl -w dev.wifi1.rxantenna=1
#       up /etc/tc/qos
#       up remountro
        down wlanconfig ath0 destroy

-- 
<=+=+=+==+=+=+==+=+=+=+=+=+=+=+=>
Edwin Whitelaw, P.E.
New River Valley Unwired, LLC
2200 Lonesome Dove Dr
Christiansburg, VA 24073
540-239-0318





More information about the Voyage-linux mailing list