LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   WPC11 Version 4! (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wpc11-version-4-a-61832/)

icebergfella 08-08-2003 09:01 AM

hi fingan
I to have the WPC11 v4 card but IM a newb and I hae now idea how to recompile the driver do yo u think you can post up the howto to do so

finegan 08-08-2003 04:00 PM

jwspring,

The goofiest thing about this card is its odd recipe like quality of when and in what order you drop in iwpriv commands, so far no one (I think, apologies if I'm wrong), has posted up a line by line script that covers WEP also, do you mind posting your whole script?

icebergfella,

I've never been a big fan of writing how-tos, aside from really big ones such as the kernel compiling how-to or the RAID how-to or things of that order, they become dated fast. We're trying to sort that here by writing more generalized ones under the Linuxanswers section, and this realtek chipset is especially odd as realtek keeps changing around the available downloads...

Basically... here goes:

Install your kernel source if it isn't already there, look in /usr/src for a directory called linux or linux-2.4 (the later being RH's favorite twink).

Now download the newest package that seems to have something to do with your distro... the rh80 package seems to work best, unzip it with:

unzip rtl8180_linuxdrv_v12_rh80.zip

cd release (I think that's the directory its in, I don't have Morphy infront of me as I'm in California...)

If you don't have a link to your kernel source that looks like:

/usr/src/linux-2.4

Make one with the command:

ln -s /usr/src/linux-2.4 /usr/src/linux

Then just type:

make

That should create a module called:

rtl8180_24x.o

insmod rtl8180_24x.o

if it barks about symboling errors or something:

insmod -f rtl8180_24x.o

Now, check "lsmod" and see if its stuck "initializing", that'll be in the far right hand column. If it is... well, you can try the other source packages, but most likely we have to wait on a better version. Also, if it gets hung up in initializing, reboot fast... its on a memory pig loop that'll crash your machine shortly... don't worry, it won't get reloaded in reboot so just leave the card in.

Then apply one of the other scripts in this thread to get it to work with your wireless LAN.

This thing is so beta its really alpha, works great once you get it to load properly, but that's half the battle.

Cheers,

Finegan

icebergfella 08-08-2003 08:09 PM

thanks for the how to but when i .wlan my system frezzes with the cap and scrol light blinking along with the card link light. Iset up my script just like the ones in the thread. Then I decide to do add the route gateway command and it comes back and say No such device or somethng like that.But it shows up under ifconfig, but with out an inet address

I have a dell inspiron 5100 running mdk9.1

icebergfella 08-08-2003 08:25 PM

this probably doesnt mean much but when I put the card into the pmcia slot I dont get any sort of beeps even though its seen under gui Harddrake but with an unknown module

PranksterO 08-08-2003 09:12 PM

I have a netgear ma521 which uses the realtek chips. I have got the card to work but only if I change the channel from 6 to 1 on my linksys router. I have tried putting in "/sbin/iwpriv wlan0 wlan_para channel=6" in my wlanup script but it only connects to channel 1. How can I get my card to connect to 6 instead of 1? What is the default channel that most AP's use and how can I find out this setting if I dont have access to the AP? Is there any way I can set this to connect to the open channel?

I am setting this up so when I go to college in a few weeks I can access the AP's they have set up. The only info they give me is the WEP keys. Will I need any other info to get the card to work on the network? Under my ifcfg-wlan0 file I have a netmask and gateway ip. They are set to 255.255.255.0 and 192.168.1.1. Will these ip's be the same or will I have to change them there? If i need to change them how can I find them out? They dont give that info out on their web page. Thanks!

Merlin-TC 08-09-2003 06:42 AM

I have been trying it for days but no success.
It seems that my card isn't properly recognized.
cardctrl ident finds my card but when I try to load the rtl8180_24x.o module I get an error and I think it is because no IRQ is assigned to it.

The card driver tries to load it at irq0 and that's not gonna work

If anyone can help me plzzz do so.

EDIT: I got the card running now...somehow at least
It still tells me that I cannot assign an IRQ but I can start the wlanup script shipped with the drivers from the realtek site.
And after I started it the Tx/Rx light is blinking but I cannot get any connection to the router

Any suggestions?

Thank you.

tychob 08-09-2003 10:32 AM

wlanup script
 
[QUOTE]Originally posted by finegan

so far no one (I think, apologies if I'm wrong), has posted up a line by line script that covers WEP also, do you mind posting your whole script?

-----------------------------------------------------------------------------

#Load module
/sbin/insmod /path/to/rtl8180_24x.o

#Set SSID and WEP
/sbin/iwpriv wlan0 wlan_para ssid=YourNetNameHere
/sbin/iwpriv wlan0 wlan_para ssid2scan=YourNetNameHere
/sbin/iwpriv wlan0 wlan_para networktype=infra
/sbin/iwpriv wlan0 wlan_para authtype=sharedkey
/sbin/iwpriv wlan0 wlan_para wepmode=wep40
/sbin/iwpriv wlan0 wlan_para wepkeyid=0
/sbin/iwpriv wlan0 wlan_para wepkey40_1=aaaaaaaaaa
/sbin/iwpriv wlan0 wlan_para wepkey40_2=bbbbbbbbbb
/sbin/iwpriv wlan0 wlan_para wepkey40_3=cccccccccc
/sbin/iwpriv wlan0 wlan_para wepkey40_4=dddddddddd
/sbin/iwpriv wlan0 wlan_para channel=6

#Enable card driver
/sbin/iwpriv wlan0 enable

#Start DHCP
/bin/sleep 10
/sbin/dhclient wlan0

-------------------------------------------------------------------------------

Naturally, you would need to put your own keys in place of the aaaaaaaaaa, bbbbbbbbbb, etc. Works fine here.

Paul

PranksterO 08-09-2003 02:22 PM

Well I finally got it to connect to channel 6. I corrected it by placing the line in another location. Just like in the script above. Is there any way that this can be autodetected?

Merlin-TC 08-09-2003 06:10 PM

I am still having no luck :(

Can anyone tell me if this config is ok and "should" work?

#Load module
/sbin/insmod /lib/modules/2.4.22_pre2-gss/net/rtl8180_24x.o

#Set SSID and WEP
iwpriv wlan0 wlan_para ssid=Wireless
iwpriv wlan0 wlan_para ssid2scan=Wireless
iwpriv wlan0 wlan_para networktype=infra
iwpriv wlan0 wlan_para authtype=sharedkey
iwpriv wlan0 wlan_para wepmode=off
iwpriv wlan0 wlan_para channel=6

#Enable card driver
iwpriv wlan0 enable

ifconfig wlan0 192.168.1.5 netmask 255.255.255.0 up

It always sets the channel to 0 too :(
Plz help :cry:

PranksterO 08-09-2003 08:51 PM

Heres my wlanup script and ifcfg-wlan0 file. It works for me. I am using 40bit WEP and DHCP. Hope it helps.

wlanup:

#Load module
/sbin/insmod -f rtl8180_24x.o

#ssid settings
/sbin/iwpriv wlan0 wlan_para ssid=philsys
/sbin/iwpriv wlan0 wlan_para ssid2scan=philsys
/sbin/iwpriv wlan0 wlan_para networktype=infra

#Dont know
/sbin/iwpriv wlan0 wlan_para authtype=sharedkey
#WEP Mode
/sbin/iwpriv wlan0 wlan_para wepmode=wep40
#Driver is 0-3, AP are 1-4
#0=1, 1=2, 2=3, 3=4
/sbin/iwpriv wlan0 wlan_para wepkeyid=0

#Place the 40bit WEP Key here
/sbin/iwpriv wlan0 wlan_para wepkey40_1=F0E1D2C3B4

#Channel
/sbin/iwpriv wlan0 wlan_para channel=6

#Enable wireless lan driver
/sbin/iwpriv wlan0 enable

#Start DHCP
/bin/sleep 10s
/sbin/dhclient wlan0

#Static IP and Gateway
#Configure wlan0 IP address
#/sbin/ifconfig wlan0 192.168.1.6
#route add default gw 192.168.1.1
echo "$(/sbin/ifconfig wlan0)"

ifcfg-wlan0:

DEVICE=wlan0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BOOTPROTO=dhcp
PEERDNS=yes
ONBOOT=no

Merlin-TC 08-10-2003 03:39 AM

Ok, my wlanup script looks like this now:

#Load module
/sbin/insmod -f rtl8180_24x.o

#ssid settings
iwpriv wlan0 wlan_para ssid=wireless
iwpriv wlan0 wlan_para ssid2scan=wireless
iwpriv wlan0 wlan_para networktype=infra

#Dont know
iwpriv wlan0 wlan_para authtype=sharedkey
#WEP Mode
iwpriv wlan0 wlan_para wepmode=wep40
#Driver is 0-3, AP are 1-4
#0=1, 1=2, 2=3, 3=4
iwpriv wlan0 wlan_para wepkeyid=0

#Place the 40bit WEP Key here
iwpriv wlan0 wlan_para wepkey40_1=F0E1D2C3B4

#Channel
iwpriv wlan0 wlan_para channel=6

#Enable wireless lan driver
iwpriv wlan0 enable

#Start DHCP
#/bin/sleep 10s
#/sbin/dhclient wlan0

#Static IP and Gateway
#Configure wlan0 IP address
ifconfig wlan0 192.168.1.6
route add default gw 192.168.1.1
echo "$(/sbin/ifconfig wlan0)"

I configured my router to match the settings in here but still no luck....
The Rx/Tx and Link lights keep flashing on the card but thats it.
It also says that it couldn't join any channel and that the key exchange failed when I do a dmesg.
Here is so more output:
Aug 10 10:15:07 [kernel] cs: cb_alloc(bus 1): vendor 0x10ec, device 0x8180
Aug 10 10:15:07 [kernel] RTL8180: wlan driver loaded. ioaddr=0x4000, irq=0, MAC_addr=0:50:fc:d0:d1:ff
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [ssid]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [ssid2scan]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [networktype]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [authtype]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [wepmode]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [wepkeyid]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [wepkey40_1]
Aug 10 10:15:10 [kernel] RTL8180: Use RTL private command [channel]
Aug 10 10:15:10 [kernel] RTL8180: ------ Enable wlan driver ------
Aug 10 10:15:10 [kernel] RTL8180: PHILIPS_Config() - Analog mode
Aug 10 10:15:10 [kernel] RTL8180: ENABLE_RTL_DCST
Aug 10 10:15:10 [kernel] RTL8180: Scan PHY channel number = 1
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 2
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 3
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 4
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 5
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 6
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 7
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 8
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 9
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 10
Aug 10 10:15:11 [kernel] RTL8180: Scan PHY channel number = 11
Aug 10 10:15:11 [kernel] RTL8180: Neither joining a BSS or starting an IBSS

I am really out of ideas now
:scratch:

PranksterO 08-10-2003 04:54 AM

Have you tried changing the channel on the AP? I was having trouble with this at first. My router was set to channel 6 but the card wasnt seeing it. I finally changed it to 1 and it worked. I later got it to work with 6 by placing the line in the config in another place. The place in the file where I had the line wasnt working.

Does it work without WEP? I think your problem is either in the channel setting or WEP if the light on the card is flashing. Try turing off WEP first and then bringing up the card. If that dosent work try changing the channel. Hope it helps!

Merlin-TC 08-10-2003 05:28 AM

I tried switching through all the channels now and also disabled WEP but nothing changes...the lights are blinking but that's it....

Is there anything I am missing? If you need more information about my configuration and config files plz tell me.
Thanks for your help.

PranksterO 08-10-2003 02:08 PM

After you run your wlanup script does it sucessfully assign you that ip address? ie, if you do a ifconfig what does it say?

Merlin-TC 08-10-2003 02:49 PM

Yes it assigns the IP address and ifconfig shows that wlan0 is up and running.
But I guess it is a dead because whatever I do there are never sent or received packets.


All times are GMT -5. The time now is 03:53 AM.