LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   WPC11 wireless starts OK, dies, needs manual kickstart (https://www.linuxquestions.org/questions/linux-hardware-18/wpc11-wireless-starts-ok-dies-needs-manual-kickstart-190768/)

azl 06-07-2004 02:25 PM

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.


All times are GMT -5. The time now is 05:32 PM.