From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 09:56:22 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C2E7106564A for ; Thu, 30 Apr 2009 09:56:22 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 62A1D8FC27 for ; Thu, 30 Apr 2009 09:56:20 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by fxm6 with SMTP id 6so1702422fxm.43 for ; Thu, 30 Apr 2009 02:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=s/2q7coKtvn1PIEBmqF5x5DDQfxHsPrueFceXvXIlvs=; b=D636zAfYiDe/GsSMNXzM50RBXxAIGPDN/aDEKmgxF/gAJYdlu4LHzR1VhoXv6CsSmu Ul8nEShm21Urvs5kviCnoODm8tDZC3oFmZihHlfMpoIxv7CgSlJiEHAL0W22SChQjxRx 3lAHvepJHjasuZK3l+uNpTp8hTeruyFaawYWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WB9QNxHnyVI0lkj0L5D0Eu09+1BLDJtRPNLwdT7tx5W9914V2wGiU9pqZNphfFmbAH l4A9UujSqvjCAj/ep4PrX+6ZzHuPIErgqXKArLpjR15eGmg0+nJDyn6F70DArm7NdhyJ eyWxrh2zRhyhIM/B48npvfLTeJWWZn/pu7P3E= MIME-Version: 1.0 Received: by 10.239.171.143 with SMTP id w15mr67524hbe.119.1241085380137; Thu, 30 Apr 2009 02:56:20 -0700 (PDT) In-Reply-To: <49F4B018.1000703@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> Date: Thu, 30 Apr 2009 11:56:20 +0200 Message-ID: <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> From: "Paul B. Mahol" To: Gustau Perez Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Signal sensitivity problem with if_rum 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, 30 Apr 2009 09:56:22 -0000 On 4/26/09, Gustau Perez wrote: > > Hi, > > I think this is right place to post, if it is not, please let me know. It is not usb fault, it is driver side fault. > I'm experiencing problems with two different devices using if_rum. > One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC > > The first one is about sensitivity, which is very low: for example, > I'm detecting just two or three networks around me (with windows them > detect around 14 or 15 networks) and the reported signal is very low. > Placing the sensor very near to my wireless network AP (which is a > FreeBSD machine with atheros card placing the txpower to 20) reports a > signal quality of 50% or 60%. > > Linux presents the same problem (my wife's laptop with ubuntu shows > the same figures, more or less). Instead with windows it works just fine. That contradicts with mine findings, linux rt73 driver works fine. > > The other one is that having such a low sensitivity makes those > dongles unusable when making large transfers, mostly when using scp/sftp > or sshfs (samba seems to make it work better for longer transfer, but > finally the problem appears). At some given point, the dongles seem to > lose contact with the AP (making ifconfig shows that wlan0 is still > associated), waiting for a period of time (usually one or two minutes) > the transfer continues. Probably both problems are related. > > In order to debug the problem I tried looking dmesg in both my AP and > my laptop (no trace). Tried looking at the ssh logs (when making large > transfers, no clue). In the only place I found something was in the > samba logs, only saying that there was a problem with the transfer > (broken pipe, the socket is closed). > > In the linux world, I found that the register which controls the > sensitivity is bbp17. Tried looking in > /usr/src/sys/dev/usb/wlan/if_rum.c, but I get lost. Tried with sysctl -a > | grep rum or grep wlan0, but no MiB related to sensitivity appeared. > > Is there anything I can try ? I use ndisgen(8) in such case(...), note that only CURRENT now have usb support for ndisulator. -- Paul