You are not logged in.

#1 2008-03-20 12:24:22

Xerion
Member
Registered: 2008-03-20
Posts: 7

Cannot get iwl3945 to work

I recently installed Arch on my Vaio laptop and i am trying to get my wireless card to work with my home router that has a wpa encryption.

My card is up and running

dmesg | grep iwl

iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.1.17ks
iwl3945: Copyright(c) 2003-2007 Intel Corporation
iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
iwl3945: Tunable channels: 13 802.11bg, 23 802.11a channels
phy0: Selected rate control algorithm 'iwl-3945-rs'

ifconfig

wlan0     Link encap:Ethernet  HWaddr 00:18:DE:3F:47:47
          inet addr:10.10.10.4  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::218:deff:fe3f:4747/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33525 (32.7 Kb)  TX bytes:1744 (1.7 Kb)

wmaster0  Link encap:UNSPEC  HWaddr 00-18-DE-3F-47-47-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

And is properly assosiated it seems
iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"censored"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:14:censored
          Bit Rate=54 Mb/s   Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B
          Encryption key:censored
          Link Quality=95/100  Signal level=-34 dBm  Noise level=-40 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

WHile everything seems to be ok  ping www.google.com results to

connect: Network is unreachable

I am new to Arch so i dont know if what i have done is correct. I have not set anything at the rc.conf for now until i get the interace to work but then i will add to start by boot.

So i have made a file named wpa

nano /etc/network.d/wpa

CONNECTION="wireless"
INTERFACE=wlan0
IP="static"
IFOPTS="10.10.10.4 netmask 255.255.255.0 broadcast 10.10.10.255"
ESSID="censored"
SECURITY="wpa-config"
SCAN="yes"
TIMEOUT=20
WPA_CONF=/etc/wpa_supplicant.conf

nano /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
   key_mgmt=WPA-PSK
   pairwise=CCMP TKIP
   group=CCMP TKIP
   psk="censored"
   ssid="censored"
   scan_ssid=1
}

i get my connection up by netcfg2 wpa
The result is

:: wpa up                                                                                    [DONE]

Any help would be more than welcome !

Thank you in Advcance
//Xerion

Last edited by Xerion (2008-03-20 12:26:16)

Offline

#2 2008-03-20 13:40:36

Xerion
Member
Registered: 2008-03-20
Posts: 7

Re: Cannot get iwl3945 to work

I have not set the Gateway as it seems over to the config file so i tried something else....
As i like clean configuration files and not having files here and there i moved all the configuration over to the profile in /etc/network.d/

nano /etc/networkd.d/wpa

CONNECTION="wireless"
INTERFACE=wlan0

#Set Static IP
IP="static"
IFOPTS="10.10.10.4 netmask 255.255.255.0 broadcast 10.10.10.255"
GATEWAY="10.10.10.1"
DNS1="62.169.194.17"
DNS2="62.169.194.18"

#WIRELESS SETTINGS
ESSID="censored"
SECURITY="wpa"
KEY="censored"
IWOPTS="mode managed essid $ESSID key restricted $KEY"

#SCAN NETWORK BEFORE CONNECTING
SCAN=""YES
TIMEOUT=20

However the result is

netcfg2 wpa

:: wpa up                                                                                    [BUSY] SIOCADDRT: File exists
           - Adding gateway 10.10.10.1 failed                                                [FAIL]

Any idea ?

Last edited by Xerion (2008-03-20 13:41:47)

Offline

#3 2008-03-20 14:00:42

Xerion
Member
Registered: 2008-03-20
Posts: 7

Re: Cannot get iwl3945 to work

Uh weird things happen but i guess its due to my ignorance....
Seeing this result i said lets take out the default gateway from rc.conf maybe this causes the problem ....
So i did

ROUTES=(!gateway)

and then netcdfg2 wpa was loaded correctly....

:: wpa up                                                                                    [DONE]

However pinging to google said its an unknown host... so i added the gateway by hand

route add dfault gw 10.10.10.1

and then magically the wireless worked... However i have already set the gateway over to the wpa profile and normally i should not add right ?

Furthermore my eth0 wired connection now lost its default gateway hehe and i have to put it over there manually also to make it work ...


So this brings me to the above ....

a) If i set the gateway both to the rc.conf and the /etc/nework.d/wpa
netcfg2 wpa fails to load
wired eth0 works properly

b)If i set the gateway to the rc.conf only
netcfg2 wpa works but when i ping to google i get unknown host unless i set the default gateway...
wired eth0 works properly

c)remove the gateway from every rc.conf
as expcected i have to set for both connections the gateway
even though i have it provided to the /etc/network.d/wpa profile for the wlan0

Any idea ?

Last edited by Xerion (2008-03-20 14:13:46)

Offline

#4 2008-03-20 21:54:27

floke
Member
Registered: 2007-09-04
Posts: 266

Re: Cannot get iwl3945 to work

Here's the section from my rc.conf with this card

Make sure you have 'ipw3945' in your modules array and 'ipw3945d' in your daemons array.

lo="lo 127.0.0.1"
eth1="dhcp"
wlan_eth1="eth1 essid SpeedTouch0CFA3E"
wlan_eth1="eth1 essid SpeedTouch0CFA3E key [Mykey]"
WLAN_INTERFACES=(eth1)

INTERFACES=(lo eth1)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

--
Hope this helps

Offline

#5 2008-03-21 16:35:14

Xerion
Member
Registered: 2008-03-20
Posts: 7

Re: Cannot get iwl3945 to work

First of all, thank you for the response
I have some questions apart from the rc.conf file you posted !
What management tool do you use for your connection?
The rc.conf you posted is actually there only to bring up the interface by boot as far as i know.

My problem seems different and i think is focused on how to set up the gateway correctly for both connections.
But, You never know so this is why i am asking how you manage your wireless connection..maybe there is an easier way from what i am doing big_smile

Offline

#6 2008-03-21 21:17:36

floke
Member
Registered: 2007-09-04
Posts: 266

Re: Cannot get iwl3945 to work

To be honest I don't have to think about it since it comes up at boot - but wifi-radar is the best imo, so you could try that.
You could also use 'iwconfig' and 'ifconfig' commands in the terminal, which might provide you with useful info.
My rc.conf was really a trial-and-error job, so I'm not even really sure what much of it actually means!

Offline

Board footer

Powered by FluxBB