LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-10-2008, 05:57 PM   #1
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Rep: Reputation: 16
WiFi intermittently broken on 12.1


I thought for a while I'd configured my laptop's wireless card properly. Sometimes, it boots up and autoconnects to my university's WLAN with no work required on my part.
Other times, though, I'll get one of these two messages as it boots:
Quote:
SET failed on device wlan0: Operation not supported
or
Quote:
No carrier detected for device "wlan0". Reducing DHCP timeout to 10 seconds.
In either case, not only will it fail to connect, but countless retries of
iwconfig wlan0 essid <essid> key <key> key open ap auto
dhcpcd
ifconfig (to check)
will still fail to connect to the network. As such, I'm wondering if a: there's something I'm forgetting to run or b: I don't have the drivers configured properly even though it works sometimes.
Here's the relevant portion of /etc/rc.d/rc.inet1.conf for reference:
Code:
## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
WLAN_KEY[4]="[key censored]"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"
I'm kind of wondering if I should uncomment DHCP_KEEPRESOLV, especially since the wireless can sometimes disconnect if I carry the laptop a long distance (i.e. between classes). It seems like that handles that sort of thing.
 
Old 11-10-2008, 06:09 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
What kind of wireless adapter does your laptop have? Is it an Intel 3945?

Last edited by dugan; 11-10-2008 at 06:14 PM.
 
Old 11-10-2008, 06:33 PM   #3
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by dugan View Post
What kind of wireless adapter does your laptop have? Is it an Intel 3945?
I'm pretty sure it's either a 3945 or a 4965. As to which one exactly, I honestly can't remember. I'm using a lenovo thinkpad t61 if that helps.
 
Old 11-10-2008, 06:45 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I've investigated this thoroughly. See my post here:
http://www.linuxquestions.org/questi....php?p=3171431

The short answer is that the 3945 drivers in Slackware 12.1's stock kernel don't work. Your options are:
  • install a newer kernel
  • downgrade to the ipw3945 drivers, patching them first
  • install newer drivers from the compat-wireless project

The first two are guaranteed to work. If you choose the second and run into trouble, post a follow-up; I've posted step-by-step instructions before.

Last edited by dugan; 11-10-2008 at 06:51 PM.
 
Old 11-10-2008, 09:05 PM   #5
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Original Poster
Rep: Reputation: 16
Quote:
install a newer kernel
Is there a possibility of this breaking other stuff? I'm hoping not, but this would be my first kernel upgrade so I'd like to make sure.
 
Old 11-11-2008, 05:49 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
The short answer is that the 3945 drivers in Slackware 12.1's stock kernel don't work
If you use the huge kernel, yes, the stock Slackware kernel does work with a 3945. If you did a full install, Slackware even comes with a package for the firmware needed. On my laptop, doing a full install of 12.1 got my 3945 running out of the box. No additional work needed other than configuration. Of course I use wicd rather than the normal Slackware /etc/rc.d scripts, so that might account for some of the differences between our experiences.

Last edited by Hangdog42; 11-11-2008 at 05:51 AM.
 
Old 11-11-2008, 12:21 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Hangdog42, there are different models and versions of 3945 chips. Therefore, Slackware 12.1's stock driver might well work for you. So that you can make sure, I've linked (in the post above) to step-by-step instructions for duplicating the problems that irkkaaja and I experienced.

However, this driver does not work (properly) for me, irkkaaja, or the people who tested it on Gentoo forums, which has a massive thread devoted to working around its problems. As noted on page 13 on that thread, kernel 2.6.26 (which is newer than what comes with Slackware 12.1) is the earliest one to have working iwl3945 drivers. Kernel 2.6.26 is newer than Slackware 12.1's kernel.

Last edited by dugan; 11-11-2008 at 11:44 PM.
 
Old 11-11-2008, 03:56 PM   #8
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Hangdog42 View Post
If you use the huge kernel, yes, the stock Slackware kernel does work with a 3945. If you did a full install, Slackware even comes with a package for the firmware needed. On my laptop, doing a full install of 12.1 got my 3945 running out of the box. No additional work needed other than configuration. Of course I use wicd rather than the normal Slackware /etc/rc.d scripts, so that might account for some of the differences between our experiences.
I tried wicd and it still didn't work so I doubt it's a daemon issue.
It's possible (isn't it?) that it works for some types networks and not others, which would explain why you're saying it works and I'm finding it doesn't.
After all, it's only sometimes broken for me. I managed to connect to the network as of now, but the next time I reboot and/or carry the laptop half a mile away to my classes it might break.

But I take it a new kernel won't break the wonderful compatibility I've had with my USB mouse, keyboard, touchpad, screen, and speakers, right?
 
Old 11-11-2008, 04:50 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
No, it won't. It would have new and improved drivers, and therefore better compatibility.
 
Old 11-12-2008, 02:14 AM   #10
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by dugan View Post
No, it won't. It would have new and improved drivers, and therefore better compatibility.
That sounds good.
Of course, being that this is my first kernel upgrade, I'd like to make sure I've got this (obvious to people who aren't me) set of actions right.
download 2.6.27.5 from kernel.org
bunzip2 <file>
put it in /usr/src/linux
follow everything else on slackbook.org
stuff happens
successful internet connections.
bragging rights at university linux users group
 
Old 11-12-2008, 03:49 AM   #11
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by irkkaaja View Post
That sounds good.
Of course, being that this is my first kernel upgrade, I'd like to make sure I've got this (obvious to people who aren't me) set of actions right.
download 2.6.27.5 from kernel.org
bunzip2 <file>
put it in /usr/src/linux
follow everything else on slackbook.org
stuff happens
successful internet connections.
bragging rights at university linux users group
Right from what I see except for you put it in "/usr/src" - the /usr/src/linux folder respectively symlink should stay as it is. If you want to make your life a little bit easier then take the config file from Slackware-current (for example from here: ftp://slackware.cs.utah.edu/pub/slac...p-2.6.27.5-smp). Not only will you have lesser choices to make but you can even be quite sure that you can (hopefully) get the card in the next Slackware release working, too. Copy it as file ".config" to the folder, for example "/usr/src/linux-2.6.27.5/.config".
 
  


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
My fedora 9 is hanging intermittently geno976 Fedora 5 08-21-2008 11:33 AM
Some distros lockup intermittently, some do not ed_ Linux - General 1 07-07-2008 06:53 PM
Ethernet and wifi are broken!! Lost In Here Linux - Wireless Networking 11 02-16-2008 09:42 PM
wireless works intermittently bogdanpa Linux - Wireless Networking 0 02-11-2007 09:17 AM
Comcast only works intermittently evilmrhenry Linux - Networking 0 12-13-2005 04:38 PM

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

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