forked from morrownr/rtl8852bu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
8852bu.conf
195 lines (195 loc) · 7.09 KB
/
8852bu.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# /etc/modprobe.d/8852bu.conf
#
# Purpose: Allow easy access to specific driver options.
#
# Edit the following line to change, add or delete options:
options 8852bu rtw_switch_usb_mode=0 rtw_he_enable=1 rtw_vht_enable=1 rtw_dfs_region_domain=0
#
# Note: To activate USB3 mode, change `rtw_switch_usb_mode=0` above to
# `rtw_switch_usb_mode=1`
#
# Note: The `options` line shown above is a good default for managed mode. Below is
# an example for AP mode. Modify as required after reading the documentation:
#options 8852bu rtw_switch_usb_mode=0 rtw_he_enable=2 rtw_vht_enable=2 rtw_dfs_region_domain=1
#
# Note: See documentation for rtw_dfs_region_domain below.
#
# After editing is complete, save this file (if using nano: Ctrl + x, y, Enter)
# and reboot to activate the changes.
#
# Documentation:
#
# -----
#
# USB options: ( rtw_switch_usb_mode )
#
# 0 = No switch (default)
# 1 = Switch from usb 2.0 to usb 3.0
# 2 = Switch from usb 3.0 to usb 2.0
#
# -----
#
# HE options ( rtw_he_enable )
#
# 0 = Disable
# 1 = Enable (default)
# 2 = Force auto enable (use only for AP mode)
#
# Notes:
# - A non-default setting can degrade performance greatly in managed mode.
# - Option 2 allows 80 MHz channel width for 5GHz AP mode, such as when
# you are using hostapd.
#
# -----
#
# VHT options ( rtw_vht_enable )
#
# 0 = Disable
# 1 = Enable (default)
# 2 = Force auto enable (use only for AP mode)
#
# Notes:
# - A non-default setting can degrade performance greatly in managed mode.
# - Option 2 allows 80 MHz channel width for 5GHz AP mode, such as when
# you are using hostapd.
#
# -----
#
# DFS Options ( rtw_dfs_region_domain )
#
# 0 = NONE (default)
# 1 = FCC
# 2 = MKK
# 3 = ETSI
#
# Notes:
# - Activates DFS channels in AP mode.
# - DFS FCC 80 MHz channels for hostapd: 52(58), 100(106), 116(122) and 132(138)
# - For more information: https://en.wikipedia.org/wiki/List_of_WLAN_channels
#
# Note: An AP needs to listen on a DFS channel for a period of 60 seconds
# before transmitting on the channel. If any radar pulses are detected,
# the AP cannot use that channel and will have to try a different channel.
#
# -----
#
# Wireless Mode options ( rtw_wireless_mode )
#
# Note: The following settings are for an AC class adapter and need to
# be updated for AX.
#
# 1 = 2.4GHz 802.11b
# 2 = 2.4GHz 802.11g
# 3 = 2.4GHz 802.11b/g
# 4 = 5GHz 802.11a
# 8 = 2.4Hz 802.11n
# 11 = 2.4GHz 802.11b/g/n
# 16 = 5GHz 802.11n
# 20 = 5GHz 802.11a/n
# 64 = 5GHz 802.11ac
# 84 = 5GHz 802.11a/n/ac
# 95 = 2.4GHz 802.11b/g/n 5GHz 802.11a/n/ac
#
# -----
#
# To see all options that are available:
#
# $ ls /sys/module/8852bu/parameters/
#
# if2name rtw_max_bss_cnt
# ifname rtw_max_roaming_times
# rtw_adaptivity_en rtw_mp_mode
# rtw_adaptivity_idle_probability rtw_network_mode
# rtw_adaptivity_mode rtw_OffEfuseMask
# rtw_adaptivity_th_edcca_hl_diff rtw_pci_dynamic_aspm_linkctrl
# rtw_adaptivity_th_l2h_ini rtw_phl_log_level
# rtw_ampdu_enable rtw_phydm_ability
# rtw_amplifier_type_2g rtw_phy_file_path
# rtw_amplifier_type_5g rtw_pll_ref_clk_sel
# rtw_amsdu_mode rtw_powertracking_type
# rtw_antdiv_cfg rtw_pwrtrim_enable
# rtw_antdiv_type rtw_qos_opt_enable
# rtw_ant_num rtw_quick_addba_req
# rtw_ap_fwd_b2u_flags rtw_quota_turbo_en
# rtw_ap_src_b2u_flags rtw_rfe_type
# rtw_band rtw_rfintfs
# rtw_band_type rtw_rfk_ability
# rtw_bcn_hint_valid_ms rtw_rf_path
# rtw_beamform_cap rtw_roch_extend_dur
# rtw_btcoex_enable rtw_roch_max_away_dur
# rtw_busy_thresh rtw_roch_min_home_dur
# rtw_bw_mode rtw_rrsr_value
# rtw_channel rtw_rx_ampdu_amsdu
# rtw_channel_plan rtw_rx_ampdu_sz_limit_1ss
# rtw_check_hw_status rtw_rx_ampdu_sz_limit_2ss
# rtw_chip_version rtw_rx_ampdu_sz_limit_3ss
# rtw_ch_switch_offload rtw_rx_ampdu_sz_limit_4ss
# rtw_country_code rtw_rxgain_offset_2g
# rtw_country_ie_slave_en_ifbmp rtw_rxgain_offset_5gh
# rtw_country_ie_slave_en_mode rtw_rxgain_offset_5gl
# rtw_country_ie_slave_en_role rtw_rxgain_offset_5gm
# rtw_country_ie_slave_flags rtw_rx_nss
# rtw_country_ie_slave_scan_int_ms rtw_scan_interval_thr
# rtw_decrypt_phy_file rtw_scan_pch_ex
# rtw_dfs_region_domain rtw_single_ant_path
# rtw_dis_ch_flags rtw_stbc_cap
# rtw_drv_ant_band_switch rtw_switch_usb_mode
# rtw_drv_log_level rtw_sw_proto_bf_cap_phy0
# rtw_dynamic_agg_enable rtw_sw_proto_bf_cap_phy1
# rtw_dyn_txbf rtw_target_tx_pwr_2g_a
# rtw_edcca_cs_th rtw_target_tx_pwr_2g_b
# rtw_edcca_th_2g rtw_target_tx_pwr_2g_c
# rtw_edcca_th_5g rtw_target_tx_pwr_2g_d
# rtw_en_dyn_rrsr rtw_target_tx_pwr_5g_a
# rtw_en_ecsa rtw_target_tx_pwr_5g_b
# rtw_en_gro rtw_target_tx_pwr_5g_c
# rtw_en_napi rtw_target_tx_pwr_5g_d
# rtw_en_tdls rtw_tx_ampdu_amsdu
# rtw_excl_chs rtw_tx_ampdu_num
# rtw_FileMaskEfuse rtw_TxBBSwing_2G
# rtw_full_ch_in_p2p_handshake rtw_TxBBSwing_5G
# rtw_fw_ofld_cap rtw_tx_bw_mode
# rtw_GLNA_type rtw_tx_nss
# rtw_halrf_ability rtw_tx_pwr_by_rate
# rtw_he_enable rtw_tx_pwr_lmt_enable
# rtw_hiq_filter rtw_usb_rxagg_mode
# rtw_ht_enable rtw_user_regd_always_apply
# rtw_hwpwrp_detect rtw_vcs_type
# rtw_hw_rts_en rtw_vht_24g_enable
# rtw_hw_wps_pbc rtw_vht_enable
# rtw_initmac rtw_vht_rx_mcs_map
# rtw_init_regd_always_apply rtw_vo_edca
# rtw_iqk_fw_offload rtw_vrtl_carrier_sense
# rtw_lbkmode rtw_wifi_spec
# rtw_load_phy_file rtw_wireless_mode
# rtw_low_power rtw_wmm_enable
# rtw_lowrate_two_xmit rtw_wowlan_sta_mix_mode
# rtw_max_amsdu_len
#
# -----
#
# To see the values that are in use:
#
# $ grep [[:alnum:]] /sys/module/8852bu/parameters/*
#
# -----
#
# hostapd setup information for rtl8852bu
# Note: The best settings can vary but the following may be a good place to start.
#
# /etc/modprobe.d/8852bu.conf
# options 8852bu rtw_switch_usb_mode=0 rtw_he_enable=2 rtw_vht_enable=2 rtw_dfs_region_domain=1
#
# Note: The best setting for `rtw_dfs_region_domain=` will depend on your location.
#
# /etc/hostapd/hostapd.conf
#
# hw ht capab: 19e3
#ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
#
# hw vht capab: 03c011b1
#vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE][MU-BEAMFORMEE][VHT-TXOP-PS][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# hw he capab: 0x0001120a0060
#
# -----