On Mon, May 21, 2018 at 09:33:12PM +0200, Gregor Best wrote:
> This is a tiny update to net/wireless that contains no functional
> changes but an updated manpage. kl@ suggested just bundling the changes
> in a patch to the port until the next release, but I figured I don't
> think I'll need to make another release of wireless anytime soon so I
> might as well do a proper release.
The update mentions hexkey support and fixes minor markup nits:

diff --git a/wireless.8 b/wireless.8
index 10a3b32..97ec96f 100644
--- a/wireless.8
+++ b/wireless.8
@@ -50,7 +50,7 @@ will notify
 of the newly established connection by calling
 .Pp
 .D1 wpa_cli reassoc
-.Sh "CONFIGURATION OVERVIEW
+.Sh "CONFIGURATION OVERVIEW"
 This is an example configuration file:
 .Bd -literal -offset indent
 device iwn0
@@ -69,7 +69,7 @@ and
 .Ic 802.1x .
 All of these get an SSID as their first parameter.
 .Ic wpa
-gets the password as the second parameter.
+gets the password or hex key as the second parameter.
 SSIDs and passwords which contain spaces can be enclosed in single or double 
quotes.
 Regular string quoting rules apply:
 .Pp
@@ -84,8 +84,9 @@ statement:
 Macros can be set and used like this:
 .Bd -literal -offset indent
 mypw = "foobar! 1234#$"
+hexkey = 0x092876e79594ae7beda40dd150d17fa215e51f22cb990f9ec640a267c96fbedf
 wpa nw1 $mypw
-wpa nw2 $mypw
+wpa nw2 $hexkey
 .Ed
 .Pp
 The priority of a network depends on the order of networks in the 
configuration file.
@@ -95,7 +96,8 @@ If an SSID is visible multiple times (such as in campus 
networks), the access po
 This section outlines the available configuration statements.
 .Bl -tag -width Ds
 .It Ic debug | Ic verbose
-Enables debugging or verbose mode. See
+Enables debugging or verbose mode.
+See
 .Sx DIAGNOSTICS
 below for details.
 .Pp
@@ -125,13 +127,9 @@ at the point where the
 .Ic include
 statement appears in the file.
 .It Ic open Ar nwid
-Defines an unencrypted network with the ESSID
-.Ar nwid .
-.It Ic wpa Ar nwid Ar password
-Defines a WPA2 network with the ESSID
-.Ar nwid
-and the password
-.Ar password .
+Defines an unencrypted network.
+.It Ic wpa Ar nwid Ar password|hexkey
+Defines a WPA2 network.
 .It Ic 802.1x Ar nwid
 Defines a WPA2 network that uses IEEE 802.1x as the key management scheme.
 This requires using
@@ -153,7 +151,8 @@ The keyword
 enables behaviour that helps debugging.
 Its meaning will change without prior notice, so it should not be used outside 
of development.
 .Sh SEE ALSO
-.Xr ifconfig 8
+.Xr ifconfig 8 ,
+.Xr wpa_passphrase 8 ,
 .Xr wpa_supplicant 8
 .Sh AUTHORS
 .Bl -bullet

Reply via email to