LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2006, 12:03 AM   #1
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Rep: Reputation: 0
Wireless can not work


I'm using a PCMCIA wireless card, Motorola WN825G with Redhat 9. The driver bcmwl5.inf is loaded but I can't get anywhere. When I type in iwconfig from the command line, here is what I get.

[root@localhost brennan]# iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11g ESSIDff/any Nickname:"localhost"
Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption keyff
Power Managementff
Link Quality:100/100 Signal level:-57 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:95 Missed beacon:0

I found that the power and link light are on. Thus I think the card has been installed.

The router of my network uses DHCP. I use iwconfig to set the parameters. The key set has problem.

The response is:
Error for wireless request "Set Encode".

The other parameter can be set except this one.

Does any body have any useful information? Apprecriate!

Last edited by zhb402; 04-18-2006 at 12:08 AM.
 
Old 04-18-2006, 01:03 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
...for goodness sake, why are you using RH9 ...
You have a current kernel with wireless support etc compiled in and you are using ndiswrapper with that driver?

iwconfig wlan0 key open (or whatever you want) returns... what? (Please report the command you use as well as the results.)
 
Old 04-18-2006, 01:21 PM   #3
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
The kernel I used is 2.6.16.2 and I used ndiswrapper.
Since the router I set uses WEP, I did not use iwconfig wlan0 key open.
The ndiswrapper I also used the newest one.

Another question, from the system tools->network, why I can not see my wireless card? That means my card is not installed? However, the power and link lights are on?!
 
Old 04-18-2006, 05:39 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by zhb402
I did not use iwconfig wlan0 key open.
OK - but what I said was:
Quote:
Originally Posted by Simon
iwconfig wlan0 key open (or whatever you want) returns... what? (Please report the command you use as well as the results.)
I seem to be having trouble communicating these days - I don't know if it is me or what.

Network Device Control won't have a record for your card unless you configure it through the "add new card" dialog in the Internet Configuration Wizard. Before you do that, the driver must be installed properly.

The card is "installed" if lspci reports it.

One of the things about RH9 is you don't get to use yum ... which produces a flawless install of ndiswrapper.

Last edited by Simon Bridge; 04-18-2006 at 05:41 PM.
 
Old 04-18-2006, 08:14 PM   #5
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
[root@localhost root]# iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11g ESSIDff/any
Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption key: off
Power Management: off
Link Quality:0 Signal level:0 Noise level 0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:95 Missed beacon:0




[root@localhost root]# lspci
00:00.0 Host bridge: ..
...
02:00 Network controller: Broadcom Corporation: Unknown device 4320 (rev 03)


The last Network controller is I installed.
 
Old 04-18-2006, 08:16 PM   #6
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
[root@localhost root]#iwconfig wlan0 key open
Error for wireless request "Set Encode" (8B2A) :
SET failed on device waln0 ; Invalid argument.
 
Old 04-19-2006, 01:38 AM   #7
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Good - that helps me understand what's happening ... since this is definately the correct command, it suggests that wep is not enabled.

Try:
# iwconfig wlan0 key on
... just to see if that enables wep. Report result regardless, but if it don't work then proceed below...

Which distro are you using? (Edit: Whoops - my mistake: RedHat 9.)
Have you done ndiswrapper -m ?
If you su to become root here, do you su - ?

If yes to the last two:

http://www.linuxquestions.org/questi...d.php?t=393642
Quote:
Originally Posted by jonsmel-pf
WEP Resolved
I found out what it was, you have to have the wlan_wep module loaded to have wep keys. There were no instructions about this until I contacted the wireless card driver developer. madwifi.org
I'm seeing some weird things assiciated with this problem. For example:
http://www.linuxquestions.org/questi...d.php?t=337158
Quote:
Originally Posted by beyondreality
Since I am using WEP.
I try to use /sbin/iwconfig wlan0 key restricted ********** (********** is the 10 digit key)
got error info: Error for wirless request "Set Encode" (8B2A): SET failed on device wlan0; Operation not permitted.
Then in the next post:
Quote:
Originally Posted by beyondreality
after delete the loaded driver and reload the driver that problem is gone.
... presumably unloading and reloading the driver would do just as well, same with unloading and reloading ndiswrapper.

Last edited by Simon Bridge; 04-19-2006 at 08:37 PM.
 
Old 04-19-2006, 04:17 PM   #8
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I used shrike distro.
I did ndiswrapper -m. However, it still does not work.
I do all of these by root account.
 
Old 04-19-2006, 04:20 PM   #9
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Do you know how to unload the driver/ndiswrapper?
 
Old 04-19-2006, 08:52 PM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
I used shrike distro.
Yeah - my bad. Though technically "Red Hat Linux 9" is the distro - release 9 was codenamed "shrike".
Quote:
I do all of these by root account.
Generally this is "A Bad Thing" - however, it simplifies things here.
Quote:
Do you know how to unload the driver/ndiswrapper?
I would hope that you unload the module then make uninstall from the ndiswrapper directory.

However - I believe the next step is to lsmod | grep wep to see if the wep modules are loaded - modprobe wlan_wep if it isn't.

You may need to compile wep capability into your kernel.

You could also delete the (windows) driver - then reload it
Code:
ndiswrapper -i <driver>
ndiswrapper -l
modprobe ndiswrapper
depmod -a
dmesg | grep ndiswrapper
If none of this goes - I'd suggest reinstalling ndiswrapper and telling me all the steps you did.

Last edited by Simon Bridge; 04-19-2006 at 08:58 PM.
 
Old 04-20-2006, 09:06 PM   #11
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I used the following command, I found our network:
[root@localhost etc]iwlist wlan0 scan
wlan0 Scan completed:
Cell 01 -
...
Cell 02 - Address: 00:13:46:3F7E:8C
ESSID:"ournetwork"
...
Encryption key: on
...


The Cell 2 is our network

I recompile the kernel and added some key (TKIP)

However, I still can not ping anyone.

[root@localhost etc]ping 64.233.167.99
connect: Network is unreachable

[root@localhost etc]iwconfig wlan0 key on
Error for wireless request "Set Encode"

I want to install the mdwifi, however, during the installation, undecode commmand can not be found.

I will try to install undecode command.
 
Old 04-20-2006, 09:56 PM   #12
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
After I restart my computer,
I run
[root@localhost etc]iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Bad address.

I donot know why this happen. Last time, I even can see my network.
 
Old 04-20-2006, 10:27 PM   #13
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
After I added ifcfg-wlan0 in /etc/sysconfig/network-scripts
with some network information, the iwlist works.

However, I still can not ping anything.
Still this error "connect: Network is unreachable"
 
Old 04-21-2006, 03:58 AM   #14
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Have you allowed TCP/IP packets to/from the network through your firewall?

You seem to have ignored post #10 - how did you get your wlan working?
 
Old 04-21-2006, 05:45 PM   #15
zhb402
LQ Newbie
 
Registered: Apr 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I think the firewall is working, since I can use MS windows to connect the router.

Because I can not install wlan_wep, I have not try uninstall ndiswrapper and driver.

Do you know anywhere I can find undecode command? I google it, and have not find.

Thx
 
  


Reply

Tags
wep


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 won't work after reboot w/ Mepis& integrated Dell Wireless 1370 WLAN MiniPCI longboarder543 Linux - Wireless Networking 1 03-01-2006 06:14 PM
I can't get my wireless to work snowboard4fod Linux - Wireless Networking 3 02-08-2006 07:56 AM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
Can't get wireless to work jmeier Linux - Wireless Networking 2 01-12-2003 08:34 AM


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