LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [Solved]Troubles setting up WPA wireless in 13.37 (https://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5Dtroubles-setting-up-wpa-wireless-in-13-37-a-881930/)

Snailatrice 05-21-2011 06:57 AM

[Solved]Troubles setting up WPA wireless in 13.37
 
Hello, I am trying to set a wireless connection up.
I am quite new to slackware and linux altogether so I might be doing something stupid.
I have uncommented the ath9k module for my card.
I have configured rc.inet1.conf :
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_KEEPRESOLV[4]="yes"
DHCP_KEEPNTP[4]="yes"
DHCP_KEEPGW[4]="yes"
WLAN_ESSID[4]="Livebox-f634"
WLAN_MODE[4]=Managed
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="auto"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"

and wpa_supplicant.conf :
network={
scan_ssid=0
ssid="Livebox-f634"
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=080e43d5bde************************************28526f59f
priority=10
}

wlan0_restart yields

Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
dhcpcd[3255]: version 5.2.11 starting
dhcpcd[3255]: wlan0: broadcasting for a lease
dhcpcd[3255]: wlan0: offered ***.***.1.14 from ***.***.1.1
dhcpcd[3255]: wlan0: acknowledged ***.***.1.14 from ***.***.1.1
dhcpcd[3255]: wlan0: checking for ***.***.1.14
dhcpcd[3255]: wlan0: leased ***.***.1.14 for 86400 seconds
dhcpcd[3255]: forked to background, child pid 3261

That first error can be avoided if I do not set WLAN_MODE and WLAN_ESSID, but it doesn't seem to change anything.

If I rc.inet1 wlan0_stop
and then
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf :
Trying to associate with 00:1d:6a:67:28:3f (SSID='Livebox-f634' freq=2437 MHz)
Associated with 00:1d:6a:67:28:3f
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1d:6a:67:28:3f completed (auth) [id=0 id_str=]
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
CTRL-EVENT-DISCONNECTED bssid=00:1d:6a:67:28:3f reason=0
Trying to associate with 00:1d:6a:67:28:3f (SSID='Livebox-f634' freq=2437 MHz)
Associated with 00:1d:6a:67:28:3f
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1d:6a:67:28:3f completed (reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=00:1d:6a:67:28:3f reason=0

I then start wlan0 and wpa_supplicant says

l2_packet_receive - recvfrom: Network is down
ioctl[SIOCSIWSCAN]: Network is down
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Network is down
Failed to initiate AP scan.
...
ioctl[SIOCSIWSCAN]: Network is down
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Network is down
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with 00:1d:6a:67:28:3f (SSID='Livebox-f634' freq=2437 MHz)
Associated with 00:1d:6a:67:28:3f
WPA: Key negotiation completed with 00:1d:6a:67:28:3f [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1d:6a:67:28:3f completed (reauth) [id=0 id_str=]

wpa_cli status is

bssid=00:1d:6a:67:28:3f
ssid=Livebox-f634
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=TKIP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=***.***.1.14

iwconfig :
wlan0 IEEE 802.11bgn ESSID:"Livebox-f634"
Mode:Managed Frequency:2.437 GHz Access Point: 00:1D:6A:67:28:3F
Bit Rate=65 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=55/70 Signal level=-55 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:13 Missed beacon:0
ifconfig :
wlan0 Link encap:Ethernet HWaddr 00:25:56:07:aa:91
inet addr:192.168.1.14 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::225:56ff:fe07:aa91/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11380 (11.1 KiB) TX bytes:1966 (1.9 KiB)

AS you can see, everything seem fine when I start wlan0, but I can't connect to the internet through firefox.
What am I doing wrong ?

Alien Bob 05-21-2011 07:11 AM

Quote:

Originally Posted by Snailatrice (Post 4362753)
AS you can see, everything seem fine when I start wlan0, but I can't connect to the internet through firefox.
What am I doing wrong ?

This:
Code:

DHCP_KEEPRESOLV[4]="yes"
should be removed unless you also have configured your /etc/resolv.conf yourself and don't want the DHCP client to overwrite it.
Usually you need the DHCP client to overwrite the /etc/resolv.conf file. Your symptom, a successful association but no success in browsing (i.e. name resolving does not work) is a typycal result of it.

Code:

DHCP_KEEPGW[4]="yes"
This line can be removed too, unless you have configured a static gateway. Let the DHCP client configure the default gateway or else you won't be able to connect to anything outside of your local network.

Eric

kaz2100 05-21-2011 07:14 AM

Hya,

I somewhat think that Encryption key is not supposed to be off under iwconfig.

Your wpa related output looks good.

Can you post whatever exactly you did?

cheers

Snailatrice 05-21-2011 08:01 AM

It was indeed DHPC_KEEPRESOLV, thank you very much for such a quick answer :)

Alien Bob 05-21-2011 10:21 AM

Quote:

Originally Posted by Snailatrice (Post 4362805)
It was indeed DHPC_KEEPRESOLV, thank you very much for such a quick answer :)

Welcome to the Slackware forum here at LinuxQuestions.org, where you will find a very experienced and helpful community!

Eric


All times are GMT -5. The time now is 10:19 AM.