Skip to content

Commit

Permalink
accesspoint: more configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
multi-io committed May 13, 2023
1 parent c19acd2 commit 2dd3891
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
9 changes: 6 additions & 3 deletions roles/accesspoint/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ wlan_hw_mode: g
wlan_channel: 2
# todo automatic channel selection (see conf)
wlan_ieee80211n: 1
wlan_wpa_passphrase: "supersecret"

wlan_ieee80211ac: 0
wlan_require_ht: 0
wlan_require_vht: 0
wlan_vht_oper_chwidth: 1
wlan_vht_oper_centr_freq_seg0_idx: 42

# TODO ieee80211n
wlan_wpa_passphrase: "supersecret"
12 changes: 7 additions & 5 deletions roles/accesspoint/templates/hostapd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ ieee80211n={{wlan_ieee80211n}}
#ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]

# Require stations to support HT PHY (reject association if they do not)
#require_ht=1
require_ht={{wlan_require_ht}}

# If set non-zero, require stations to perform scans of overlapping
# channels to test for stations which would be affected by 40 MHz traffic.
Expand All @@ -523,7 +523,7 @@ ieee80211n={{wlan_ieee80211n}}
# 0 = disabled (default)
# 1 = enabled
# Note: You will also need to enable WMM for full VHT functionality.
#ieee80211ac=1
ieee80211ac={{wlan_ieee80211ac}}

# vht_capab: VHT capabilities (list of flags)
#
Expand Down Expand Up @@ -645,19 +645,21 @@ ieee80211n={{wlan_ieee80211n}}
#vht_capab=[SHORT-GI-80][HTC-VHT]
#
# Require stations to support VHT PHY (reject association if they do not)
#require_vht=1
require_vht={{wlan_require_vht}}

# 0 = 20 or 40 MHz operating Channel width
# 1 = 80 MHz channel width
# 2 = 160 MHz channel width
# 3 = 80+80 MHz channel width
#vht_oper_chwidth=1
#vht_oper_chwidth={{wlan_vht_oper_chwidth}}

#
# center freq = 5 GHz + (5 * index)
# So index 42 gives center freq 5.210 GHz
# which is channel 42 in 5G band
#
#vht_oper_centr_freq_seg0_idx=42
vht_oper_centr_freq_seg0_idx={{wlan_vht_oper_centr_freq_seg0_idx}}

#
# center freq = 5 GHz + (5 * index)
# So index 159 gives center freq 5.795 GHz
Expand Down

0 comments on commit 2dd3891

Please sign in to comment.