Files
nm/roles/configure/templates/hostapd.conf.j2
2024-09-01 20:56:12 +03:00

46 lines
994 B
Django/Jinja

# 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