usb-Atmel - Ad0-Hoc - ZyAIR B-200 - Wifi Link OK, TCP/IP Link dead
Joerg Mertin <[email protected]>
| Newsgroups | gmane.linux.drivers.atmel-wlan |
|---|---|
| Message-ID | <[email protected]> |
Hi Folks,
I'm quite sure there must be something very dumb I'm doing here that
makes it not work. However - I've reached the end of my Knowledge pool.
Maybe you folks can give me a hint. Please check both setups - as I have
different wifi cards ...
A little Infrastructure help.
I have 2 Computers.
Sun (Server/GW) - uses a builtin Atmel based USB Wifi Device
IP: 10.0.4.1/255.255.255.248
Config: std. iwconfig for the configuration
After loading the USB Drivers - here's what I got:
usb.c: USB device 2 (vend/prod 0x3eb/0x7605) is not claimed by any
Pandora (Workstation) - uses the ZyAIR B-200 USB based Wifi Device.
IP: 10.0.4.3/255.255.255.248
Config: the wlan.conf + wlancfg-SolSys_pandora
Note that the Chip is identified as beeing a Prism3 one. Here the
relevant entries from the dmesg output:
usb.c: registered new driver prism2_usb
ident: nic h/w: id=0x8026 1.0.0
ident: pri f/w: id=0x15 1.1.0
ident: sta f/w: id=0x1f 1.4.2
I'm trying to get an Ad-Hoc connection - as I have no AP.
Now - I do have a Link established - from the Wifi point of view, but am
not able to get the TCP/IP Connection running.
Pleae note - that from my background - I've got a fairly well knowledge
of routing & Security stuff ... So - it's not a routing issue, nor is it
a filter issue (You'll see the details below). It can however be
something I miss with the Wifi stuff. All documentation I found gave
some informations on how it should work - but a detailed Howto
explaining what to take into account etc., even the FAQ didn't give me a
hint. B.e. what I think is missing - a detailed Howot on how to link to
Wifi-Systems together in Ad-Hoc mode - what configuration one side
requires, what the other side requires etc.
Anyway - let's see what I've got
*************************************************************************
Let's show the config of Pandora:
[root@pandora wlan]# iwconfig wlan0
wlan0 IEEE 802.11-b ESSID:"SolSys_pandora" Nickname:"SolSys_pandora"
Mode:Ad-Hoc Frequency:2.427GHz Cell: 02:A0:B7:63:63:CE
Bit Rate:2Mb/s Tx-Power:2346 dBm
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:0/92 Signal level:-69 dBm Noise level:-90 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[root@pandora wlan]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:A0:C5:41:63:CE
inet addr:10.0.4.3 Bcast:10.0.4.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:1 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:108 (108.0 b)
[root@pandora wlan]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.4.0 0.0.0.0 255.255.255.248 U 0 0 0
wlan0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.2.3 0.0.0.0 UG 0 0 0 eth0
You'll notice that I do have my std. network connected. But the more
explicit routing-table has priority - thus 10.0.4.0 should take
precedence over the default route.
The wlancfg-SolSys_pandora is the standard Default file - I tried
setting up wep etc. but disabled it after.
The wlan.conf file has the following entries:
-------
WLAN_DEVICES="wlan0"
ChannelList="01:02:03:04:05:06:07:08:09:0a:0b:00:00:00"
ChannelMinTime=200
ChannelMaxTime=250
WLAN_SCAN=y
SSID_wlan0="SolSys_pandora"
ENABLE_wlan0=y
P80211_CONVERSION=rfc1042
--------
When loading the prism2_usb module, I'm using the following option:
options prism2_usb prism2_doreset=1
_but_ I need to load the uhci module instead of the usb-uhci (Getting a
kernel Oops with usb-uhci).
Here the dmesg output when loading the usb-module.
FI:SUP:role=0x00:id=0x01:var=0x01:b/t=1/1
CFI:SUP:role=0x00:id=0x02:var=0x02:b/t=1/1
PRI:SUP:role=0x00:id=0x03:var=0x01:b/t=1/3
STA:SUP:role=0x00:id=0x04:var=0x01:b/t=1/9
PRI-CFI:ACT:role=0x01:id=0x02:var=0x02:b/t=1/1
STA-CFI:ACT:role=0x01:id=0x02:var=0x02:b/t=1/1
STA-MFI:ACT:role=0x01:id=0x01:var=0x01:b/t=1/1
Prism2 card SN: 000000000000
p80211knetdev_hard_start_xmit: Tx attempt prior to association, frame
dropped.
linkstatus=CONNECTED
** WLAN busy-sleeping in interrupt context!
** WLAN busy-sleeping in interrupt context!
** WLAN busy-sleeping in interrupt context!
Here the ping-probe:
[root@pandora wlan]# ping 10.0.4.3
PING 10.0.4.3 (10.0.4.3) 56(84) bytes of data.
64 bytes from 10.0.4.3: icmp_seq=1 ttl=64 time=0.122 ms
64 bytes from 10.0.4.3: icmp_seq=2 ttl=64 time=0.051 ms
--- 10.0.4.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.051/0.086/0.122/0.036 ms
[root@pandora wlan]# ping 10.0.4.1
PING 10.0.4.1 (10.0.4.1) 56(84) bytes of data.
From 10.0.4.3 icmp_seq=1 Destination Host Unreachable
From 10.0.4.3 icmp_seq=2 Destination Host Unreachable
From 10.0.4.3 icmp_seq=3 Destination Host Unreachable
--- 10.0.4.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time
3024ms, pipe 3
*************************************************************************
Let's show the config of Sun:
eth3 ATMEL RFMD503A ESSID:"SolSys_pandora" Nickname:"SolSys_pandora"
Mode:Ad-Hoc Channel:4 Cell: 02:A0:B7:63:63:CE
Bit Rate:2Gb/s
RTS thr=2347 B Fragment thr=2346 B
Encryption key:off
Link Quality:100 Signal level:50 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[root@sun root]# ifconfig eth3
eth3 Link encap:Ethernet HWaddr 00:06:F4:03:06:FF
inet addr:10.0.4.1 Bcast:10.0.4.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:3048 (2.9 Kb)
[root@sun root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.4.0 0.0.0.0 255.255.255.248 U 0 0 0 eth3
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
80.83.36.0 0.0.0.0 255.255.252.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 80.83.36.1 0.0.0.0 UG 0 0 0 eth2
The configuration files do look like this:
/etc/modules.conf
# Wireless Lan stuff
probeall usb-interface uhci
alias eth3 usbvnetr
post-install usbvnetr /bin/fastvnet.sh
~/.vnetrc
regulatory_domain=7
interface=eth3
essid=SolSys_Sun
mode=Ad-hoc
channel=6
rate=11M
frag=2346
rts=2347
encryption=off
Note that you see the Solsys_pandora ESSID after I told the atmel-device
to connect to the found remote endpoint - through lvnet.
Here the ping-probe:
[root@sun root]# ping 10.0.4.1
PING 10.0.4.1 (10.0.4.1) 56(84) bytes of data.
64 bytes from 10.0.4.1: icmp_seq=1 ttl=64 time=0.273 ms
--- 10.0.4.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.273/0.273/0.273/0.000 ms
[root@sun root]# ping 10.0.4.3
PING 10.0.4.3 (10.0.4.3) 56(84) bytes of data.
From 10.0.4.1 icmp_seq=1 Destination Host Unreachable
From 10.0.4.1 icmp_seq=2 Destination Host Unreachable
From 10.0.4.1 icmp_seq=3 Destination Host Unreachable
--- 10.0.4.3 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time
3032ms, pipe 3
From my Networking Background - what I see is that the Sun-System has a
weird setup. The iwconfig output gives me the mac address of the remote
device - however the ifconfig shows the Mac address of the Local device.
Seems like a proxy-Arping to me - but how am I supposed to configure a
routing table into that ?
Note - that I can run the Prism3 based Wifi under Windows XP - and there
is no difference in beheaviour at all - so I really think the problem is
on the atmel-device side.
Didn't get that one - maybe someone could clarify this to me.
Anyway - anyone having some hints, ideas of what I could check - please
let me know...
I'll try out the alternative driver - at76c503a - maybe that one works.
Thx in advance & Cheers
Joerg
--
------------------------------------------------------------------------
| Joerg Mertin : [email protected] (Home)|
| in Neuchâtel/Schweiz : [email protected] (Alt1)|
| Stardust's LiNUX System : [email protected] (Alt2)|
| PGP 2.6.3in Key on Demand : Voice & Fax: +41(0)32 / 725 52 54 |
------------------------------------------------------------------------
Home-Page: http://www.solsys.org