You are not logged in.

#1 2012-07-16 19:42:11

Rawketman
Member
Registered: 2012-07-16
Posts: 5

[SOLVED] Correct format for wpa_supplicant file

Hello, I am  having a minor issue with my wireless connection. I followed the Beginners guide to the letter during install and everything worked fine. I used netinstall. I have tried consulting the networking wiki, but to no avail.

Anyways, I went to reboot last night after install, everything was fine.

After reboot, I logged in as root, and I began following the directions to update the system via pacman. First, I did ping -c 3 www.google.com to test my connection.

I then received unknown host (which I assumed meant my wireless connection was not working). This is what is puzzling me.

I am connecting with my laptop to my router. This isn't a firmware issue, as I checked that.

My hostname is not the problem, I made sure to fix that.

I then played around with my wpa_supplicant file.

Now, I have somehow ended up with several wpa_supplicant files:

wpa_supplicant.conf
wpa_supplicant.conf.original

and a wpa_supplicant directory with another wpa_supplicant.conf file within.

From doing some googling, it looks like that first file wpa_supplicant.conf may be my problem

Here is what I have inside it:
network={
       ssid="mywireless_ssid"
       #psk="secretpassphrase"
       psk=7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515
}

With the respective values filled in.

Is that all that is supposed to be in there?

I'm not really sure where to go from here. I don't have my arch system with me, but I will post the result of iwconfig wlan0 here when I can. I tried repeating all the steps to set up the network, but it didn't work.

I'm probably leaving out important information, please reply and let me know what other information would  be helpful. Thanks in advance.

Last edited by Rawketman (2012-07-17 02:11:00)

Offline

#2 2012-07-16 19:51:17

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED] Correct format for wpa_supplicant file

Rawketman wrote:

Here is what I have inside it:
network={
       ssid="mywireless_ssid"
       #psk="secretpassphrase"
       psk=7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515
}

That should be enough for a network using WPA personal or WPA2 personal. I always generate the config file with wpa_passphrase (which gives the same config file). (edit: To generate the config file I just redirect the output to /etc/wpa_supplicant.conf).

[dean@PsyMadness Desktop]$ wpa_passphrase ssid passphrase
network={
	ssid="ssid"
	#psk="passphrase"
	psk=2b1d17284c5410ee5eaae7151290e9744af2182b0eb8af20dd4ebb415928f726
}

Then do "wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 -B", then do "dhcpcd wlan0".

Last edited by Terminator (2012-07-16 19:52:31)

Offline

#3 2012-07-16 20:22:36

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: [SOLVED] Correct format for wpa_supplicant file

I don't know what to say if it works at installation.
Here is the wiki.
https://wiki.archlinux.org/index.php/WP … ation_file


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#4 2012-07-17 01:57:38

Rawketman
Member
Registered: 2012-07-16
Posts: 5

Re: [SOLVED] Correct format for wpa_supplicant file

Ok, thanks Terminator and Alber, both your answers helped me.

I was indeed very puzzled that I could not get wireless to work.

I just ended up reinstalling Arch. I think I must have tampered with the wpa_supplicant file too much. Also, it seems the beginners guide is missing a a command, (which shows up in the wpa_supplicant wiki). It is similar to what you gave me Terminator.

Also, adding global options to the wpa_supplicant file caused some other problems. After doing some googling it looks like there is a bug in this version of the kernel when using global options with my wireless card (very odd). Thankfully, I don't need them.
I ended up getting it working though. I am going to post my solution (hope that's ok) below in case anyone happens to have the same problem for their Inspiron 1545 with Intel card.

Here is what I did after install to get my connection back:

# ip link set wlan0 up
$ dmesg | grep firmware                                                                      //to make sure firmware is working
# iwlist wlan0 scan                                                                             //to search for wireless networks
# mv /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.original
# wpa_passphrase linksys "my_secret_passkey" > /etc/wpa_supplicant.conf
# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf           //the critical part which was missing
# dhcpcd wlan0

And that is it.

Thank you both.

Last edited by Rawketman (2012-07-17 01:58:41)

Offline

Board footer

Powered by FluxBB