From owner-freebsd-usb@FreeBSD.ORG Thu Apr 2 07:10:02 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61CFB1065674 for ; Thu, 2 Apr 2009 07:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C7088FC1E for ; Thu, 2 Apr 2009 07:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n327A2PG061100 for ; Thu, 2 Apr 2009 07:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n327A2RM061099; Thu, 2 Apr 2009 07:10:02 GMT (envelope-from gnats) Resent-Date: Thu, 2 Apr 2009 07:10:02 GMT Resent-Message-Id: <200904020710.n327A2RM061099@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Luchezar Georgieff Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29F5010656EC for ; Thu, 2 Apr 2009 07:04:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 16F798FC24 for ; Thu, 2 Apr 2009 07:04:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3274nNW001635 for ; Thu, 2 Apr 2009 07:04:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3274n1r001634; Thu, 2 Apr 2009 07:04:49 GMT (envelope-from nobody) Message-Id: <200904020704.n3274n1r001634@www.freebsd.org> Date: Thu, 2 Apr 2009 07:04:49 GMT From: Luchezar Georgieff To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/133296: rum driver not working properly in hostap mode X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 07:10:02 -0000 >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@nomad ~]# uname -a FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC 2009 root@nomad:/usr/obj/usr/src/sys/LUCHIX i386 [root@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@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@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: at usbus0 rum0: on usbus0 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 [root@nomad ~]# I use this scrpt to create wlan0: [root@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@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 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 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@nomad ~]# [ >Fix: >Release-Note: >Audit-Trail: >Unformatted: