Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/hostapd/hostapd-5g.conf
- # Documentation: https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
- # 2022-09-25
- # SSID
- ssid=*anSSIDhere*
- # PASSPHRASE
- wpa_passphrase=*aPassphraseHere*
- # Band: a = 5GHz & 6GHz (a/n/ac/ax), g = 2Ghz (b/g/n)
- hw_mode=a
- # Channel
- ###channel=36
- channel=149
- #channel=165
- # Channel width (0 = 40 MHz. 1 = 80 Mhz)
- vht_oper_chwidth=1
- # VHT center channel (chan + 6)
- ###vht_oper_centr_freq_seg0_idx=42
- vht_oper_centr_freq_seg0_idx=155
- # HE center channel (chan + 6)
- he_oper_chwidth=1
- he_oper_centr_freq_seg0_idx=155
- # Country code
- country_code=US
- # Advertises the country_code and the set of allowed channels and transmit power levels
- ieee80211d=1
- # Enables support for 5GHz DFS channels (requires ieee80211d=1)
- ieee80211h=1
- # Bridge interface
- bridge=br0
- # WiFi interface
- #interface=wlan0
- interface=mt7921WLAN
- # Set hostapd driver (nl80211 is used with all Linux mac80211 (in-kernel) and modern Realtek drivers)
- driver=nl80211
- #ctrl_interface=/var/run/hostapd
- #ctrl_interface_group=0
- # Various settings
- #beacon_int=100
- #dtim_period=2
- #max_num_sta=32
- macaddr_acl=0
- #rts_threshold=2347
- #fragm_threshold=2346
- #send_probe_response=1
- # Security
- # auth_algs=3 is required for WPA-3 SAE and WPA-3 SAE Transitional
- auth_algs=1
- ignore_broadcast_ssid=0
- # wpa=2 is required for WPA2 and WPA3 (read the docs)
- wpa=2
- rsn_pairwise=CCMP
- # only one wpa_key_mgmt= line should be active.
- # wpa_key_mgmt=WPA-PSK is required for WPA2-AES
- #wpa_key_mgmt=WPA-PSK
- # wpa_key_mgmt=SAE WPA-PSK is required for WPA3-AES Transitional
- #wpa_key_mgmt=SAE WPA-PSK
- # wpa_key_mgmt=SAE is required for WPA3-SAE
- wpa_key_mgmt=SAE
- #wpa_group_rekey=1800
- # ieee80211w=1 is required for WPA-3 SAE Transitional
- # ieee80211w=2 is required for WPA-3 SAE
- ieee80211w=2
- # if parameter is not set, 19 is the default value.
- #sae_groups=19 20 21 25 26
- # sae_require_mfp=1 is required for WPA-3 SAE Transitional
- #sae_require_mfp=1
- # if parameter is not 9 set, 5 is the default value.
- #sae_anti_clogging_threshold=10
- # Note: Capabilities can vary even between adapters with the same chipset.
- #
- # Note: Only one ht_capab= line and one vht_capab= should be active. The
- # content of these lines is determined by the capabilities of your adapter.
- #
- # IEEE 802.11n
- ieee80211n=1
- wmm_enabled=1
- #
- # generic setting
- ##ht_capab=[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40]
- # mt7921k
- ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935]
- # IEEE 802.11ac
- ieee80211ac=1
- #
- # generic setting
- #vht_capab=[SHORT-GI-80]
- # Working on MT7921K
- vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE][BF-ANTENNA-4][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
- # IEEE 802.11ax
- ieee80211ax=1
- he_su_beamformer=1
- he_su_beamformee=1
- he_mu_beamformer=1
- # end of hostapd-5g.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement