Skip to content

Commit

Permalink
add supplemental files
Browse files Browse the repository at this point in the history
  • Loading branch information
morrownr committed Oct 24, 2024
1 parent fd46650 commit 3bd1ac2
Show file tree
Hide file tree
Showing 10 changed files with 1,260 additions and 0 deletions.
203 changes: 203 additions & 0 deletions 8852cu.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# /etc/modprobe.d/8852cu.conf
#
# Purpose: Allow easy access to specific driver options.
#
# Edit the following line to change, add or delete options:
options 8852cu rtw_country_code=US rtw_switch_usb_mode=0 rtw_he_enable=1 rtw_vht_enable=1 rtw_dfs_region_domain=0
#
# Note: Please change rtw_country_code to your country code as outlined
# below.
#
# 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 after making the above 2 monification. Below is an example for AP
# mode. Modify as required after reading the documentation:
#
#options 8852cu rtw_country_code=US 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:
#
# -----
#
# Country Code options ( rtw_country_code )
#
# Note: Allows the Country Code to be set in cases where it is unable to
# be obtained otherwise.
#
# URL: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
#
# 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
#
# -----
#
# 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 and 160 MHz channel widths for 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.
#
# -----
#
# To see all options that are available:
#
# $ ls /sys/module/8852cu/parameters/
#
# if2name rtw_max_amsdu_len
# ifname rtw_max_bss_cnt
# rtw_adaptivity_en rtw_max_roaming_times
# rtw_adaptivity_idle_probability rtw_mp_mode
# rtw_adaptivity_mode rtw_network_mode
# rtw_adaptivity_th_edcca_hl_diff rtw_OffEfuseMask
# rtw_adaptivity_th_l2h_ini rtw_pci_dynamic_aspm_linkctrl
# 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_channel_plan_6g rtw_rx_ampdu_sz_limit_2ss
# rtw_check_hw_status rtw_rx_ampdu_sz_limit_3ss
# rtw_chip_version rtw_rx_ampdu_sz_limit_4ss
# rtw_ch_switch_offload rtw_rxgain_offset_2g
# rtw_country_code rtw_rxgain_offset_5gh
# rtw_country_ie_slave_en_ifbmp rtw_rxgain_offset_5gl
# rtw_country_ie_slave_en_mode rtw_rxgain_offset_5gm
# rtw_country_ie_slave_en_role rtw_rx_nss
# rtw_country_ie_slave_flags rtw_scan_interval_thr
# rtw_country_ie_slave_scan_int_ms rtw_scan_pch_ex
# rtw_decrypt_phy_file rtw_single_ant_path
# rtw_dfs_region_domain rtw_stbc_cap
# rtw_dis_ch_flags rtw_switch_usb_mode
# rtw_drv_ant_band_switch rtw_sw_proto_bf_cap_phy0
# rtw_drv_log_level rtw_sw_proto_bf_cap_phy1
# rtw_dynamic_agg_enable rtw_target_tx_pwr_2g_a
# rtw_dyn_txbf rtw_target_tx_pwr_2g_b
# rtw_edcca_cs_th rtw_target_tx_pwr_2g_c
# rtw_edcca_th_2g rtw_target_tx_pwr_2g_d
# rtw_edcca_th_5g rtw_target_tx_pwr_5g_a
# rtw_en_dyn_rrsr rtw_target_tx_pwr_5g_b
# rtw_en_ecsa rtw_target_tx_pwr_5g_c
# rtw_en_gro rtw_target_tx_pwr_5g_d
# rtw_en_napi rtw_tx_ampdu_amsdu
# rtw_excl_chs rtw_tx_ampdu_num
# rtw_excl_chs_6g rtw_TxBBSwing_2G
# rtw_FileMaskEfuse rtw_TxBBSwing_5G
# rtw_full_ch_in_p2p_handshake 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
#
# -----
#
# To see the values that are in use:
#
# $ grep [[:alnum:]] /sys/module/8852cu/parameters/*
#
# -----
#
# hostapd setup information for rtl8852cu
# Note: The best settings can vary but the following may be a good place to start.
#
# /etc/modprobe.d/8852cu.conf
# options 8852cu rtw_country_code=US 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
#
# Band 1: HT Capabilities: 19e3
# 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]
#
# Band 2: HT Capabilities: 19e3
# 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]

# Band 2: VHT Capabilities: 03c011f5
# hw vht capab: 03c011f5
#? vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE][MU-BEAMFORMEE][MU-BEAMFORMER][VHT-TXOP-PS][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# Band 1: HE MAC Capabilities: 0x0001120a0060
# Band 2: HE MAC Capabilities: 0x0801120a8060
# Band 4: HE MAC Capabilities: 0x0801120a8060
#
# -----
Loading

0 comments on commit 3bd1ac2

Please sign in to comment.