Talk:WPA supplicant

From ArchWiki
Revision as of 05:38, 20 May 2014 by Indigo (talk | contribs) (Revision as of 19:21, 13 May 2013 by Earnest removed essential information: re)
Jump to navigation Jump to search

Input from file

Can someone verify this? I don't use this kind of passphrase, but trying this with a random text file gave me an error:

Some unusually complex passphrases may require input from a file:
$ wpa_passphrase essid < passphrase.txt

Idomeneo1 (talk) 00:46, 1 March 2014 (UTC)

You can't use a random text file:
$ wpa_passphrase foo < UTF-8-demo.txt
# reading passphrase from stdin
Passphrase must be 8..63 characters
It works for any valid passphrase.
-- Lahwaacz (talk) 07:31, 1 March 2014 (UTC)
Closing, Lahwaacz gave an exhaustive answer. -- Kynikos (talk) 10:31, 19 May 2014 (UTC)

Revision as of 19:21, 13 May 2013 by Earnest removed essential information

The revision as of 19:21, 13 May 2013 by Earnest removed essential information especially the one about the wpa_supplicant.conf:

Without the lines in wpa_supplicant.conf:

ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel

before the network block I'll get an endless loop of

ath9k 0000:02:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
ath9k 0000:02:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
wlan0: associate with XX:XX:XX:XX:XX:XX (try 1/3)
wlan0: RX AssocResp from XX:XX:XX:XX:XX:XX (capab=0x431 status=0 aid=3)
wlan0: associated
wlan0: deauthenticating from XX:XX:XX:XX:XX:XX by local choice (reason=3)

MAC replaced by XX:XX:XX:XX:XX:XX

which is not caused by the wlan's power management setting which is off.

Even if the wiki is not a beginners guide and you could also read wpa_supplicant.conf manpages the wiki article is not really helpful anymore.

Renegat (talk) 17:50, 21 March 2014 (UTC)

I agree. The information that the network blocks should be appended >> to wpa_supplicant.conf is too sublime now. You apparently have overwritten the default conf file ("fast_reauth=1" and "ap_scan=1" are defaults in it). No blame, it should be clearer again that the conf itself may stay. The ctrl interface is explained later in the wpa_cli section, unsure about that one right now.
--Indigo (talk) 00:29, 22 March 2014 (UTC)
The edit in question is [1], which has been superseded by several later restructurings. The "gutted" [sic] revision is [2]: is there anything that's worth restoring from there, also considering the existing upstream documentation, or can we close this discussion? -- Kynikos (talk) 10:43, 19 May 2014 (UTC)
Great work with the re-write of the interim version, but yes imo the OP is right. The version still misses out a few things the [3] revision had. It foregoes that wpa_supplicant.conf is the tools _configuration_ file for global options (see above for examples) _plus_ all the networks the user manages with wpa_supplicant and not merely an example and doc file. Maybe that would be something to edit into WPA_supplicant#Configuration, employing it instead of "example.conf" there. I don't have much time now. I would try to add it into that subsection when I do. Please leave this open so we can return to it. Thanks. --Indigo (talk) 05:38, 20 May 2014 (UTC)

Reverting to earlier, more lucid edit

There is too much on this page that is redundant or belongs on other sections of the wiki. I am proposing to replace the current version of the page with this gist saved two months ago that contains the essential information without all of the unecessary filler. If you have any comments, please provide them in the next seven days. jasonwryan (talk) 02:22, 12 May 2014 (UTC)

I don't like switching revisions for no factual reason, IMO the change should be gradual and based on proper arguments (stated in the edit summary or discussed here). For completeness, as stated in the above discussion, there may be more information lost in this edit.
To comment on the gist version, are there reasons to keep "Connecting with wpa_cli" before "Configuration" and "Maintaining a custom configuration" separate from "Configuration"? Using wpa_supplicant depends on the ctrl_interface in the config, so it makes sense to describe it after "Configuration" and just link back.
Also note that #Enabling with systemd section is deprecated, wpa_supplicant@.service now looks for /etc/wpa_supplicant/wpa_supplicant-interface.conf [4].
Finally, which parts had better be moved into other sections of the wiki? Generally I would like to keep the specific info here and just link to it from Wireless network configuration.
-- Lahwaacz (talk) 13:02, 16 May 2014 (UTC)
wpa_supplicant does not depend on ctrl_interface being set. It does not even depend on a configuration file to function. The point of that section is mostly pedagogy. The information about systemd is accurate and still relevant but it does lack information about the default configuration. Earnest (talk) 16:08, 16 May 2014 (UTC)
The ctrl_interface para Lahwaacz was referring to was the one dealing with wpa_cli. I'm +1 with him. The current TOC is a more regular wiki structure imo. The gist is a clear page, but it is geared towards end-user usability to make a connection (wpa_cli). Most users arriving here will look for other info than how to get wpa_cli running (most who do will have diverted to the other tool discussed in Wireless_network_configuration already) in my view. Nonetheless, if parts are more appropriately covered in another page, those could be marked first and moved then? (should be done def. before rolling it over) Maybe make a short list here what should be moved?
--Indigo (talk) 17:38, 16 May 2014 (UTC)
The wiki should not be a substitute for a manual or upstream documentation. Earnest (talk) 20:18, 16 May 2014 (UTC)
I've prepared a draft at User:Kynikos/WPA supplicant which is an attempt of a compromise merge.
The base structure is more similar to the gist, i.e. starting from particular scenarios to give an idea of the generic way to work with the various tools, however all the additional content of the current article is preserved, and the "Advanced usage" section is instead aimed to those seeking for the more theoretical approach, still avoiding to duplicate the content of the two "practical" sections ("Connecting with wpa_{cli,passphrase}"), and linking there where appropriate.
There's also a very short, yet IMO very useful, "Overview" section, that illustrates the general operating principles, thus preparing the user to better appreciate the similarities and the differences among the various scenarios.
With respect to the gist, the sections have been given more proper names (e.g. the "Configuration" section wasn't only about configuration, and it wasn't the only one dealing with configuration either), a lot of content has been de-duplicated, and all the example file names, variables etc. have been made consistent throughout the article.
The only doubt I still have is how to mention the dhcpcd hook for both the manual connection and the systemd method without duplicating too much info.
Coming to the main points of the previous posts:
  • I too would like to know which parts should be moved to other articles, as I can't see any ^^
  • I think keeping "Connecting with wpa_cli" before explaining the configuration in details is possible, since the pre-configuration needed by wpa_cli is really minimal and doesn't involve the networking part, and wpa_cli is a configuration tool itself, so theoretically one may safely ignore how to set a network block in order to use it successfully. Also connecting with wpa_passphrase doesn't require knowing how the config file works (no file needs to be created ad all).
-- Kynikos (talk) 10:06, 17 May 2014 (UTC)
Maybe the dhcpcd hook should be described in dhcpcd#Hooks? It is part of dhcpcd after all... -- Lahwaacz (talk) 13:46, 17 May 2014 (UTC)
Good idea, although we should link there from this article anyway. I think also Dhcpcd#dhcpcd.2C_systemd_.26_wpa_supplicant should be given more visibility (maybe directly linked from dhcpcd#Hooks). -- Kynikos (talk) 04:15, 18 May 2014 (UTC)
Thanks for going to the trouble to write the draft page. I am happy with that. jasonwryan (talk) 23:02, 18 May 2014 (UTC)
Great, I'll do the merge in a few hours, I don't think it's worth to delay this longer. -- Kynikos (talk) 03:09, 19 May 2014 (UTC)
I think it's all fixed now, I'm closing this discussion :) -- Kynikos (talk) 10:29, 19 May 2014 (UTC)