usb/133296: rum driver not working properly in hostap mode
Luchezar Georgieff
lucho at sofiaonline.net
Thu Apr 2 00:10:02 PDT 2009
>Number: 133296
>Category: usb
>Synopsis: rum driver not working properly in hostap mode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 02 07:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Luchezar Georgieff
>Release: 8.0-CURRENT
>Organization:
>Environment:
[root at nomad ~]# uname -a
FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC 2009 root at nomad:/usr/obj/usr/src/sys/LUCHIX i386
[root at nomad ~]#
>Description:
rum driver not working with several (all I found) usb wireless cards in hostap mode. At first sight client station is connected and ping is ok. After putting some load at wireless link ( opening big web page or stating download file and client machine) link hangs. Sometimes dhcp does not work, but if I set manual IP address traffic comes for a little time and hangs. Using tcpdump in most case gives me following output:
[root at nomad ~]# tcpdump -i wlan0 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
[root at nomad ~]# tcpdump -i wlan0 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
08:56:26.510840 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, rcv seq 64, Flags [Poll], length 6
08:56:26.510860 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, rcv seq 64, Flags [Poll], length 6
Sometimes I see traffic from client machine only (arp requests)
May be it is connected with some broadcasting problem.
If anybody needs I can provide ssh access to machine - it is test setup, I want to make 3G/Wireless router for my car :)
The machine is old P3 (IBM Thinkpad T22), but I have tested on few other machines with exatcly the same result.
>How-To-Repeat:
insert ralink-equiped usb device:
ugen0.2: <Ralink> at usbus0
rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 2> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
[root at nomad ~]#
I use this scrpt to create wlan0:
[root at nomad ~]# cat /root/ifcreate
#!/usr/local/bin/bash
wifi="wlan0"
wdev="rum0"
wauth="open"
loc="indoor"
echo creaing $wifi
ifconfig $wifi down
ifconfig $wifi destroy
ifconfig $wifi create wlandev $wdev wlanmode hostap authmode $wauth\
ssid nomad country BG $loc
sleep 2
ifconfig wlan0 192.168.90.1/24 up
# wlandebug -i $wifi +scan+auth+debug+assoc
/usr/local/etc/rc.d/isc-dhcpd restart
/etc/rc.d/named restart
pfctl -d
pfctl -f /etc/pf.conf
pfctl -e
ifconfig wlan0
outout from it:
[root at nomad ~]# /root/ifcreate
creaing wlan0
ifconfig: interface wlan0 does not exist
ifconfig: interface wlan0 does not exist
dhcpd not running? (check /var/run/dhcpd/dhcpd.pid).
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 3 leases to leases file.
Listening on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24
Sending on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24
Sending on Socket/fallback/fallback-net
Stopping named.
Starting named.
pf disabled
pf enabled
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:18:f3:3a:19:d2
inet 192.168.90.1 netmask 0xffffff00 broadcast 192.168.90.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid nomad channel 1 (2412 Mhz 11g) bssid 00:18:f3:3a:19:d2
regdomain ETSI country BG indoor authmode OPEN privacy OFF txpower 30
scanvalid 60 protmode CTS dtimperiod 1 -dfs
[root at nomad ~]#
[
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list