LinuxQuestions.org
Register a domain and help support LQ
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 10-05-2003, 07:59 PM   #286
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57

As far as I can tell, this driver isn't really capable of scanning once it finds an essid, it latches onto it, that's all... you're locked in. A lot of the driver in this regard limits the functionality of the card below the 802.11b specification.

Cheers,

Finegan
 
Old 10-06-2003, 04:02 PM   #287
jamescov
LQ Newbie
 
Registered: Aug 2003
Location: Texas USA
Distribution: SuSE 9.1 (Download Ed.)
Posts: 27

Rep: Reputation: 15
How to insert wlanup & wlan down into system startup

Hello everyone,

After two days I got my WPC11 card working and also got the wlan up and wlandown working. Now I need to know how make wlanup run at system startup and wlandown run at system shutdown. Manythanks for any help
 
Old 10-06-2003, 04:11 PM   #288
tkshiv
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Hi
Can you please let us know how to change the SSID,as it takes aptest2 by default. I don;t know from where?
 
Old 10-06-2003, 04:37 PM   #289
jamescov
LQ Newbie
 
Registered: Aug 2003
Location: Texas USA
Distribution: SuSE 9.1 (Download Ed.)
Posts: 27

Rep: Reputation: 15
Here is a copy of my wlanup file:

#Load module
cd /home/james/wlan/
../insmod -f rtl8180_24x.o

#Set SSID
/home/james/wlan/iwpriv wlan0 wlan_para ssid2scan=linksys
/home/james/wlan/iwpriv wlan0 wlan_para networktype=infra
/home/james/wlan/iwpriv wlan0 wlan_para encmode=wep
/home/james/wlan/iwpriv wlan0 wlan_para authtype=sharedkey
/home/james/wlan/iwpriv wlan0 wlan_para wepmode=wep40
/home/james/wlan/iwpriv wlan0 wlan_para wepdkeyid=0
/home/james/wlan/iwpriv wlan0 wlan_para wepkey40_1= (your Key)
/home/james/wlan/iwpriv wlan0 wlan_para wepkey40_2=(your Key)
/home/james/wlan/iwpriv wlan0 wlan_para wepkey40_3=(your Key)
/home/james/wlan/iwpriv wlan0 wlan_para wepkey40_4=(your Key)




#Enable wireless lan driver
/home/james/wlan/iwpriv wlan0 enable


#Configure wlan0 IP address
/home/james/wlan/dhcpcd wlan0
 
Old 10-06-2003, 10:05 PM   #290
Cimmerian
Member
 
Registered: Sep 2003
Location: Trondheim, Norway
Distribution: Slackware10 + Dropline Gnome
Posts: 47

Rep: Reputation: 15
Btw, you shouldn't have to load the driver manually if you have a system with hotplug. If i place the module in the /lib/modules/<kernel_ver>/ somewhere and depmod -a, the module loads automatically whenever I insert the card. Still, doesn't hurt to make sure it get's loaded...
 
Old 10-07-2003, 04:27 AM   #291
jamescov
LQ Newbie
 
Registered: Aug 2003
Location: Texas USA
Distribution: SuSE 9.1 (Download Ed.)
Posts: 27

Rep: Reputation: 15
Hi everyone:

From reading this forum I have noticed that many people including myself, have had problems with the WPC11 card. From what i've read, everyone says you can't shutdown the computer without dsabling the card frist. This is true. What I figured is how to disable the driver during shutdown before the system has a chance freeze. I have only tested this with SUSE 8.2. If you make the following modacations to the file:/etc/init.d/pcmcia, it should resolve this issue.

1. Put the following below "### END INIT INFO"

#Disable wireless lan driver
/sbin/iwpriv wlan0 disable

#Shut down wlan0 net interface
cd /sbin/
./ifconfig wlan0 down
cd /var/run
rm dhcpcd-wlan0.pid

#Unload module
rmmod rtl8180_24x


Now put the following after "esac".


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

#Set SSID
/sbin/iwpriv wlan0 wlan_para ssid2scan=(put network id here)
/sbin/iwpriv wlan0 wlan_para networktype=infra
/sbin/iwpriv wlan0 wlan_para encmode=wep
/sbin/iwpriv wlan0 wlan_para authtype=sharedkey
/sbin/iwpriv wlan0 wlan_para wepmode=wep40
/sbin/wlan/iwpriv wlan0 wlan_para wepdkeyid=0
/sbin/wlan/iwpriv wlan0 wlan_para wepkey40_1=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_2=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_3=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_4=(put key here)




#Enable wireless lan driver
/sbin/wlan/iwpriv wlan0 enable


#Configure wlan0 IP address
/sbin/dhcpcd wlan0

rc_exit
 
Old 10-08-2003, 03:35 PM   #292
wacek79
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Question TX NORMAL Descriptor unavailable!

hello, I tried to install that 8180L card on my mitac 7321 laptop, with redhat 9 with a 2.4.21 kernel from kernel.org (the stock kernel doesn't even find the card, nothing listed with cardctl ident, nor with lspci) and i can compile the newest driver from the realtek homepage, but my laptop doesn't assign an irq for the card, not in normal mode, and not in pci=biosirq mode, when i try to enable the driver, it comes as far as to assign an irq, and then this message appears: TX NORMAL Descriptor unavailable! and repeats all the time, until i run the wlandown script.
the card seems to work, bacause the link and the tx/rx leds blink, but after a few seconds just the link led blinks a few times a minute. a tried almost everything in this post, but nothing helped

thx for an answer in advance

wacek
 
Old 10-08-2003, 03:46 PM   #293
clean0r
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Wink

hello,
my laptop does the same ...
i simply compiled the actual driver from realtek.com.tw
started the wlanup script īthat was included in the driver package and the interface was up

i had the same prob a few times but somewhen some how it was gone..

i use it on redhat 9 ... on SUSE 8.2 i had no luck until now..

Thiemo ...

Last edited by clean0r; 10-08-2003 at 03:49 PM.
 
Old 10-09-2003, 12:24 AM   #294
wacek79
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
to cleanOr: have you done something special that it is gone, because i tried everything and it is still there??
 
Old 10-09-2003, 07:48 AM   #295
Zealous
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
well, i tried the 2.4.20 kernel instead of the 2.4.18-4, recompiled the open part of the realtek driver and it works. No problems.

Still no response from realtek on opensourcing the rest of the driver.

My only problem is the laptop dies when it goes into powersaver, but I guess that can be overcome.
 
Old 10-09-2003, 10:35 PM   #296
argh
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
can't even compile the f$%!&n driver

Hi. I've been checking back with this thread for 2 months since I made the stupid decision to purchase the WPC11 ver 4 card from hell. I'm running Redhat 9, kernel 2.4.20-20.9 with gcc 3.2.2.
I downloaded the Linux drivers, editted the Makefile so that KERNELVERSION is correct and INCLUDEPATH= /usr/include (this seems to be where the header files it wants are located - can someone confirm this?). Here's what I get (sorry for the length):

gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -c -o r8180_pci_init.o r8180_pci_init.c
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from r8180_pci_init.c:26:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from r8180_pci_init.c:26:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from r8180_pci_init.c:26:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from r8180_pci_init.c:26:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from r8180_pci_init.c:26:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from r8180_pci_init.c:32:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from r8180_pci_init.c:36:
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:70: parse error before "atomic_t"
/usr/include/linux/proc_fs.h:73: parse error before '}' token
/usr/include/linux/proc_fs.h:203: parse error before "void"
In file included from r8180_pci_init.c:40:
r8180_type.h:142: warning: redefinition of `timer_t'
/usr/include/linux/timer.h:42: warning: `timer_t' previously declared here
r8180_pci_init.c:58: elements of array `rtl8180_pci_id_tbl' have incomplete type
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: `PCI_ANY_ID' undeclared here (not in a function)
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: `PCI_ANY_ID' undeclared here (not in a function)
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:59: warning: excess elements in struct initializer
r8180_pci_init.c:59: warning: (near initialization for `rtl8180_pci_id_tbl[0]')
r8180_pci_init.c:60: warning: excess elements in struct initializer
r8180_pci_init.c:60: warning: (near initialization for `rtl8180_pci_id_tbl[1]')
r8180_pci_init.c:72: variable `rtl8180_pci_driver' has initializer but incomplete type
r8180_pci_init.c:73: unknown field `name' specified in initializer
r8180_pci_init.c:73: warning: excess elements in struct initializer
r8180_pci_init.c:73: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:74: unknown field `id_table' specified in initializer
r8180_pci_init.c:74: warning: excess elements in struct initializer
r8180_pci_init.c:74: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:75: unknown field `probe' specified in initializer
r8180_pci_init.c:75: warning: excess elements in struct initializer
r8180_pci_init.c:75: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:76: unknown field `remove' specified in initializer
r8180_pci_init.c:76: warning: excess elements in struct initializer
r8180_pci_init.c:76: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:77: unknown field `suspend' specified in initializer
r8180_pci_init.c:77: warning: excess elements in struct initializer
r8180_pci_init.c:77: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:78: unknown field `resume' specified in initializer
r8180_pci_init.c:78: warning: excess elements in struct initializer
r8180_pci_init.c:78: warning: (near initialization for `rtl8180_pci_driver')
r8180_pci_init.c:84: sizeof applied to an incomplete type
r8180_pci_init.c: In function `rtl8180_pci_probe':
r8180_pci_init.c:105: warning: implicit declaration of function `pci_enable_device'
r8180_pci_init.c:106: warning: implicit declaration of function `printk'
r8180_pci_init.c:107: `EIO' undeclared (first use in this function)
r8180_pci_init.c:107: (Each undeclared identifier is reported only once
r8180_pci_init.c:107: for each function it appears in.)
r8180_pci_init.c:113: warning: implicit declaration of function `pci_set_master'
r8180_pci_init.c:132: warning: implicit declaration of function `pci_set_drvdata'
r8180_pci_init.c:141: warning: implicit declaration of function `pci_resource_start'
r8180_pci_init.c:142: warning: implicit declaration of function `pci_resource_len'
r8180_pci_init.c:143: warning: implicit declaration of function `pci_resource_flags'
r8180_pci_init.c:146: dereferencing pointer to incomplete type
r8180_pci_init.c:150: dereferencing pointer to incomplete type
r8180_pci_init.c:160: dereferencing pointer to incomplete type
r8180_pci_init.c:198: dereferencing pointer to incomplete type
r8180_pci_init.c:198: dereferencing pointer to incomplete type
r8180_pci_init.c:201: dereferencing pointer to incomplete type
r8180_pci_init.c:202: dereferencing pointer to incomplete type
r8180_pci_init.c:203: dereferencing pointer to incomplete type
r8180_pci_init.c:204: dereferencing pointer to incomplete type
r8180_pci_init.c:206: dereferencing pointer to incomplete type
r8180_pci_init.c:207: dereferencing pointer to incomplete type
r8180_pci_init.c:213: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:241: dereferencing pointer to incomplete type
r8180_pci_init.c:257: dereferencing pointer to incomplete type
r8180_pci_init.c:258: dereferencing pointer to incomplete type
r8180_pci_init.c:259: dereferencing pointer to incomplete type
r8180_pci_init.c:273: warning: implicit declaration of function `kfree'
r8180_pci_init.c:279: `ENOMEM' undeclared (first use in this function)
r8180_pci_init.c: In function `rtl8180_pci_remove':
r8180_pci_init.c:295: warning: implicit declaration of function `pci_get_drvdata'
r8180_pci_init.c:295: warning: initialization makes pointer from integer without a cast
r8180_pci_init.c:314: dereferencing pointer to incomplete type
r8180_pci_init.c:315: dereferencing pointer to incomplete type
r8180_pci_init.c:316: dereferencing pointer to incomplete type
r8180_pci_init.c: In function `rtl8180_pci_module_init':
r8180_pci_init.c:363: `KERN_INFO' undeclared (first use in this function)
r8180_pci_init.c:363: parse error before string constant
r8180_pci_init.c:365: warning: implicit declaration of function `pci_register_driver'
r8180_pci_init.c:367: warning: implicit declaration of function `pci_unregister_driver'
r8180_pci_init.c:368: `ENODEV' undeclared (first use in this function)
r8180_pci_init.c: In function `rtl8180_pci_module_exit':
r8180_pci_init.c:384: `KERN_INFO' undeclared (first use in this function)
r8180_pci_init.c:384: parse error before string constant
r8180_pci_init.c: At top level:
r8180_pci_init.c:72: storage size of `rtl8180_pci_driver' isn't known
make: *** [r8180_pci_init.o] Error 1

Given how unhappy make is, I'm probably doing something that's obviously wrong, but I haven't been able to figure it out. Any help is appreciated.
 
Old 10-10-2003, 08:25 PM   #297
Cimmerian
Member
 
Registered: Sep 2003
Location: Trondheim, Norway
Distribution: Slackware10 + Dropline Gnome
Posts: 47

Rep: Reputation: 15
I believe you shouldn't be using the kernel headers in /usr/include, but the kernel headers for your running kernel, usually located in /usr/src/linux(-2.4?)/include. The headers in /usr/include aren't the same I think, but used to compile ordinary programs. Anyway, it should work using the includes from the real kernel tree, that's what I used and it is working like a "charm".

Btw, has anyone been in contact with the author of the driver? I believe I read something about someone having some contact by email. I was thinking about sending an email to the address in the code to hear if there is any possibilty to get support for some nice things like scanning for ssid's and see the signal strength in a standard way to support neat guis
 
Old 10-10-2003, 08:37 PM   #298
Zealous
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
or how about rewriting it so it works properly with iwconfig and the wireless extensions?
 
Old 10-10-2003, 08:56 PM   #299
argh
LQ Newbie
 
Registered: Oct 2003
Posts: 19

Rep: Reputation: 0
Cimmerian,

Thanks, but ... my /usr/src has no linux-?-? subdirectory. It's got a "redhat" directory, which contains no .h files. Doing a "locate" fails to turn up the required headers anywhere but in /usr/include. Any Redhat experts know what's going on? I let the update agent update the kernel a few times since doing a vanilla Redhat 9 install. Perhaps Redhat has decided that I don't need those pesky headers anymore?
 
Old 10-11-2003, 12:18 AM   #300
Cimmerian
Member
 
Registered: Sep 2003
Location: Trondheim, Norway
Distribution: Slackware10 + Dropline Gnome
Posts: 47

Rep: Reputation: 15
You probably have to install some kernel-source rpm for the kernel you are currently running. The source is really only needed when you need to compile new drivers to the kernel or recompile the kernel itself(which many people never need or do), and redhat probably thinks it takes too much space to be part of a standard install.
 
  


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
Linksys WPC11 version 4 aover25 Linux - Wireless Networking 5 02-12-2006 10:01 PM
WPC11 version 3 chiatello Linux - Networking 0 10-28-2003 08:32 PM
Linksys WPC11 version 4 kronixx Linux - Networking 1 06-07-2003 09:25 PM
WPC11 Version 4 StarCat Linux - Networking 1 05-03-2003 11:13 AM
Linksys WPC11 Version 3 haqtiq Linux - Networking 3 01-15-2003 10:33 PM


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