LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-10-2012, 03:28 PM   #1
noah++
LQ Newbie
 
Registered: May 2012
Posts: 11

Rep: Reputation: Disabled
Why does 'ifconfig wlan0 -promisc' fix my wifi problem?


I have the Alfa Network AWUS036H USB adapter. It worked splendidly under Linux in the 2.6 kernel days and just as well in Windows 7.

I recently switched from Windows to LMDE, which has a 3.2 series kernel now. I think the RTL8187 driver has regressed since 2.6, because the results were bad. It'd work fine for few minutes of light to moderate load. Then HTTP connections started timing out: First the sites I was using most would stop responding, and eventually I couldn't reach any site. All the while, my link strength stayed very strong.

For a while, my solution was to remove and readd the rtl8187 module, or to unplug the adapter and plug it back in. Annoyed by that routine, I tried to analyze the problem in Wireshark. I know little of networking internals, but I noticed that whenever I'd start a Wireshark capture, the problem would temporarily desist. Apparently, moving the interface into promiscuous mode reset something.

I established a cron job to move the interface into promiscuous mode and back every minute. But that was actually disruptive; my video streams would hiccup every minute. Finally I found that just unsetting promiscuous mode every minute keeps it healthy. Whether something else is setting promiscuous mode in the meantime, I have no idea.

What I want to know is why that fix works, what that tells us about a possible systemic fix for the RTL8187 driver, and if there might be any subtle side effects I should be wary of. (I've noticed no side effects after three days, though.)
 
Old 07-11-2012, 02:18 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
It look like the RTL8187 driver has problem. Does you use lastest driver?
 
Old 07-11-2012, 06:49 PM   #3
noah++
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yeah, I even tried using compat-wireless drivers. Anyway, I have a satisfactory workaround already. I want to know what it all suggests is wrong with the driver.
 
Old 07-24-2012, 08:00 PM   #4
notKyle
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Mine worked great on windows 7 but I installed Ubuntu 12.04(3.2.0-27-generic) last week. Now I have the problem you describe where it says I have a strong connection but all my connections would time out after an hour or so, sometimes less. The only fix I found was rebooting my computer. I will try out what your doing next time it happens to me. Please come back and let me know if u find a permanent fix for this problem. I posted on launchpad.net trying to get help with the problem but have yet to find a solution. Here is my post: https://answers.launchpad.net/ubuntu/+question/203845
 
Old 07-26-2012, 12:01 AM   #5
noah++
LQ Newbie
 
Registered: May 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
I've found that my fix works pretty well, but it's not airtight. It seems like the more fragmentation network conditions induce, the more often I will have to reload the module to work again. At most places, though, I never have to do that.

I've read so many anecdotes similar to mine that I feel sure it's a driver bug. But as I said, I don't know much about networking, and so I haven't been able to identify any specific technical stuff that I could paste into a bug report.

There's a new Linux kernel out that is supposed to address buffer bloat problems. Perhaps ours is a buffer bloat problem, and the new kernel will fix it. Hope so! I'll find out in the next couple months, I guess.
 
Old 01-03-2013, 12:40 PM   #6
shappappo
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
Noah in comparison with me you are a telecom engineer.....I have the same antenna, that allows me to browse at will.
ITS WILL!

I temporarily fixed the problem on Ubuntu some times ago, I can't even remember what I did.
than the problems came back.

I'm on Fedora now, and I just don't know what to do

how did you solved?

please, talk as if I was totally ignorant
 
  


Reply



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
ifconfig wlan0 up error paruhang Linux - Newbie 1 04-24-2012 10:11 AM
ifconfig wlan0 up ERROR GantMan Linux - Wireless Networking 6 06-24-2007 08:09 PM
how --- ifconfig eth0 promisc mode eder_michael11 Linux - Networking 2 04-19-2006 01:55 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM
Arp packets and Wifi Promisc mode SirSlappy Linux - Security 1 12-06-2003 10:02 AM

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

All times are GMT -5. The time now is 09:33 PM.

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