LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 06-07-2004, 03:25 PM   #1
azl
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
WPC11 wireless starts OK, dies, needs manual kickstart


Hi all. Bought a D-Link RTL8180 equipped wireless PCMCIA card over the weekend. Got it up and running after a couple hours thanks to the forums here. Works great at home (no WEP at this time).

Here at work, it took a bit of work to get the WEP up. All is good now. However, while my script activates the link and the network interface, for some reason the interface collapses after 1-2 seconds of operation. I am then forced to ifconfig wlan0 up and route add default gw x.x.x.x to get back to where I was. The link will continue to work normally and indefinitely after that manual activation

I do not have this issue when connecting to my home, non-WEP'd router.

I tried sticking all kinds of sleep lines in, thinking it was just a timing bug. No change.

I'm on a fresh load of RH9 (2.4.20-8) and am using the latest RTL8180 driver off the realtek.tw site. All compiled fine AFAIK.

I'm thinking the issue is either my script, or some goof in the way the RTL8180 driver initializes the WEP.

The relevant part of my wlan script:

Quote:
work)
echo "Starting wireless interface for WaveLAN Network..."
echo "Preparing PCMCIA socket..."
cardctl eject
sleep 1
cardctl reset
sleep 1
cardctl insert
sleep 2
echo "Activating RTL8180 module..."
/sbin/insmod -f /lib/modules/2.4.20-8/kernel/drivers/net/wireless/rtl8180_24x.o
echo "Activating wireless link..."
/sbin/iwpriv wlan0 wlan_para networktype=infra
/sbin/iwpriv wlan0 wlan_para ssid2scan="WaveLAN Network"
/sbin/iwpriv wlan0 wlan_para ssid="WaveLAN Network"
/sbin/iwpriv wlan0 wlan_para authtype=opensystem
/sbin/iwpriv wlan0 wlan_para encmode=on
/sbin/iwpriv wlan0 wlan_para wepmode=wep40
/sbin/iwpriv wlan0 wlan_para wepkeyid=0
/sbin/iwpriv wlan0 wlan_para wepkey40_1=xxxxxxxxxx
/sbin/iwpriv wlan0 msglevel 1
/sbin/iwpriv wlan0 enable
sleep 1
echo "Activating network interface..."
/sbin/ifconfig wlan0 192.168.1.250 up
/sbin/route add default gw 192.168.1.254
echo "Interface activated."
echo "$(/bin/cat /proc/rtl8180/status)"
;;
So there you have it. I can live with it the way it works, but I'd like it to be more automatic.
 
  


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 Dies in XWindows WashURick Linux - Wireless Networking 4 11-03-2005 11:17 AM
bridge starts on boot but dies on logoff? doublez Linux - Networking 0 09-23-2005 12:35 PM
how to I have my box automaticall reconnect to my wireless network after it dies? JackSmith Linux - Newbie 1 06-12-2005 12:58 AM
My Wireless WPC11 Linksys =( Dumpsterm0uth Linux - Hardware 2 01-14-2003 07:38 PM
Linksys WPC11 Wireless in RH 8.0 - Need Help Slinger Linux - General 1 11-14-2002 03:59 PM


All times are GMT -5. The time now is 03:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration