LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-29-2010, 11:14 AM   #1
kashifchughtai
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 0
SET failed on device wlan0 ; Invalid argument


hi guys i am new to linux and using RHEL5. not able to bring my wireless lan UP and getting the following error:

SET failed on device wlan0 ; Invalid argument

in dmesg i m getting : link not ready wlan0
Network card is :
Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)



any help ?
 
Old 09-29-2010, 01:15 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
That card is supported by the iwlwifi driver. See this link: http://intellinuxwireless.org/

Look in your package manager to see if you have it installed, or you need to install it. I run Mandirva, and there is ucode needed with Mandriva. I do not know how RedHat does things, you will need to look at their package manager.

You can also open a konsole and do a 'lsmod' and see it the driver is loaded. It may be. If that is the case, you will need to configure the adapter for your network connection. Manually that is done with the ifconfig and iwconfig commands. See the man pages. RH may have gui tools to do the same thing, sorry I can not be more specific, I don't use RH...
 
Old 10-01-2010, 05:19 AM   #3
kashifchughtai
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
still not able to make it up..though i have copied the firmware but not able to install the driver:

getting the follwing error:
when doing "make" for iwlwifi

_channel’ has no member named ‘flag’
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c: At top level:
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8514: error: unknown field ‘open’ specified in initializer
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8515: warning: initialization from incompatible pointer type
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8519: warning: initialization from incompatible pointer type
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8520: warning: initialization from incompatible pointer type
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_pci_probe’:
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8589: error: ‘IEEE80211_HW_WEP_INCLUDE_IV’ undeclared (first use in this function)
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8701: error: ‘MODE_IEEE80211G’ undeclared (first use in this function)
/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.c:8738: warning: too few arguments for format
make[3]: *** [/usr/src/iwlwifi-1.2.25/compatible/iwl3945-base.o] Error 1
make[2]: *** [_module_/usr/src/iwlwifi-1.2.25/compatible] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-155.el5-i686'
make: *** [modules] Error 2


i followed http://intellinuxwireless.org/ but not able to install the drivers..

any idea?

Last edited by kashifchughtai; 10-01-2010 at 05:25 AM.
 
Old 10-01-2010, 08:24 AM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
There are two sets of instructions, one for kernels 2.6.24 and above, and one for older than 2.6.24 kernels. What instructions are you using?

Your kernel, is it 2.6.24 and above or not?

The command uname -a will display the current running kernel level.
 
Old 10-01-2010, 10:16 AM   #5
kashifchughtai
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
kernal is 2.6.18-155 and i did get the drivers and ucode which says older than 2.6.24.

one more thing how can we check tht if drivers are already installed or not?

also when i do iwlist scan.....it shows me

**************************************************
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wmaster0 Interface doesn't support scanning.

Warning: Driver for device wlan0 recommend version 21 of Wireless Extension,
but has been compiled with version 20, therefore some driver features
may not be available...

wlan0 Scan completed :
Cell 01 - Address: 00:30:0A:F8:EA:92
ESSID:"mywifi"
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=38/100 Signal level=-86 dBm Noise level=-127 dBm
Encryption keyn
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Extra:tsf=000000020eb3f1e2

sit0 Interface doesn't support scanning.

***********************************************
does it mean that driver is already installed?

also do you know where can we see the list of available connections in RHEL?
 
Old 10-01-2010, 12:33 PM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
You must have some wireless driver installed, ( or its compiled in the kernel ) since you got a response from iwlist scan. It sees Cell 01 and read your MAC address.

If it is a loaded module, you can run the command 'lsmod' ( without the quotes ) that will list all the loaded modules. Post the output here.

Another thing you can try is to run the command 'ifconfig wlan0 up' ( no quotes ) and see what happens. That will try to activate wlan0. Post any errors you get. It is possible you will only have to configure the interface.
 
Old 10-01-2010, 12:43 PM   #7
kashifchughtai
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Actually i removed the dhcp and assignd the ipaddress in network-script. after that i was able to do
"ifconfig wlan0 up" and didnt get any error. i check in dmesg also, no error found.

also i did the configuration also:


% ifconfig wlan0 up
% iwlist wlan0 scan
% iwconfig wlan0 essid XXXXXX
% iwconfig wlan0 key mykey
% iwconfig -- was able to see myrouter

but after all these how can we connect ? if everything is fine?

thanks for the help.
 
Old 10-01-2010, 01:11 PM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
You will need DNS addresses and a default route set also. Some routers will pass back the DNS addresses.

The command 'netstat -r' will list the routes, and you should have a default route set, usually pointing at your router. Here is what it looks like on my system.

Quote:
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Have a look in /etc/resolv.conf to see if there are DNS addresses set. My system...
Quote:
cat resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 208.67.222.222
nameserver 208.67.220.220
If you want, you can edit the file and add the IP addresses I use. They are there for anyone to use. Or you can get your ISP's DNS addresses and use them.

Can you ping your router now?
 
  


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
SET failed on device wlan0 ; Invalid argument kashifchughtai Linux - Networking 2 03-22-2011 07:26 AM
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 03:16 AM
device-mapper: reload ioctl failed: Invalid argument sethusubbiah Linux - Newbie 1 11-13-2010 12:18 PM
"SET failed on device wlan0." What does this mean? tbbmw Linux - Wireless Networking 2 08-01-2008 12:55 AM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration