Advertisement
Guest User

Untitled

a guest
Dec 12th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. # /etc/hostapd/hostapd-5g.conf
  2. # Documentation: https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
  3. # 2022-09-25
  4.  
  5. # SSID
  6. ssid=*anSSIDhere*
  7. # PASSPHRASE
  8. wpa_passphrase=*aPassphraseHere*
  9. # Band: a = 5GHz & 6GHz (a/n/ac/ax), g = 2Ghz (b/g/n)
  10. hw_mode=a
  11. # Channel
  12. ###channel=36
  13. channel=149
  14. #channel=165
  15. # Channel width (0 = 40 MHz. 1 = 80 Mhz)
  16. vht_oper_chwidth=1
  17. # VHT center channel (chan + 6)
  18. ###vht_oper_centr_freq_seg0_idx=42
  19. vht_oper_centr_freq_seg0_idx=155
  20. # HE center channel (chan + 6)
  21. he_oper_chwidth=1
  22. he_oper_centr_freq_seg0_idx=155
  23. # Country code
  24. country_code=US
  25. # Advertises the country_code and the set of allowed channels and transmit power levels
  26. ieee80211d=1
  27. # Enables support for 5GHz DFS channels (requires ieee80211d=1)
  28. ieee80211h=1
  29.  
  30. # Bridge interface
  31. bridge=br0
  32. # WiFi interface
  33. #interface=wlan0
  34. interface=mt7921WLAN
  35.  
  36. # Set hostapd driver (nl80211 is used with all Linux mac80211 (in-kernel) and modern Realtek drivers)
  37. driver=nl80211
  38.  
  39. #ctrl_interface=/var/run/hostapd
  40. #ctrl_interface_group=0
  41.  
  42. # Various settings
  43. #beacon_int=100
  44. #dtim_period=2
  45. #max_num_sta=32
  46. macaddr_acl=0
  47. #rts_threshold=2347
  48. #fragm_threshold=2346
  49. #send_probe_response=1
  50.  
  51. # Security
  52. # auth_algs=3 is required for WPA-3 SAE and WPA-3 SAE Transitional
  53. auth_algs=1
  54. ignore_broadcast_ssid=0
  55. # wpa=2 is required for WPA2 and WPA3 (read the docs)
  56. wpa=2
  57. rsn_pairwise=CCMP
  58. # only one wpa_key_mgmt= line should be active.
  59. # wpa_key_mgmt=WPA-PSK is required for WPA2-AES
  60. #wpa_key_mgmt=WPA-PSK
  61. # wpa_key_mgmt=SAE WPA-PSK is required for WPA3-AES Transitional
  62. #wpa_key_mgmt=SAE WPA-PSK
  63. # wpa_key_mgmt=SAE is required for WPA3-SAE
  64. wpa_key_mgmt=SAE
  65. #wpa_group_rekey=1800
  66. # ieee80211w=1 is required for WPA-3 SAE Transitional
  67. # ieee80211w=2 is required for WPA-3 SAE
  68. ieee80211w=2
  69. # if parameter is not set, 19 is the default value.
  70. #sae_groups=19 20 21 25 26
  71. # sae_require_mfp=1 is required for WPA-3 SAE Transitional
  72. #sae_require_mfp=1
  73. # if parameter is not 9 set, 5 is the default value.
  74. #sae_anti_clogging_threshold=10
  75.  
  76. # Note: Capabilities can vary even between adapters with the same chipset.
  77. #
  78. # Note: Only one ht_capab= line and one vht_capab= should be active. The
  79. # content of these lines is determined by the capabilities of your adapter.
  80. #
  81. # IEEE 802.11n
  82. ieee80211n=1
  83. wmm_enabled=1
  84. #
  85. # generic setting
  86. ##ht_capab=[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40]
  87. # mt7921k
  88. ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935]
  89.  
  90. # IEEE 802.11ac
  91. ieee80211ac=1
  92. #
  93. # generic setting
  94. #vht_capab=[SHORT-GI-80]
  95. # Working on MT7921K
  96. 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]
  97.  
  98. # IEEE 802.11ax
  99. ieee80211ax=1
  100. he_su_beamformer=1
  101. he_su_beamformee=1
  102. he_mu_beamformer=1
  103.  
  104. # end of hostapd-5g.conf
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement