]> git.ipfire.org Git - people/stevee/network.git/commitdiff
802.11s: Allow setting a PSK for SAE authentication
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 21:50:12 +0000 (21:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 21:50:12 +0000 (21:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/ports/wireless-mesh

index cee8d2604d1b190c52f1fe98d126debdb6409250..ab2ff11e3b7ecd46f810bc35cc1e7bcf4cd56259 100644 (file)
@@ -23,7 +23,7 @@
 
 HOOK_PORT_PATTERN="${PORT_PATTERN_MESH}"
 
-HOOK_SETTINGS="HOOK ADDRESS MESH_ID CHANNEL PHY"
+HOOK_SETTINGS="HOOK ADDRESS MESH_ID CHANNEL PHY PSK"
 
 hook_check_settings() {
        assert ismac ADDRESS
@@ -48,6 +48,9 @@ hook_parse_cmdline() {
                        --phy=*)
                                PHY=$(cli_get_val "${1}")
                                ;;
+                       --pre-shared-key=*)
+                               PSK=$(cli_get_val "${1}")
+                               ;;
                        *)
                                warning "Ignoring unknown argument '${1}'"
                                ;;