LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-21-2011, 06:57 AM   #1
Snailatrice
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: Disabled
[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 thrff Fragment thrff
Encryption keyff
Power Managementn
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 ?

Last edited by Snailatrice; 05-21-2011 at 08:02 AM.
 
Old 05-21-2011, 07:11 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,112

Rep: Reputation: Disabled
Quote:
Originally Posted by Snailatrice View Post
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
 
Old 05-21-2011, 07:14 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,397

Rep: Reputation: 81
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
 
Old 05-21-2011, 08:01 AM   #4
Snailatrice
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
It was indeed DHPC_KEEPRESOLV, thank you very much for such a quick answer
 
Old 05-21-2011, 10:21 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,112

Rep: Reputation: Disabled
Quote:
Originally Posted by Snailatrice View Post
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 4 06-28-2010 02:51 AM
setting up wpa on wireless ?? stratotak Linux - Laptop and Netbook 3 12-29-2008 10:10 AM
Setting up Wireless w/ WPA to start automatically in Fedora 8 SlowCoder Linux - General 3 02-15-2008 03:54 PM
wireless ndiswrapper wpa troubles PatrickNew Linux - Wireless Networking 2 06-23-2007 11:23 PM


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