Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless-LAN pcmcia card (NetGear WG511GR) with kernel 2.6.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chrroessner
Apprentice
Apprentice


Joined: 02 Dec 2003
Posts: 156
Location: Germany

PostPosted: Fri Dec 19, 2003 11:16 pm    Post subject: Wireless-LAN pcmcia card (NetGear WG511GR) with kernel 2.6.0 Reply with quote

Hi,

I am using the prism54 kernel module to get my wireless lan card working. After I have written a short wlan.sh script, which configures my card, I would like to know, if there is a way to get it work automatically, when the card is plugged or unplugged.

I do not use pcmcia-cs.

I found out something is looking for /etc/init.d/net.eth1. hotplug? I tried to customize net.eth1, but with no success.

My question:
My script does ifconfig eth1 up and the iwconfig-stuff, followed by dhcpcd eth1. What do I have to put in /etc/conf.d/net, to get the stuff working with the normal rc-scripts? Do I have to add the iwconfig calls to net.eth1?

What is your experience with wireless lan based on kernel-support?

My wlan.sh:
Code:

#!/bin/bash

case "$1" in
        start)
                ifconfig eth1 up
                sleep 2
                iwconfig eth1 ap XX:XX:XX:XX:XX:XX
                iwconfig eth1 essid My_Essid
                iwconfig eth1 freq 2.462G
                iwconfig eth1 channel 11
                iwconfig eth1 enc XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX
                dhcpcd eth1
                ;;
        stop)
                dhcpcd -z eth1 && ifconfig eth1 down
                ;;
        *)
                echo "Usage $0: {start|stop}"
                ;;
esac



Hopefully there is an automatic variant.

Regards
Christian
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sat Dec 20, 2003 11:49 am    Post subject: Reply with quote

Why don't you just use pcmica-cs? It works with 2.6. In case you had a compiling problem, do the following:
Code:
cd /usr/src
rm linux
ln -s linux-2.6.0-gentoo-linux
ACCEPT_KEYWORDS="~x86" emerge pcmcia-cs

Symlinking a 2.6er kernel source should prevent pcmcia-cs to try to install its own drivers, it will install tools only.
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sat Dec 20, 2003 1:27 pm    Post subject: Reply with quote

andy_ypsilon: the prism54 cards are cardbus, so they can't use pcmcia-cs.
(they look like pci cards to the system).

chrroessner: I have a prism54 card, as eth0. the hotplug system automaticly runs "/etc/init.d/net.eth0 start" when the card is inserted, (I dont run /etc/init.d/hotplug) .does this not happen to you with eth1? mabey you need to add a
Code:
alias eth1 prism54
to /etc/modules.d/aliases?
but anyway, all I do is add
Code:
/usr/sbin/iwconfig eth0 enc s:default_key_1
/usr/sbin/iwconfig eth0 essid my_essid
to around line 45 in /etc/init.d/net.eth0 and it works perfectly, the rest of that iwconfig you are using is most likely uneccesary. (it is autodetected)

hth,
sa
Back to top
View user's profile Send private message
chrroessner
Apprentice
Apprentice


Joined: 02 Dec 2003
Posts: 156
Location: Germany

PostPosted: Sat Dec 20, 2003 6:34 pm    Post subject: Reply with quote

Okay, I will try it, but one question is left: What do you put into /etc/conf.d/net?

Is it true, the eth-device needs a ifconfig up call before using iwconfig?
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sun Dec 21, 2003 4:04 pm    Post subject: Reply with quote

before, I had a static IP in /etc/conf.d/net. but I just tried using dhcp. it doesnt work too well. (it brings up the eth0, but It doesnt get assigned an ip address) mabey I need to add a sleep after the iwconfig commands....

I remember some discussion related to your iwconfg/ifconfig question http://prism54.org/pipermail/prism54-devel/2003-November/000088.html Im not sure if the driver is completeley fixed...

your script actually seems like a good idea to me, mabey make it a dependancy of net.eth1. and probably remove the dhcp stuff, because I think the net.eth1 script calls dhcp...

also I should mention, I found some related bug reports...:
https://bugs.gentoo.org/show_bug.cgi?id=16649
https://bugs.gentoo.org/show_bug.cgi?id=24546
https://bugs.gentoo.org/show_bug.cgi?id=25742


hth,
sa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum