mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
hela
: 2.4ghz wifi config
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
9297025b53
commit
810df3adc1
|
@ -49,13 +49,19 @@
|
|||
serviceConfig.NetworkNamespacePath = "/var/run/netns/hel";
|
||||
preStart = lib.mkForce ''
|
||||
_5g_config="$RUNTIME_DIRECTORY/5g.conf"
|
||||
_2g_config="$RUNTIME_DIRECTORY/2g.conf"
|
||||
|
||||
_psk="$(cat "/persist/wlan.psk")"
|
||||
|
||||
cp ${./hostapd/owrt-5ghz-dump.conf} "$_5g_config"
|
||||
cp ${./hostapd/best-2g.conf} "$_2g_config"
|
||||
|
||||
sed -i "s~PASSPHRASE~$_psk~" "$_5g_config"
|
||||
sed -i "s~PASSPHRASE~$_psk~" "$_2g_config"
|
||||
'';
|
||||
serviceConfig = {
|
||||
ExecStart = lib.mkForce (pkgs.writeShellScript "hostapd-start.sh" ''
|
||||
${config.services.hostapd.package}/bin/hostapd $RUNTIME_DIRECTORY/5g.conf
|
||||
${config.services.hostapd.package}/bin/hostapd $RUNTIME_DIRECTORY/5g.conf $RUNTIME_DIRECTORY/2g.conf
|
||||
'');
|
||||
};
|
||||
};
|
||||
|
|
117
nixos/systems/hela/hostapd/best-2g.conf
Normal file
117
nixos/systems/hela/hostapd/best-2g.conf
Normal file
|
@ -0,0 +1,117 @@
|
|||
interface=wlan0
|
||||
hw_mode=g
|
||||
driver=nl80211
|
||||
ctrl_interface=/run/hostapd
|
||||
ctrl_interface_group=0
|
||||
ssid=bpi-2g
|
||||
country_code=NL
|
||||
|
||||
|
||||
#eht_oper_chwidth=2
|
||||
#he_oper_chwidth=2
|
||||
#vht_oper_chwidth=2
|
||||
#eht_oper_centr_freq_seg0_idx=114
|
||||
#he_oper_centr_freq_seg0_idx=114
|
||||
#vht_oper_centr_freq_seg0_idx=114
|
||||
channel=acs_survey
|
||||
|
||||
|
||||
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][GF][TX-STBC][RX-STBC1][LDPC]
|
||||
#vht_capab=[MAX-A-MPDU-LEN-EXP3][MAX-MPDU-11454][VHT160][RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][BF-ANTENNA-3][MU-BEAMFORMER][SOUNDING-DIMENSION-3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
|
||||
|
||||
ieee80211d=1
|
||||
ieee80211w=1
|
||||
ieee80211h=1
|
||||
ieee80211n=1
|
||||
ieee80211ac=1
|
||||
ieee80211ax=1
|
||||
ieee80211be=1
|
||||
|
||||
|
||||
beacon_int=100
|
||||
dtim_period=2
|
||||
max_num_sta=255
|
||||
rts_threshold=-1
|
||||
fragm_threshold=-1
|
||||
preamble=1
|
||||
macaddr_acl=0
|
||||
auth_algs=1
|
||||
ignore_broadcast_ssid=0
|
||||
wmm_enabled=1
|
||||
uapsd_advertisement_enabled=1
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
he_spr_sr_control=3
|
||||
he_default_pe_duration=4
|
||||
he_rts_threshold=1023
|
||||
he_mu_edca_qos_info_param_count=0
|
||||
he_mu_edca_qos_info_q_ack=0
|
||||
he_mu_edca_qos_info_queue_request=0
|
||||
he_mu_edca_qos_info_txop_request=0
|
||||
he_mu_edca_ac_be_aifsn=8
|
||||
##
|
||||
# he_mu_edca_ac_be_aci=0
|
||||
# he_mu_edca_ac_be_ecwmin=9
|
||||
# he_mu_edca_ac_be_ecwmax=10
|
||||
##
|
||||
he_bss_color=1
|
||||
he_mu_edca_ac_be_timer=255
|
||||
he_mu_edca_ac_bk_aifsn=15
|
||||
he_mu_edca_ac_bk_aci=1
|
||||
he_mu_edca_ac_bk_ecwmin=9
|
||||
he_mu_edca_ac_bk_ecwmax=10
|
||||
he_mu_edca_ac_bk_timer=255
|
||||
he_mu_edca_ac_vi_ecwmin=5
|
||||
he_mu_edca_ac_vi_ecwmax=7
|
||||
he_mu_edca_ac_vi_aifsn=5
|
||||
he_mu_edca_ac_vi_aci=2
|
||||
he_mu_edca_ac_vi_timer=255
|
||||
he_mu_edca_ac_vo_aifsn=5
|
||||
he_mu_edca_ac_vo_aci=3
|
||||
he_mu_edca_ac_vo_ecwmin=5
|
||||
he_mu_edca_ac_vo_ecwmax=7
|
||||
he_mu_edca_ac_vo_timer=255
|
||||
|
||||
qos_map_set=0,0,2,16,1,1,255,255,18,22,24,38,40,40,44,46,48,56
|
||||
|
||||
he_su_beamformer=1
|
||||
he_su_beamformee=1
|
||||
he_mu_beamformer=1
|
||||
eht_su_beamformer=1
|
||||
eht_su_beamformee=1
|
||||
eht_mu_beamformer=1
|
||||
eht_default_pe_duration=0
|
||||
|
||||
bss_load_update_period=60
|
||||
chan_util_avg_period=600
|
||||
#disassoc_low_ack=1
|
||||
skip_inactivity_poll=0
|
||||
#preamble=1
|
||||
#wmm_enabled=1
|
||||
#ignore_broadcast_ssid=0
|
||||
#uapsd_advertisement_enabled=1
|
||||
#utf8_ssid=1
|
||||
#multi_ap=0
|
||||
|
||||
wpa=3
|
||||
wpa_passphrase=PASSPHRASE
|
||||
rsn_pairwise=CCMP
|
||||
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256 SAE
|
Loading…
Reference in a new issue