Add wifi configuration
This commit is contained in:
parent
c0c48a83b3
commit
6ed755b800
1 changed files with 64 additions and 23 deletions
|
@ -38,37 +38,78 @@ in
|
|||
services.hostapd = {
|
||||
enable = true;
|
||||
interface = wireless.wleInterface;
|
||||
hwMode = "g";
|
||||
hwMode = "a";
|
||||
ssid = wireless.wleSSID;
|
||||
wpaPassphrase = wireless.wlePassphrase;
|
||||
channel = 6;
|
||||
channel = 36;
|
||||
extraConfig = ''
|
||||
#macaddr_acl sets options for mac address filtering. 0 means "accept unless in deny list"
|
||||
macaddr_acl=0
|
||||
#setting ignore_broadcast_ssid to 1 will disable the broadcasting of ssid
|
||||
ignore_broadcast_ssid=0
|
||||
#Sets authentication algorithm
|
||||
#1 - only open system authentication
|
||||
#2 - both open system authentication and shared key authentication
|
||||
max_num_sta=255
|
||||
|
||||
#logger_syslog=-1
|
||||
#logger_syslog_level=2
|
||||
#logger_stdout=-1
|
||||
#logger_stdout_level=2
|
||||
|
||||
#Details for Connecting Clients via WPA2 TKIP
|
||||
auth_algs=1
|
||||
#####Sets WPA and WPA2 authentication#####
|
||||
#wpa option sets which wpa implementation to use
|
||||
#1 - wpa only
|
||||
#2 - wpa2 only
|
||||
#3 - both
|
||||
wpa=2
|
||||
#sets wpa passphrase required by the clients to authenticate themselves on the network
|
||||
wpa_passphrase=mifatielma
|
||||
#sets wpa key management
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
#sets encryption used by WPA
|
||||
wpa_pairwise=TKIP
|
||||
#sets encryption used by WPA2
|
||||
wpa_pairwise=CCMP
|
||||
rsn_pairwise=CCMP
|
||||
#### even more options ####
|
||||
wme_enabled=1
|
||||
|
||||
#802.11d Regulatory Restrictions Designations for Which Frequencies and Channels are Legal
|
||||
ieee80211d=1
|
||||
country_code=CH
|
||||
|
||||
#802.11n Configurations
|
||||
ieee80211n=1
|
||||
ht_capab=[HT40-][HT40+][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
|
||||
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][DSSS_CCK-40]
|
||||
|
||||
#802.11ac Configurations
|
||||
ieee80211ac=1
|
||||
vht_capab=[SHORT-GI-80][MAX-MPDU-11454][RXLDPC][TX-STBC-2BY1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
|
||||
vht_oper_chwidth=1
|
||||
|
||||
#How Many Units of Time Between Beacon Transmissions
|
||||
beacon_int=100
|
||||
#Multiplier of How Many Units of Time Between Beacon Transmissions
|
||||
dtim_period=2
|
||||
#(e.g. 100 milliseconds(ms) * 2 = 200 ms between beacons)
|
||||
|
||||
#Something About WMM Clients Needing this
|
||||
wmm_enabled=1
|
||||
|
||||
###To Be Completely Honest-- I'm Not Entirely Certain What the Rest of this file does
|
||||
|
||||
#QoS Type of Traffic Management Based on Traffic Type
|
||||
|
||||
#Background
|
||||
wmm_ac_bk_cwmin=4
|
||||
wmm_ac_bk_cwmax=10
|
||||
wmm_ac_bk_aifs=7
|
||||
wmm_ac_bk_txop_limit=0
|
||||
wmm_ac_bk_acm=0
|
||||
|
||||
#Best Effort
|
||||
wmm_ac_be_aifs=3
|
||||
wmm_ac_be_cwmin=4
|
||||
wmm_ac_be_cwmax=10
|
||||
wmm_ac_be_txop_limit=0
|
||||
wmm_ac_be_acm=0
|
||||
|
||||
#Video
|
||||
wmm_ac_vi_aifs=2
|
||||
wmm_ac_vi_cwmin=3
|
||||
wmm_ac_vi_cwmax=4
|
||||
wmm_ac_vi_txop_limit=94
|
||||
wmm_ac_vi_acm=0
|
||||
|
||||
#Voice
|
||||
wmm_ac_vo_aifs=2
|
||||
wmm_ac_vo_cwmin=2
|
||||
wmm_ac_vo_cwmax=3
|
||||
wmm_ac_vo_txop_limit=47
|
||||
wmm_ac_vo_acm=0
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue