From 561941d6a9d0f798faf32e12843a79713045d94f Mon Sep 17 00:00:00 2001
From: Julian Kornberger <jk+github@digineo.de>
Date: Tue, 5 Aug 2014 23:30:16 +0200
Subject: [PATCH] docs: add private WLAN

---
 docs/features/private-wlan.rst | 30 ++++++++++++++++++++++++++++++
 docs/index.rst                 |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 docs/features/private-wlan.rst

diff --git a/docs/features/private-wlan.rst b/docs/features/private-wlan.rst
new file mode 100644
index 000000000..a4106af31
--- /dev/null
+++ b/docs/features/private-wlan.rst
@@ -0,0 +1,30 @@
+Private WLAN
+============
+
+It is possible to set up a private WLAN that bridges the WAN port and is seperated from the mesh network.
+Please note that you should not enable ``mesh_on_wan`` simultaneously.
+
+The private WLAN can be enabled through the config mode if the package ``gluon-luci-privatewifi`` is installed.
+You may also enable a private WLAN using the command line:
+
+  ::
+  uci set wireless.wan_radio0=wifi-iface
+  uci set wireless.wan_radio0.device=radio0
+  uci set wireless.wan_radio0.network=wan
+  uci set wireless.wan_radio0.mode=ap
+  uci set wireless.wan_radio0.encryption=psk2
+  uci set wireless.wan_radio0.ssid="$SSID"
+  uci set wireless.wan_radio0.key="$KEY"
+  uci set wireless.wan_radio0.disabled=0
+  uci commit
+  wifi
+
+Please replace ``$SSID`` by the name of the WLAN and ``$KEY`` by your passphrase (8-63 characters).
+If you have two radios (e.g. 2.4 and 5 GHz) you need to do this for radio0 and radio1.
+
+It may also be disabled by running:
+
+  ::
+  uci set wireless.wan_radio0.disabled=1
+  uci commit
+  wifi
diff --git a/docs/index.rst b/docs/index.rst
index cd6092ea8..2b4b3187b 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -24,6 +24,7 @@ Features
 
    features/configmode
    features/autoupdater
+   features/private-wlan
    features/mesh-on-wan
    features/announce
 
-- 
GitLab