Talk:WPA supplicant

From ArchWiki
Revision as of 15:45, 28 September 2014 by Rimas (talk | contribs)
Jump to: navigation, search

Error while trying to associate with network

I am trying to associate wpa_supplicant using following command:

# wpa_supplicant -B -i interface -c <(wpa_passphrase MYSSID passphrase)

but it produces error. It seems like configuration info fails to generate properly. For example,

$ echo <(wpa_passphrase MYSSID passphrase)

generates following output: /dev/fd/63


$ (wpa_passphrase MYSSID passphrase)







which is expected output.

So, how is it possiblee to feed wpa_passphrase output to wpa_supplicant correctly? --Rimas (talk) 09:28, 27 September 2014 (UTC)

You're not telling us the most important thing, i.e. what error wpa_supplicant -B -i interface -c <(wpa_passphrase MYSSID passphrase) produces... Is wpa_passphrase MYSSID passphrase alone printing a correct configuration with your ssid and passphrase? Are you using the correct interface name? If you save the output of wpa_passphrase to a file, and then use that file name for the -c flag of wpa_supplicant, does it work? The <() syntax is process substitution and in theory it should work like that, it's normal that echoing it returns a file name. -- Kynikos (talk) 10:36, 27 September 2014 (UTC)
wpa_passphrase prints correct information with my ssid and passwd, so I was able to associate wpa_supplicant by creating a configuration file (thanks for this hint!). However, when I try to use process substitution syntax (exactly as it is written in article), I'm getting following output:

Successfuly initialized wpa_supplicant

Failed to open config file '/dev/fd/63', error: No such file or directory

Failed to read or parse configuration '/dev/fd/63'
--Rimas (talk) 15:45, 28 September 2014 (UTC)