From 2c48118b3085e5f1bdd147850a3fd03db5ad0f91 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 10 Nov 2024 11:38:56 +0100 Subject: [PATCH] `hela`: another random hostapd config Signed-off-by: magic_rb --- nixos/systems/hela/hostapd.nix | 2 +- .../systems/hela/hostapd/owrt-5ghz-dump.conf | 92 +++++++++++++++++++ 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 nixos/systems/hela/hostapd/owrt-5ghz-dump.conf diff --git a/nixos/systems/hela/hostapd.nix b/nixos/systems/hela/hostapd.nix index b0de436..a17d846 100644 --- a/nixos/systems/hela/hostapd.nix +++ b/nixos/systems/hela/hostapd.nix @@ -50,7 +50,7 @@ preStart = lib.mkForce '' _5g_config="$RUNTIME_DIRECTORY/5g.conf" _psk="$(cat "/persist/wlan.psk")" - cp ${./hostapd/bpi-r4-best-5g.conf} "$_5g_config" + cp ${./hostapd/owrt-5ghz-dump.conf} "$_5g_config" sed -i "s~PASSPHRASE~$_psk~" "$_5g_config" ''; serviceConfig = { diff --git a/nixos/systems/hela/hostapd/owrt-5ghz-dump.conf b/nixos/systems/hela/hostapd/owrt-5ghz-dump.conf new file mode 100644 index 0000000..02922ac --- /dev/null +++ b/nixos/systems/hela/hostapd/owrt-5ghz-dump.conf @@ -0,0 +1,92 @@ +driver=nl80211 +hw_mode=a +beacon_int=100 +stationary_ap=1 +country_code=NL + +# eht_oper_chwidth=0 +he_oper_chwidth=0 +vht_oper_chwidth=0 +# eht_oper_centr_freq_seg0_idx= +he_oper_centr_freq_seg0_idx= +vht_oper_centr_freq_seg0_idx= +channel=acs_survey + +tx_queue_data2_burst=2.0 + +#num_global_macaddr=1 +ht_coex=0 +ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][GF][DSSS_CCK-40][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] + +ieee80211n=1 +ieee80211ac=1 +ieee80211ax=1 +he_su_beamformer=1 +he_su_beamformee=1 +he_mu_beamformer=1 +he_bss_color=1 +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_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 + +interface=wlan1 +ctrl_interface=/var/run/hostapd +ap_isolate=1 +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 +ocv=0 +sae_require_mfp=1 +sae_pwe=2 +wpa_passphrase=PASSPHRASE +auth_algs=1 +wpa=2 +wpa_pairwise=CCMP +ssid=bpi-5g +# bridge=br-lan +# wds_bridge= +# snoop_iface=br-lan +wpa_disable_eapol_key_retries=0 +wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256 SAE +okc=1 +ieee80211w=1 +group_mgmt_cipher=AES-128-CMAC +# dynamic_vlan=0 +# vlan_naming=1 +# vlan_no_bridge=1 +# vlan_file=/var/run/hostapd-phy1-ap0.vlan +qos_map_set=0,0,2,16,1,1,255,255,18,22,24,38,40,40,44,46,48,56 +bssid=76:5f:50:6d:fe:0b +#default_macaddr \ No newline at end of file