init
This commit is contained in:
45
roles/configure/templates/hostapd.conf.j2
Normal file
45
roles/configure/templates/hostapd.conf.j2
Normal file
@@ -0,0 +1,45 @@
|
||||
# Set up some logging. VERY useful to see why things aren't working.
|
||||
logger_syslog=-1
|
||||
logger_syslog_level=2
|
||||
logger_stdout=-1
|
||||
logger_stdout_level=2
|
||||
|
||||
# Which interface to use and which bridge to join
|
||||
interface={{ wifi_int.stdout_lines | first }}
|
||||
#bridge=br0
|
||||
|
||||
|
||||
#
|
||||
wmm_enabled=1
|
||||
wme_enabled=1
|
||||
ieee80211n=1
|
||||
#ieee80211d=1
|
||||
#noscan=1
|
||||
#
|
||||
# Use this driver for AP stuff. This corresponds to the mac80211 driver
|
||||
# which most newer cards support.
|
||||
driver=nl80211
|
||||
|
||||
# 802.11 mode and channel, pretty self-explanatory
|
||||
hw_mode=g
|
||||
country_code=RU
|
||||
channel=9
|
||||
|
||||
|
||||
# Set and broadcast the SSID. Stupid double-negatives...
|
||||
ssid={{ wifi_ssid }}
|
||||
ignore_broadcast_ssid=0
|
||||
|
||||
# 802.11N stuff - Try 40 MHz channels, fall back to 20 MHz
|
||||
#ieee80211n=1
|
||||
#ht_capab=[HT40+][SHORT-GI-40]
|
||||
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
|
||||
#ht_capab=[HT40-][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
|
||||
# WPA Authentication
|
||||
auth_algs=1
|
||||
wpa=2
|
||||
wpa_passphrase={{ wifi_psk }}
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
rsn_pairwise=CCMP
|
||||
|
||||
macaddr_acl=0
|
||||
Reference in New Issue
Block a user