LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-24-2008, 08:19 PM   #1
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
Flaky Intel 4965 Wireless Solved!


Hi all,

Just got a new Thinkpad T61p w/ the Intel 4965 wireless and have been getting 12.1 up and running.

I use WPA and got the card configured okay, but from the get go, the wireless has been really flaky in connecting. Sometimes it would associate and get an IP Addr successfully on boot, but many times not. However, if I executed the steps manually it would work every time.

The symptom was that it would successfully associate, but just after

Code:
Polling for DHCP server on interface wlan0:
some combination of the card driver and/or wpa_supplicant would kind of hang resulting in iwconfig showing wlan0 still associated, but clearly hung as there was no variation in signal level, etc.

After trolling through the rc.inet1 script, testing the same command sequence it uses I identified the problem.

There is a block in the script to set a timeout for DHCP that looks like this:

Code:
if [ "${DHCP_TIMEOUT[$i]}" = "" ]; then
          ifconfig ${1} up && sleep 1
          CONNSTATUS="$(cat /sys/class/net/${1}/carrier 2> /dev/null)"
          ifconfig ${1} down
          if [ "$CONNSTATUS" = "0" ]; then
            # The kernel has just told us the cable isn't even plugged in, but w
            # give any DHCP server a short chance to reply anyway:
            echo "No carrier detected on ${1}.  Reducing DHCP timeout to 10 seco
            DHCP_TIMEOUT[$i]=10
          fi
        fi
The problem was that for some reason issuing ifconfig ${1} down with the card associated would usually kill the interface association so dhcpcd was unsuccessful.

I set DHCP_TIMEOUT[i] explicitly in rc.inet1.conf to avoid this block executing, and all is well.

Not sure if that's a bug in dhcpcd, the iwl4965 module, or wpa_supplicant, (nor what the need is to take the interface down before running dhcpcd), but I thought I'd lay this out in case anyone else is beating their head against the wall.

Dave

Last edited by xflow7; 07-24-2008 at 08:22 PM.
 
Old 07-24-2008, 10:17 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
That's an awesome hack.

Kernel 2.6.26 has newer iwlwifi drivers. I had similar problems with the stock Slackware kernel and an Intel Pro 3945 card, but they went away after I upgraded to 2.6.26.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wireless device intel 4965 ag on VAIO not detected... RHEL5 vkmgeek Linux - Networking 3 05-14-2008 02:05 AM
Intel 4965 wireless adapter fails after kernel update Madone_SL_5.5 Linux - Wireless Networking 2 04-12-2008 08:05 PM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 07:36 AM
Intel Wireless PRO 4965 with NDISwrapper just doesn't want to work! S15_88 Linux - Wireless Networking 1 06-18-2007 09:18 AM
Intel PRO/Wireless 2200BG - Mandrake 10.1 - <SOLVED> Grasshopper Linux - Wireless Networking 3 03-15-2005 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:35 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