summaryrefslogtreecommitdiff
path: root/ansible/roles/hotspot/templates/hostapd.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/hotspot/templates/hostapd.conf.j2')
-rw-r--r--ansible/roles/hotspot/templates/hostapd.conf.j220
1 files changed, 20 insertions, 0 deletions
diff --git a/ansible/roles/hotspot/templates/hostapd.conf.j2 b/ansible/roles/hotspot/templates/hostapd.conf.j2
new file mode 100644
index 0000000..83ff514
--- /dev/null
+++ b/ansible/roles/hotspot/templates/hostapd.conf.j2
@@ -0,0 +1,20 @@
+# hostapd sample config with documentation:
+# http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
+interface={{ interface }}
+bridge={{ bridge }}
+driver=nl80211
+ssid={{ ssid }}
+country_code={{ country }}
+hw_mode={{ mode }}
+ieee80211n={{ ieee80211n }}
+channel={{ channel }}
+macaddr_acl=0
+auth_algs=1
+ignore_broadcast_ssid=0
+wmm_enabled=1
+# bit1: WPA2 only
+wpa=1
+wpa_passphrase={{ passphrase }}
+wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
+wpa_pairwise=TKIP
+rsn_pairwise=CCMP