88x2bu-20210702/88x2bu.conf

177 lines
4.5 KiB
Plaintext
Raw Normal View History

2021-10-27 12:51:22 -05:00
# /etc/modprobe.d/88x2bu.conf
#
# Purpose: Allow easy access to specific driver options.
#
2022-12-20 23:53:39 -06:00
# Note: pull-request: wireless-next-2022-12-12
# wireless-next patches for v6.2
2022-12-20 23:53:39 -06:00
# wifi: rtw88: Add rtw8822bu chipset support
#
# The following line blacklists (deactivates) the above in-kernel driver.
2022-12-20 23:53:39 -06:00
blacklist rtw88_8822bu
#
2021-10-27 12:51:22 -05:00
# Edit the following line to change, add or delete options:
2024-03-29 13:29:17 -05:00
options 88x2bu rtw_switch_usb_mode=0 rtw_led_ctrl=1
2022-12-30 18:52:52 -06:00
#
# Note: To activate USB3 mode, change rtw_switch_usb_mode above to rtw_switch_usb_mode=1
2021-10-27 12:51:22 -05:00
#
2023-01-09 12:27:31 -06:00
# Note: The above `options` line is a good default for managed mode. Below is
# an example for AP mode. Modify as required after reading the documentation:
2024-03-29 13:29:17 -05:00
#options 88x2bu rtw_switch_usb_mode=1 rtw_led_ctrl=1 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_dfs_region_domain=1
2023-01-09 12:27:31 -06:00
#
2022-02-17 22:42:32 -06:00
# After editing is complete, save this file (if using nano: Ctrl + x, y, Enter)
2021-10-27 13:37:41 -05:00
# and reboot to activate the changes.
2021-10-27 12:51:22 -05:00
#
# Documentation:
#
# -----
#
2022-02-17 22:42:32 -06:00
# Log options ( rtw_drv_log_level )
2021-10-27 12:51:22 -05:00
#
2023-09-18 14:05:22 -05:00
# 0 = NONE (default)
# 1 = ALWAYS
2021-10-27 12:51:22 -05:00
# 2 = ERROR
# 3 = WARNING
# 4 = INFO
# 5 = DEBUG
# 6 = MAX
#
# -----
#
2022-02-17 22:42:32 -06:00
# LED options ( rtw_led_ctrl )
2021-10-27 12:51:22 -05:00
#
# 0 = Always off
# 1 = Normal blink (default)
# 2 = Always on
#
# -----
#
2022-02-17 22:42:32 -06:00
# VHT options ( rtw_vht_enable )
2021-10-27 12:51:22 -05:00
#
# 0 = Disable
# 1 = Enable (default)
# 2 = Force auto enable (use only for 5 GHz AP mode)
#
# Notes:
# - A non-default setting can degrade performance greatly in managed mode.
2021-10-27 13:37:41 -05:00
# - Option 2 allows 80 MHz channel width for 5GHz AP mode, such as when
# you are using hostapd.
2021-10-27 12:51:22 -05:00
#
# -----
#
2022-02-17 22:42:32 -06:00
# Power options ( rtw_power_mgnt )
2021-10-27 12:51:22 -05:00
#
# 0 = Disable power saving
# 1 = Power saving on, minPS (default)
# 2 = Power saving on, maxPS (not recommended for AP mode)
#
# -----
#
# Beamforming options ( rtw_beamform_cap )
#
# 1 = SU Beamformer (recommended for AP mode)
# 2 = SU Beamformee
# 3 = SU Beamformer and SU Beamformee
# 10= SU Beamformee and MU Beamformee (default)
# 11= SU Beamformer and SU Beamformee and MU Beamformee
#
# Note: MU Beamformer is not supported.
#
# From the source code:
#
# /* /os_dep/linux/os_intfs.c
# *
# * BIT0: Enable VHT SU Beamformer
# * BIT1: Enable VHT SU Beamformee
# * BIT2: Enable VHT MU Beamformer, depend on VHT SU Beamformer (not supported)
# * BIT3: Enable VHT MU Beamformee, depend on VHT SU Beamformee
# */
#
# -----
#
2023-01-09 12:27:31 -06:00
# 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
#
# -----
#
2021-10-27 13:37:41 -05:00
# DFS Options ( rtw_dfs_region_domain )
2021-10-27 12:51:22 -05:00
#
2021-11-05 07:59:56 -05:00
# 0 = NONE (default)
2021-10-27 12:51:22 -05:00
# 1 = FCC
# 2 = MKK
# 3 = ETSI
#
2021-10-28 21:57:40 -05:00
# 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
2021-10-27 12:51:22 -05:00
#
2022-02-17 22:42:32 -06:00
# 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.
#
2021-10-27 12:51:22 -05:00
# -----
#
2022-02-18 11:18:06 -06:00
# Wireless Mode options ( rtw_wireless_mode )
#
# 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 (default)
#
# -----
#
2023-01-09 12:27:31 -06:00
# Country Code options ( rtw_country_code )
2021-10-27 12:51:22 -05:00
#
2023-01-09 12:27:31 -06:00
# Note: Allows the Country Code to be set in cases where it is unable to
# be obtained otherwise.
2021-10-27 12:51:22 -05:00
#
2023-01-09 12:27:31 -06:00
# URL: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
2022-12-30 15:14:47 -06:00
#
2023-01-09 12:27:31 -06:00
# Example for the US: rtw_country_code=US
# Example for Panama: rtw_country_code=PA
# Example for Norway: rtw_country_code=NO
# Example for Kuwait: rtw_country_code=KW
# Example for Taiwan: rtw_country_code=TW
2022-12-30 15:14:47 -06:00
#
2021-10-27 12:51:22 -05:00
# -----
#
# To see all options that are available:
#
# $ ls /sys/module/88x2bu/parameters/
#
# -----
#
# To see the values that are in use:
#
# $ grep [[:alnum:]] /sys/module/88x2bu/parameters/*
#
# -----
2021-11-05 07:59:56 -05:00
#
# hostapd setup information for rtl88x2bu
2021-12-05 12:10:43 -06:00
# Note: The best settings can vary but the following may be a good place to start.
2021-11-05 07:59:56 -05:00
#
# /etc/modprobe.d/88x2bu.conf
# options 88x2bu rtw_drv_log_level=0 rtw_led_ctrl=0 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_beamform_cap=0 rtw_dfs_region_domain=1 rtw_switch_usb_mode=1
#
2022-02-17 22:42:32 -06:00
# Note: The best setting for `rtw_dfs_region_domain=` will depend on your location.
#
2021-11-05 07:59:56 -05:00
# /etc/hostapd/hostapd.conf
#
# hw ht capab: 0x963
# ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]
#
# hw vht capab: 0x03c001a2
# vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# -----