LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2014, 06:25 PM   #1
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Rep: Reputation: Disabled
Slow internet connection


I have a D-Link DWL-G122 B1 wireless adapter with chipset RT2571 which corresponds to rt2500 driver in linux but since this specific driver is no longer available for my kernel version (3.11), i had to use a windows driver using ndiswrapper. I have connection with the internet but my wifi signal is weak and sometimes my internet falls down.

What should i do to improve my adapter performance in order to keep a good and stable connection? Should i use another linux driver compatible with this adapter, perhaps rt73? Change some configurations? Change to a new and better adapter?
 
Old 03-04-2014, 08:59 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Your best bet would probably be to switch over to the rt73 driver, simply because it does support the chipset you say you have, and it is Linux-native. Of course, I'm guessing here because I don't have that wifi adapter myself and have no experience, but that is what I would do, anyway.

I doubt if it's a config problem. Switching to a better adapter might be nice, but before dropping cash on that, I'd try rt73.

I used to use an old hack for Broadcom chips and finally wl came out and it worked just beautifully. Those new drivers, they tend to be released for good reason!
 
Old 03-04-2014, 09:16 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
I came across this arch thead https://bbs.archlinux.org/viewtopic.php?id=169956 about problems with the rt2500 driver and the 3.11 kernel. According to this there is a patch to fix and has been fixed in 3.12
 
Old 03-05-2014, 03:50 AM   #4
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I came across this arch thead https://bbs.archlinux.org/viewtopic.php?id=169956 about problems with the rt2500 driver and the 3.11 kernel. According to this there is a patch to fix and has been fixed in 3.12
Sorry, i didn't understand what i have to do here, can you explain?
 
Old 03-05-2014, 04:09 AM   #5
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by notKlaatu View Post
Your best bet would probably be to switch over to the rt73 driver, simply because it does support the chipset you say you have, and it is Linux-native. Of course, I'm guessing here because I don't have that wifi adapter myself and have no experience, but that is what I would do, anyway.

I doubt if it's a config problem. Switching to a better adapter might be nice, but before dropping cash on that, I'd try rt73.

I used to use an old hack for Broadcom chips and finally wl came out and it worked just beautifully. Those new drivers, they tend to be released for good reason!
yeah despite that it is more indicated to rev C1, not B1, but i'll try it. I think rt73 is in the same situation as rt2500 because there is no linux driver for my kernel version so i have to use ndiswrapper again.
 
Old 03-05-2014, 03:07 PM   #6
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Why do you believe there is no rt73 available for your kernel? It's an open source driver, so I don't see why it would not be available for your kernel.

What does

Code:
modprobe -l *73*
modprobe -l *rt*
return?
 
Old 03-05-2014, 03:48 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
What distro are you using? The link was in reference to arch distro and a few post from debian users with the same problem. The link basically says to upgrade to the 3.12 kernel or apply a patch and rebuild the 3.11 kernel as stated in post 10 of the link. Have you tried running updates to fix the problem?

Last edited by colorpurple21859; 03-05-2014 at 03:51 PM.
 
Old 03-05-2014, 05:44 PM   #8
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by notKlaatu View Post
Why do you believe there is no rt73 available for your kernel? It's an open source driver, so I don't see why it would not be available for your kernel.

What does

Code:
modprobe -l *73*
modprobe -l *rt*
return?
Ralink only released these drivers up to 2.6 kernel version but if you can find me a linux driver for 3.11 kernel, i would appreciate it.

There is no l option on my terminal, but i'll give you a help list for modprobe, since i don't know exactly what you want:

Code:
HIGHSCREEN tiago # modprobe -h
Usage:
	modprobe [options] [-i] [-b] modulename
	modprobe [options] -a [-i] [-b] modulename [modulename...]
	modprobe [options] -r [-i] modulename
	modprobe [options] -r -a [-i] modulename [modulename...]
	modprobe [options] -c
	modprobe [options] --dump-modversions filename
Management Options:
	-a, --all                   Consider every non-argument to
	                            be a module name to be inserted
	                            or removed (-r)
	-r, --remove                Remove modules instead of inserting
	    --remove-dependencies   Also remove modules depending on it
	-R, --resolve-alias         Only lookup and print alias and exit
	    --first-time            Fail if module already inserted or removed
	-i, --ignore-install        Ignore install commands
	-i, --ignore-remove         Ignore remove commands
	-b, --use-blacklist         Apply blacklist to resolved alias.
	-f, --force                 Force module insertion or removal.
	                            implies --force-modversions and
	                            --force-vermagic
	    --force-modversion      Ignore module's version
	    --force-vermagic        Ignore module's version magic

Query Options:
	-D, --show-depends          Only print module dependencies and exit
	-c, --showconfig            Print out known configuration and exit
	-c, --show-config           Same as --showconfig
	    --show-modversions      Dump module symbol version and exit
	    --dump-modversions      Same as --show-modversions

General Options:
	-n, --dry-run               Do not execute operations, just print out
	-n, --show                  Same as --dry-run
	-C, --config=FILE           Use FILE instead of default search paths
	-d, --dirname=DIR           Use DIR as filesystem root for /lib/modules
	-S, --set-version=VERSION   Use VERSION instead of `uname -r`
	-s, --syslog                print to syslog, not stderr
	-q, --quiet                 disable messages
	-v, --verbose               enables more messages
	-V, --version               show version
	-h, --help                  show this help
 
Old 03-05-2014, 05:53 PM   #9
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
What distro are you using? The link was in reference to arch distro and a few post from debian users with the same problem. The link basically says to upgrade to the 3.12 kernel or apply a patch and rebuild the 3.11 kernel as stated in post 10 of the link. Have you tried running updates to fix the problem?
Code:
HIGHSCREEN tiago # uname -a
Linux HIGHSCREEN 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux
HIGHSCREEN tiago # lsb_release -a
No LSB modules are available.
Distributor ID: Linux Mint
Description:    Linux Mint 16 Petra
Release:        16
Codename:       Petra
But that post you mentioned is for pci adapter but i use a usb adapter, and also i have mac80211 and there he has ieee80211.

Which updates do you want me to run?
 
Old 03-05-2014, 06:29 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
software updates for linux mint.
 
Old 03-05-2014, 06:30 PM   #11
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Maybe you should take a look at this, this was when i was connected to Wi-fi:

Code:
HIGHSCREEN tiago # lsmod |grep rt2
rt2500usb              30861  0 
rt2x00usb              20041  1 rt2500usb
rt2x00lib              48854  2 rt2x00usb,rt2500usb
mac80211              513247  2 rt2x00lib,rt2x00usb
cfg80211              401436  2 mac80211,rt2x00lib
HIGHSCREEN tiago # dmesg
(...)
[   20.368813] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.369658] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.381113] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   20.382348] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.831886] wlan0: authenticate with 00:22:b0:fa:62:ed
[   22.892577] wlan0: send auth to 00:22:b0:fa:62:ed (try 1/3)
[   22.895190] wlan0: authenticated
[   22.896106] wlan0: associate with 00:22:b0:fa:62:ed (try 1/3)
[   22.899212] wlan0: RX AssocResp from 00:22:b0:fa:62:ed (capab=0x421 status=0 aid=4)
[   22.901725] wlan0: associated
[   22.901779] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   26.900023] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   26.900032] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   30.888032] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   30.888042] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   34.824041] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   34.824053] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   38.900062] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   38.900078] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   42.768066] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   42.768079] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   46.772033] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   46.772045] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   50.720021] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   50.720031] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   51.244030] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
(...)
[   88.692022] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   88.692031] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   92.540023] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   92.540033] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[   96.388021] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[   96.388031] ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
[  100.200062] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 1 (-16)
[  103.932028] ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 1 (-16)
[  105.804048] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  106.444034] ieee80211 phy0: wlan0: No probe response from AP 00:22:b0:fa:62:ed after 500ms, disconnecting.
[  106.620024] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  106.626806] cfg80211: Calling CRDA to update world regulatory domain
[  106.635056] cfg80211: World regulatory domain updated:
[  106.635065] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  106.635069] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  106.635072] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  106.635075] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  106.635078] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  106.635081] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  106.816035] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  106.892028] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  107.816182] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  108.016756] wlan0: authenticate with 00:22:b0:fa:62:ed
[  108.048022] wlan0: send auth to 00:22:b0:fa:62:ed (try 1/3)
[  108.252026] wlan0: send auth to 00:22:b0:fa:62:ed (try 2/3)
[  108.456018] wlan0: send auth to 00:22:b0:fa:62:ed (try 3/3)
[  108.660019] wlan0: authentication with 00:22:b0:fa:62:ed timed out
[  108.828030] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  108.834938] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  109.821551] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  115.804032] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  121.804044] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  122.274170] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  122.496035] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  122.668033] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  122.804043] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  122.828043] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
[  123.816039] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  126.804034] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  149.804034] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  182.804036] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  225.804031] ieee80211 phy0: rt2x00usb_watchdog_tx_dma: Warning - TX queue 0 DMA timed out, invoke forced forced reset
[  231.124653] usb 1-7: USB disconnect, device number 3
[  231.332841] Disabling lock debugging due to kernel taint
[  231.334440] ndiswrapper version 1.58 loaded (smp=yes, preempt=no)
[  231.409683] usbcore: registered new interface driver ndiswrapper
[  231.410171] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-wlan0 instead.
[  231.416616] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-wlan0 instead.
[  231.421392] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-wlan0 instead.
[  231.480424] Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-wlan0 instead.
[  233.056022] usb 1-7: new high-speed USB device number 4 using ehci-pci
[  233.355481] usb 1-7: New USB device found, idVendor=2001, idProduct=3c00
[  233.355487] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  233.355491] usb 1-7: Product: 802.11g WLAN Adapter    
[  233.355495] usb 1-7: Manufacturer: ANI 
[  233.472028] usb 1-7: reset high-speed USB device number 4 using ehci-pci
[  233.785284] ieee80211 phy1: rt2x00_set_chip: Info - Chipset detected - rt: 2570, rf: 0005, rev: 0003
[  233.786021] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  233.992516] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  233.993230] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  236.272743] wlan0: authenticate with 00:22:b0:fa:62:ed
[  236.316954] wlan0: send auth to 00:22:b0:fa:62:ed (try 1/3)
[  236.318548] wlan0: authenticated
[  236.320052] wlan0: associate with 00:22:b0:fa:62:ed (try 1/3)
[  236.322142] wlan0: RX AssocResp from 00:22:b0:fa:62:ed (capab=0x421 status=0 aid=4)
[  236.323629] wlan0: associated
[  236.323672] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  240.244037] ieee80211 phy1: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[  240.244047] ieee80211 phy1: rt2x00lib_autowakeup: Error - Device failed to wakeup
[  244.316032] ieee80211 phy1: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[  244.316042] ieee80211 phy1: rt2x00lib_autowakeup: Error - Device failed to wakeup
[  248.368037] ieee80211 phy1: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[  248.368047] ieee80211 phy1: rt2x00lib_autowakeup: Error - Device failed to wakeup
[  252.304025] ieee80211 phy1: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
[  252.304035] ieee80211 phy1: rt2x00lib_autowakeup: Error - Device failed to wakeup
 
Old 03-05-2014, 06:45 PM   #12
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
looks like you're using the right driver after all

Last edited by notKlaatu; 03-05-2014 at 06:58 PM. Reason: just read the logs he posted..
 
Old 03-05-2014, 06:47 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
open a terminal and type the following and see if that helps
Code:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 power off
sudo ifconfig wlan0 up
If it helps edit the /etc/rc.local file and add
Code:
iwconfig wlan0 power off
 
1 members found this post helpful.
Old 03-05-2014, 08:06 PM   #14
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
No, it didn't help at all, i'm going to test other windows drivers and if it doesn't work, i'm going to change to other newer and recent adapters that may work better than this very old adapter.
 
Old 03-05-2014, 09:06 PM   #15
minimeister
LQ Newbie
 
Registered: Mar 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
well, guys i just replaced my adapter with another (TP-Link TL-WN722N) and it automatically worked! No need to install any driver because it automatically gets from somewhere! I think i'm gonna throw away my old adapter, it seems that it has always given me many problems haha! Thanks for your help, sometimes we need to replace our old products, to get new better ones, and perhaps it is always the best solution for our problems!

Last edited by minimeister; 03-05-2014 at 09:07 PM.
 
1 members found this post helpful.
  


Reply

Tags
dlink, driver, dwlg122, internet connection, ndiswrapper



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow internet connection on multiple linux distros but fast connection on windows Preston3050 Linux - Newbie 7 10-31-2013 12:21 AM
Slow internet connection on multiple linux distros but fast connection on windows Preston3050 Linux - Networking 1 10-29-2013 12:03 PM
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
internet connection is slow redryder82 Linux - Newbie 10 03-17-2008 09:40 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration