From be5ddfb57ec9e4066be659389c87ab0d0ec67a61 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 15 Aug 2017 21:03:49 +0000 Subject: [PATCH] wireless: Allow creating mesh points Signed-off-by: Michael Tremer --- src/functions/functions.wireless | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/functions/functions.wireless b/src/functions/functions.wireless index f219a1f7..d32c7904 100644 --- a/src/functions/functions.wireless +++ b/src/functions/functions.wireless @@ -61,7 +61,19 @@ wireless_create() { shift done - assert isoneof type ibss managed monitor __ap + case "${type}" in + ibss|managed|monitor|__ap) + ;; + mesh-point) + type="mp" + ;; + *) + log ERROR "Unknown type: ${type}" + return ${EXIT_ERROR} + ;; + + esac + assert phy_exists ${phy} isset address || address=$(mac_generate) -- 2.47.3