Hi,

I have the same wireless lan card and I have no problems with
my installation.

I am using gentoo-sources-2.6.22-r2 and activated the following
option in the kernel:

Networking  --->
   [*] Networking support
        Wireless  ---> 
            <M> Improved wireless configuration API
            --- Wireless extensions
            < > Generic IEEE 802.11 Networking Stack (mac80211)
            <M> Generic IEEE 802.11 Networking Stack
            [ ]   Enable full debugging output
            <M>   IEEE 802.11 WEP encryption (802.1x)
            <M>   IEEE 802.11i CCMP support
            <M>   IEEE 802.11i TKIP encryption
            < >   Software MAC add-on to the IEEE 802.11 networking stack

The following package I have installed:
[I] net-wireless/ipw3945
     Available versions:  1.0.5 1.2.0 [M](~)1.2.1 {debug kernel_linux}
     Installed versions:  1.2.0(02:30:04 19.08.2007)(-debug kernel_linux)
     Homepage:            http://ipw3945.sourceforge.net/
     Description:         Driver for the Intel PRO/Wireless 3945ABG miniPCI 
express adapter

[I] net-wireless/ipw3945-ucode
     Available versions:  1.13 1.14.2
     Installed versions:  1.14.2(10:58:38 05.02.2007)
     Homepage:            http://www.bughost.org/ipw3945/
     Description:         Microcode for the Intel PRO/Wireless 3945ABG miniPCI 
express adapter

[I] net-wireless/ipw3945d
     Available versions:  1.7.18 1.7.22-r4
     Installed versions:  1.7.22-r4(01:36:38 29.12.2006)
     Homepage:            http://www.bughost.org/ipw3945/
     Description:         Regulatory daemon for the Intel PRO/Wireless 3945ABG 
miniPCI express adapter

And ipw3945d is NOT started in any runlevel.

Few days ago, I had some problems while booting my system caused by udev. 
After updating udev to version 114 the problems are gone.

So, I don't load the kernel module explizit and I do not start the daemon 
automatically in one runlevel.

In my case, it seems to be done by udev.

I also have written a script to start/stop wireless lan manually.


I hope these information may help you.

Best regards
Christian

Am Mittwoch, 22. August 2007 schrieb Allan Gottlieb:
> At Tue, 21 Aug 2007 21:04:52 -0400 Colleen Beamer <[EMAIL PROTECTED]> 
wrote:
> > Hi everyone,
> >
> > I'm having a heck of a time trying to get wireless going on my laptop.
> > I've tried so many things, I'm a bit dizzy and don't know where I've
> > gone right or wrong.
> >
> > First things first.  lspci shows my wireless hardware as:
> >
> > 0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG
> > Network Connection (rev 02)
> >
> > I've tried to follow this guide:
> >
> > http://gentoo-wiki.com/HARDWARE_ipw3945
> >
> > When I get to the point where it tells me to do modprobe ipw3945, I get
> > a message (and since I added ipw3945d to the default runlevel, I also
> > get this same message on boot) about not being able to find:
> >
> > chown '/sys/bus/pci/drivers/ipw3945/00*/cmd' no such file or directory
> >
> > lsmod does not list the driver even though I emerged it and added it to
> > the /etc/modules.autoload.d/kernel-2.6 file
> >
> > I tried doing a google on the above error message and one of the hits
> > indicated that the person had the same problem, but at least had the
> > ipw3945 directory in /sys/bus/pci/drivers/  I don't even have that.
> >
> > I have no idea what is going on here, so any help would be appreciated.
> > And since I'm not really strong in networking, please lead me by the
> > nose.
>
> I have the same hardware and had the same problem.  I have used the
> following kludge to "fix" it.
>
> Add ipw3945 to /etc/modules.autoload/kernel-2.6
> and add ipw3945d to the boot runlevel
>
> The first attempt autoload ipd3945 (from modules.autoload) will cause
> an error, but the second load (from the deamon in the boot runlevel)
> succeeds.  When I pull the "erroneous" line from modules.autoload, the
> load from the boot runlevel fails.  (It seems to need two tries :-) ).
>
> I have been told that the new (unstable) baselayout fixes this but I
> can't confirm since I run stable.
>
> hth,
> allan

Here is my script to start/stop wireless lan manually:
#!/bin/bash

DRIVER=ipw3945
DAEMON=ipw3945d
DEVICE=face

if [[ -z $1 ]]; then
        echo "Usage: $0 [start|stop|static]"
        exit 0
fi
if [[ x$1x != xstartx && x$1x != xstopx && x$1x != xstaticx ]]; then
        echo "Usage: $0 [start|stop|static]"
        exit 0
fi

if [[ x$1x == xstopx ]]; then

        for i in `tail -n 1 /proc/net/wireless`; do
                DEVICE=${i/:/}
                break;
        done
        echo "Device: $DEVICE"

        if [[ $DEVICE != face ]]; then
                if [[ `cat /proc/net/dev | grep $DEVICE | wc -l` == 1 ]]; then
                        echo "Stopping device $DEVICE..."
                        /etc/init.d/net.$DEVICE stop
                fi

                sleep 1;

                if [[ `ps aux | grep $DAEMON | wc -l` != 1 ]]; then
                        echo "Stopping $DAEMON daemon..."
                        /etc/init.d/$DAEMON stop
                fi

                if [[ `grep $DRIVER /proc/modules | wc -l` != 0 ]]; then
                        echo "Unloading $DRIVER driver module..."
                        rmmod $DRIVER
                fi

        fi
fi

if [[ x$1x == xstartx ]]; then
        if [[ `grep $DRIVER /proc/modules | wc -l` == 0 ]]; then
                echo "Loading $DRIVER driver module..."
                modprobe $DRIVER
                echo -n "Waiting..."
                for (( i=5; i>0; i=i-1)); do
                        echo -n " $i ";
                        sleep 1;
                done
                echo
        fi

        if [[ `ps aux | grep $DAEMON | wc -l` == 1 ]]; then
                echo "Starting $DAEMON daemon..."
                /etc/init.d/$DAEMON start
        fi

        for i in `tail -n 1 /proc/net/wireless`; do
                DEVICE=${i/:/}
                break;
        done
        echo "Device: $DEVICE"

        ip_found=0
        if [[ $DEVICE != face ]]; then
                if [[ `ifconfig $DEVICE | grep $DEVICE | wc -l` != 1 ]]; then
                        /etc/init.d/net.$DEVICE start
                fi

                for i in `ifconfig $DEVICE | grep inet`; do
                        if [[ $i != inet ]]; then echo $i; fi
                        ip_found=1
                done

        fi

        if (( ip_found == 0 )); then
                if [[ `ps aux | grep $DEVICE | grep dhcpcd | wc -l` == 0 ]]; 
then
                        echo "Getting ip for device $DEVICE"
                        dhcpcd $DEVICE
                        for i in `ifconfig $DEVICE | grep inet`; do
                                if [[ $i != inet ]]; then echo $i; fi
                                ip_found=1
                        done
                fi
                if [[ `ifconfig $DEVICE | grep inet | wc -l` == 1 ]]; then
                        ip_found=1
                fi
        fi

        if (( ip_found == 0 )); then
                echo "Starting wireless lan failed..."
        else
                echo ok
        fi
fi

if [[ x$1x == xstaticx ]]; then
        for i in `tail -n 1 /proc/net/wireless`; do
                DEVICE=${i/:/}
                break;
        done
        echo "Device: $DEVICE"

        ip_found=0
        if [[ $DEVICE != face ]]; then
                if [[ `ifconfig $DEVICE | grep inet | wc -l` != 1 ]]; then
                        ifconfig $DEVICE inet 192.168.2.99
                fi
                for i in `ifconfig $DEVICE | grep inet`; do
                        if [[ $i != inet ]]; then echo $i; fi
                ip_found=1
                done
        fi

        if (( ip_found == 0 )); then
                echo "Starting wireless lan failed..."
        else
                route add default gw 192.168.2.1
                echo ok
        fi
fi

-- 
[EMAIL PROTECTED] mailing list

Reply via email to