You are not logged in.

#1 2009-08-26 15:43:23

samsilla
Member
Registered: 2009-08-26
Posts: 4

[SOLVED] simple syntax error in wpa_supplicant.conf

Hi,

I managed to configure my wireless adapter to connect to my network using netcfg fine. However, everytime I boot up I see this:

/etc/wpa_supplicant.conf: line 7: syntax error near unexpected token `}'
/etc/wpa_supplicant.conf: line 7: `}'
/etc/wpa_supplicant.conf: line 7: syntax error near unexpected token `}'
/etc/wpa_supplicant.conf: line 7: `}'

I guess it's not really an issue, but for me it is a minor annoyance and an indicator that I should fix it before something goes wrong later down the line.

The following is my wpa_supplicant.conf file... I can't find anything wrong with it. I do want to mention though that I did set this file's permission to 775, so I don't know if that has an effect on it.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
    ssid="WRT54GL"
    #psk="9999999999"
    psk=236e45f2wer6c1a3d604dasee342cc742c42346f125603e7658973523753q3e3b3 
}

Any help is appreciated. Thanks. smile

Last edited by samsilla (2009-08-30 14:30:24)

Offline

#2 2009-08-28 17:23:03

samsilla
Member
Registered: 2009-08-26
Posts: 4

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

bumping. someone please halp sad

Offline

#3 2009-08-28 17:34:06

Beini
Member
From: Finland
Registered: 2007-06-06
Posts: 78

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

I really don't see a problem with it. Maybe it's your netcfg config? or a bug in netcfg...


archlinux x86_64 user || My PKGBUILDs

Offline

#4 2009-08-28 23:07:38

sebleblanc
Member
From: Montréal, Canada
Registered: 2007-12-21
Posts: 41

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

Erase it all and type it all manually. Sometimes when copy-pasting, invalid (invisible) characters get added. That should fix it. Also, there are 66 characters in your WPA key, which makes it invalid.

Offline

#5 2009-08-29 01:12:09

samsilla
Member
Registered: 2009-08-26
Posts: 4

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

Beini wrote:

I really don't see a problem with it. Maybe it's your netcfg config? or a bug in netcfg...

thanks! i'll check the config file!

sebleblanc wrote:

Erase it all and type it all manually. Sometimes when copy-pasting, invalid (invisible) characters get added. That should fix it. Also, there are 66 characters in your WPA key, which makes it invalid.

thanks! this makes sense to me i'll do what you say.. also i changed the WPA key here (adding in my own numbers/letters).

thanks again guys for the help. will let you know how it works out

Last edited by samsilla (2009-08-29 01:12:22)

Offline

#6 2009-08-29 04:22:37

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

yeah, I get this same error too when using netcfg with wireless-wpa-config

But doing the normal wpa_supplicant + dhcpcd method works, so theres a problem with netcfg imo.

Offline

#7 2009-08-29 06:52:36

maxim_
Member
From: Asia/Omsk
Registered: 2009-08-26
Posts: 12

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

There is unclosed quote in wireless-wpa-config, just put another into the end of the string.

Offline

#8 2009-08-30 14:29:57

samsilla
Member
Registered: 2009-08-26
Posts: 4

Re: [SOLVED] simple syntax error in wpa_supplicant.conf

Okay I found out the problem.. turns out this was all caused by a simple space neutral

Before:

WPA_CONF= "/etc/wpa_supplicant.conf"

After:

WPA_CONF="/etc/wpa_supplicant.conf"

Thanks again for the help guys.

Offline

Board footer

Powered by FluxBB