All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Jacopo Runchi <jacoporunchi@hotmail.it>
Cc: linux-wireless@vger.kernel.org
Subject: Re: I: RTL8187 driver in linux 3.4
Date: Fri, 01 Jun 2012 17:52:45 -0500	[thread overview]
Message-ID: <4FC947BD.50701@lwfinger.net> (raw)
In-Reply-To: <DUB107-W18A171E5A851D8D798C403A0080@phx.gbl>

On 06/01/2012 04:36 PM, Jacopo Runchi wrote:
> Hi, i'm using Openwrt on the device, so lsusb is not available.
> The USB device used is an ALFA NETWORK AWUS036H.
> In the last try i set the rate fixed, but the iwlist command says "unknown bitrate".
>
> So, I'm unable to verify that the rate has been successfully set.
> In fact also setting the rate fixed to 1M it doesn't works anymore.
> The behaviour seems to be the same as this post:
> http://www.gossamer-threads.com/lists/linux/kernel/860544 .
>
> I found some infos on what is the pid rate control algorithm, but I didn't
> understand how to set it or how to verify how is it set.
> Do I have to recompile the kernel to do it?

The AWUS036H is an RTL8187L. You don't need to send me the lsusb output.

Yes, to enable PID, you will need to reconfigure and recompile the kernel.

I have an AWUS036H, and got the following:

finger@linux-y7cb:~/wireless-testing> iwconfig
wlan0     IEEE 802.11bg  ESSID:"lwfdjf-n"
           Mode:Managed  Frequency:2.422 GHz  Access Point: C0:3F:0E:BE:2B:44
           Bit Rate=36 Mb/s   Tx-Power=0 dBm
           Retry  long limit:7   RTS thr:off   Fragment thr:off
           Power Management:off
           Link Quality=70/70  Signal level=-26 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:22   Missed beacon:0

finger@linux-y7cb:~/wireless-testing> sudo iwconfig wlan0 rate 1M
finger@linux-y7cb:~/wireless-testing> iwconfig
wlan0     IEEE 802.11bg  ESSID:"lwfdjf-n"
           Mode:Managed  Frequency:2.422 GHz  Access Point: C0:3F:0E:BE:2B:44
           Bit Rate=1 Mb/s   Tx-Power=0 dBm
           Retry  long limit:7   RTS thr:off   Fragment thr:off
           Power Management:off
           Link Quality=70/70  Signal level=-30 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:29   Missed beacon:0

finger@linux-y7cb:~/wireless-testing> ping -c5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=4.34 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=3.24 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=2.61 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=3.14 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=2.36 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 2.368/3.144/4.348/0.684 ms


By removing the antenna, I could reduce the signal strength reported by iwconfig 
to -63 dBm, and still connect and ping with the tayr set at 1 Mbps.

wlan0     IEEE 802.11bg  ESSID:"Larry_wpa1"
           Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1A:70:46:BA:B1
           Bit Rate=1 Mb/s   Tx-Power=0 dBm
           Retry  long limit:7   RTS thr:off   Fragment thr:off
           Power Management:off
           Link Quality=47/70  Signal level=-63 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:117   Missed beacon:0

finger@linux-y7cb:~/wireless-testing> ping -c5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=4.35 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=63 time=3.73 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=63 time=3.73 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=63 time=3.88 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=63 time=6.87 ms

When I reset the rate to "auto", the driver set it to 54M, and it would not 
communicate.

Larry

  parent reply	other threads:[~2012-06-01 22:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <!&!AAAAAAAAAAAuAAAAAAAAAH2SKMTPZA1PmAOs8RWvl9YBANlTnCJhprtFudq2LHCBs8EBACQA//8AABAAAACIF7qVX5kVSJrDEtYsG/e+AQAAAAA=@hotmail.it>
     [not found] ` <DUB107-ds5BA2D5341A3C373209B17A0080@phx.gbl>
2012-06-01 16:00   ` I: RTL8187 driver in linux 3.4 Larry Finger
     [not found]     ` <DUB107-ds643010AABCBACB5BC945BA0080@phx.gbl>
2012-06-01 18:00       ` R: " Larry Finger
     [not found]     ` <DUB107-W18A171E5A851D8D798C403A0080@phx.gbl>
2012-06-01 22:52       ` Larry Finger [this message]
     [not found]         ` <DUB107-W21F668D2D3DDFCB2222060A0090@phx.gbl>
2012-06-02 14:03           ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FC947BD.50701@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=jacoporunchi@hotmail.it \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.