LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-14-2008, 11:36 PM   #1
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Rep: Reputation: 16
Angry HP WLAN driver for Intel 4965 using iwlwifi on Debian


This I think is one of those things that will drive any user batty.
I'm trying to install a driver for my Intel internal WLAN, using iwlwifi.
I have upgraded my kernel from 2.6.18 to 2.6.22-3 to get mac80211.
I've tryed several versions (1.0.1 to 1.2.22) of iwlwifi, and they all do the same thing: throw hundreds of errors when I run make to create the iwlwifi.ko module.
I have the source for 2.6.22-3, and the general headers. What I don't have is the 686 specific headers. I've tryed "apt-get install linux-headers-2.6.22-3-686", but this produces the response: linux-headers-2.6.22-3-686 depends on linux-kbuild-2.6.22; however:
Package linux-kbuild-2.6.22 is uninstallable.
I have searched for a manual .DEB file to install kbuild, but they seem to have been removed.


So my question is thus: can I get linux-kbuild-2.6.22 from somewhere else? if not, can I get the 686 headers without kbuild? Do I need to build my own iwlwifi.ko module, can I download one for the 2.6.22-3-686 kernel? Is there a better way to get my WLAN to work?
 
Old 07-15-2008, 06:23 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
The driver you need for that card was put into the kernel starting with 2.6.24, so moving at least that far would probably be the easiest solution. If you do need to stick with 2.6.22, I believe you have to patch and recompile the kernel to get the proper mac80211. The patch should be on the Intel site. Also be sure you have the correct firmware installed, although that shouldn't affect the driver compile.
 
Old 07-15-2008, 03:31 PM   #3
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
Thanks for that.
I was against upgrading the kernel (but even more so compiling a custom one) so I chose the oldest (and therfore the one that more people had used) that included the mac80211. Since doing it I don't know what I was worryied about, so I'll upgrade the kernel again to 2.6.24 when I boot to linux next (dual boot machine, currently in winXP: the three big things stopping me from going %100 linux are WLAN, UNC paths in wine and active directory).

Does anyone know of any realy show stopping problems with 2.6.24 (this was my original fear with upgrading the kernel in the first pace)? or do you sugest going with a newer/diferent kernel?
 
Old 07-15-2008, 05:27 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I've been using 2.6.24.5 for several months now and not run into any issues. The kernel team has just released 2.6.26, and you might want to check the changelogs to see if there are any changes to the iwl4965 driver that might be worth upgrading. In general, my biggest problem with upgrading the kernel hasn't been hardware, but rather issues with keeping VMware running so if you're not using that (and even then my issue is with one specific aspect of VMware) then I doubt that a newer version of the kernel is going to cause any major issues. However, if you want to remain on the safe side, use the latest 2.6.24.
 
Old 07-15-2008, 10:21 PM   #5
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
Thanks for that.
I've just apt-got kernel 2.6.25-5 and all seems good. KWiFiManager now aknowleges the existance of my WLAN, and can pick up the wireless network if it's told what the scsid is but I can't connect to it, the message I'm getting is "out of range" but it hasn't moved (not even an inch) since it was running fine in windows. Soon I'll be decamping to our other office, with a diferent scsid and wep key that I can phisicaly get closer to and I'll see if that makes any diference at all.

In all honesty, the defualt KDE wireless manager seems to leave quite a bit to be desired (and unusable in the command line). Any thoughts on a replacement?
 
Old 07-16-2008, 06:01 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
I've been using two GUI wireless managers fairly successfully:

wifi-radar

Wicd

Of the two, I think wicd is probably the more robust solution however it is also a two part solutions. It has a daemon that has to be started independently of the GUI while wifi-radar is just a single program. Both of them are desktop independent and I would bet that they both exist in a Debian repository.

For the command line I just use iwconfig and wpa_supplicant. If you check my help site a long time ago I wrote a perl script that scans for networks and gives you a choice of which to connect to. However it is exceedingly basic and doesn't really handle encrypted networks well. Since wicd and wifi-radar work so well, I've pretty much stopped working on the perl script.
 
Old 07-16-2008, 03:20 PM   #7
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
Before I saw your post, I thought prerhaps kwifi needed an upgrade (the version I had was now older than my kernel). I apt-got the new version. That needed a new version of KDE, that needed new core packages, ect, ect. Just doing that took well over two hours, and now konqueror dosen't work (yay). I haven't tryed the new version, but when I do I'll have a look at wifi-radar then wicd afterward.

With the "out of range" thing, does it make any diference do you think, if the access piont is a 'Range Max' that has some sort of signal boosting (and probibly proprietory) system? I'm just wondering if linux dosen't understand it if it's outside the normal range (but inside the rangemax range)
 
Old 07-16-2008, 03:54 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
With the "out of range" thing, does it make any diference do you think, if the access piont is a 'Range Max' that has some sort of signal boosting (and probibly proprietory) system? I'm just wondering if linux dosen't understand it if it's outside the normal range (but inside the rangemax range)
I highly doubt that 'RangeMax' is anything that Linux can't handle. All router signals should fall within 802.11 specifications. Granted, the n stuff is still draft, but a,b and g are quite standard. What router manufacturers seem to be playing around with a lot is the MIMO stuff that uses multiple antennas to grab packets faster and that is completely independent of the OS used on any client machine. The only way that a router manufacturer can truly boost the range of a router is either by messing with antenna design or by boosting the power of the signal. Both of those are covered either by the 802.11 spec and/or FCC regulations (in the US) and won't vary between Windows or Linux clients.

Pretty much that is the long way of saying that I think your connection problem probably has more to do with the way the wireless card is configured than with the actual distance from the router. I suspect the "out of range" message is simply a symptom of some other problem, and in your case Kwifimanager is a very likely culprit. I bet either wicd or wifi-radar will work better.
 
Old 07-16-2008, 10:20 PM   #9
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
I couldn't get wicd to work, but whe I ran wifi-radar all I got was:

Code:
wlan0     Interface doesn't support scanning : Network is down

Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...
Over and over again.
What does "Interface dosen't support scanning" mean?
 
Old 07-17-2008, 06:33 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
The Wireless Extensions warning is likely a result of your kernel upgrade. You'll need to also upgrade your wireless tools package to the newest version. The homepage is here, but I suspect that your Debian repository has something you can apt-get. Basically that is a warning that the wireless extensions in the kernel are newer than the wireless tools and problems can result.

However, I sometimes see that sort of error ("Interface doesn't support scanning") when I forget to run wifi-radar as root. Since you're messing with the network configuration you need root priviledges. Wicd gets around that by having the daemon run as root and the client can then be run as a normal user. Try upgrading wireless tools first and see if that solves the problem though.
 
Old 07-17-2008, 03:17 PM   #11
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
That's a great idear, I hadn't even thought of that.
The good news is I worked out how to connect to the WLAN from the command line: I just use "iwconfig wlan0 ..." then "ifup wlan0". The "Interface dosen't support scanning" thing only happens when the interface is down, if the interface is up, it can scan to it's hearts content. I don't know if that's a problem with the driver or the device itself, but at the moment I don't care.

The funny this is that when I start the machine with no eth0 connection (ie the lan is unpluged on startup) the wlan dosn't work, throwing a error like "can't mount NFS, waiting for eth0" when I use ifup. I only saw this at our other site though. When I get a chance to boot back to linux, I'll do some more rigorous testing.
 
Old 07-17-2008, 03:55 PM   #12
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 "Interface dosen't support scanning" thing only happens when the interface is down, if the interface is up, it can scan to it's hearts content. I don't know if that's a problem with the driver or the device itself, but at the moment I don't care.

I think this falls into the category of "its not a bug its a feature". Slackware doesn't behave like this, but a number of other distros do, apparently Debian included.

Quote:
The funny this is that when I start the machine with no eth0 connection (ie the lan is unpluged on startup) the wlan dosn't work, throwing a error like "can't mount NFS, waiting for eth0" when I use ifup. I only saw this at our other site though. When I get a chance to boot back to linux, I'll do some more rigorous testing.
That sounds more like a configuration issue than anything else. Do you automatically try to mount an NFS drive at boot?
 
Old 07-17-2008, 05:10 PM   #13
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
I don't mount a NFS drive, there aren't any on the network. But I don't think that's related to the problem.

I discovered that the wirless actualy dosen't work. All the data I thought was passing through it, isn't. It was going through eth0. The WLAN is connected and even gets an IP number from the DHCP server, which is why I thought it was working but if I unplug eth0 and then try to ping the mail server I get :
PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data.
From 10.1.1.22 icmp_seq=2 Destination Host Unreachable
From 10.1.1.22 icmp_seq=3 Destination Host Unreachable
From 10.1.1.22 icmp_seq=4 Destination Host Unreachable

where 10.1.1.22 is the IP that wlan0 got from the DHCP. Sometimes the IP is 10.1.1.33, which is eth0. The DHCP server confirms that it gave the wireless an IP at the correct time, and the MAC address of the card matches. This tells me it's only talking to itself. The mode type is "Managed" and it is talking to an access piont, but I heard somwhere that some Intel wireless cards have dificulty with ad-hoc networks (although I thought that was to do with the windows driver).

What now?

Last edited by royce2020; 07-17-2008 at 06:36 PM.
 
Old 07-18-2008, 06:49 AM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
which is why I thought it was working but if I unplug eth0 and then try to ping the mail server I get :
Just pulling the plug probably doesn't do the trick, you need to take down the interface (ifconfig eth0 down). If you just pull the plug, eth0 is still live.
Quote:
where 10.1.1.22 is the IP that wlan0 got from the DHCP. Sometimes the IP is 10.1.1.33, which is eth0. The DHCP server confirms that it gave the wireless an IP at the correct time, and the MAC address of the card matches. This tells me it's only talking to itself.
Sorry, but I think we need to look at some basics here. Please post your ifconfig, iwconfig and route -n outputs after you've configured and brought up just the wireless interface.

Quote:
The mode type is "Managed" and it is talking to an access piont, but I heard somewhere that some Intel wireless cards have dificulty with ad-hoc networks (although I thought that was to do with the windows driver).
Unless you're trying to run and ad-hoc network, this shouldn't come into play. I'm assuming that we're talking about a standard access point/router, not computer to computer connections. Please correct me if I'm wrong.
 
Old 07-21-2008, 03:27 PM   #15
royce2020
Member
 
Registered: Jan 2003
Posts: 92

Original Poster
Rep: Reputation: 16
Sorry to confuse you about the nature of the network, it is indeed several laptops talking to an access point, when I wrote that I was more thinking out loud.

before I saw your post I already thought of taking eth0 down properly using "ifdown eth0" but it doesn't make any deference (except that the error never includes 10.1.1.33 afterwards).

On an unrelated note, I finally got around to trying Ubuntu Hardy Heron live CD last night, and the wireless worked straight away (the first time it ever worked under linux I think); I was surfing the web on it. So that rules out hardware incompatablility or driver (assuming they're the same) issues.

As usual, I'm running WinXP in the morning and I'll switch to linux some time after lunch, so I'll get the output from ifconfig, iwconfig and route -n for you then.
 
  


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
Trouble with Intel/Pro 3945 iwlwifi driver linux@vivi.com Linux - Hardware 7 05-05-2008 11:02 AM
Intel 4965AGN linux driver iwlwifi uAPSD joshuasanz Linux - Newbie 2 03-31-2008 07:09 AM
slackware 12.0 and intel iwlwifi 4965AGN diem Slackware 3 02-05-2008 10:48 AM
Intel 3945 with firmware-iwlwifi not working acampbell Linux - Wireless Networking 0 09-14-2007 12:24 PM
LXer: New WLAN Linux driver by Intel without proprietary appendage LXer Syndicated Linux News 1 02-13-2007 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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