mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-12-22 06:15:50 +00:00
fix one thing then another
This commit is contained in:
parent
0314109203
commit
25a173f403
45
8821cu.conf
45
8821cu.conf
@ -92,14 +92,18 @@ options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgn
|
|||||||
# *
|
# *
|
||||||
# * BIT0: Enable VHT SU Beamformer
|
# * BIT0: Enable VHT SU Beamformer
|
||||||
# * BIT1: Enable VHT SU Beamformee
|
# * BIT1: Enable VHT SU Beamformee
|
||||||
# * BIT2: Enable VHT MU Beamformer, depend on VHT SU Beamformer
|
# * BIT2: Enable VHT MU Beamformer, depend on VHT SU Beamformer (not supported)
|
||||||
# * BIT3: Enable VHT MU Beamformee, depend on VHT SU Beamformee
|
# * BIT3: Enable VHT MU Beamformee, depend on VHT SU Beamformee
|
||||||
# * BIT4: Enable HT Beamformer
|
|
||||||
# * BIT5: Enable HT Beamformee
|
|
||||||
# */
|
# */
|
||||||
#
|
#
|
||||||
# -----
|
# -----
|
||||||
#
|
#
|
||||||
|
# USB options: ( rtw_switch_usb_mode )
|
||||||
|
#
|
||||||
|
# Note: This option is not supported on this chipset. This chipset is USB2 only.
|
||||||
|
#
|
||||||
|
# -----
|
||||||
|
#
|
||||||
# DFS Options ( rtw_dfs_region_domain )
|
# DFS Options ( rtw_dfs_region_domain )
|
||||||
#
|
#
|
||||||
# 0 = NONE (default)
|
# 0 = NONE (default)
|
||||||
@ -134,6 +138,21 @@ options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgn
|
|||||||
#
|
#
|
||||||
# -----
|
# -----
|
||||||
#
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# -----
|
||||||
|
#
|
||||||
# Select RFE type ( rtw_RFE_type )
|
# Select RFE type ( rtw_RFE_type )
|
||||||
#
|
#
|
||||||
# 0 = (2-Ant, DPDT), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
|
# 0 = (2-Ant, DPDT), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
|
||||||
@ -153,21 +172,6 @@ options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgn
|
|||||||
#
|
#
|
||||||
# -----
|
# -----
|
||||||
#
|
#
|
||||||
# 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
|
|
||||||
#
|
|
||||||
# -----
|
|
||||||
#
|
|
||||||
# To see all options that are available:
|
# To see all options that are available:
|
||||||
#
|
#
|
||||||
# $ ls /sys/module/8821cu/parameters/
|
# $ ls /sys/module/8821cu/parameters/
|
||||||
@ -197,8 +201,3 @@ options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgn
|
|||||||
# vht_capab=[MAX-MPDU-11454][SHORT-GI-80][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
|
# vht_capab=[MAX-MPDU-11454][SHORT-GI-80][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
|
||||||
#
|
#
|
||||||
# -----
|
# -----
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
14
dkms-make.sh
14
dkms-make.sh
@ -1,16 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# SMEM needs to be set here if dkms build is not initiated by install-driver.sh
|
# SMEM needs to be set here if dkms build is not initiated by install-driver.sh
|
||||||
if [[ ! -z ${SMEM} ]]
|
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
|
||||||
then
|
|
||||||
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
|
|
||||||
fi
|
|
||||||
|
|
||||||
# SMEM needs to be set here if dkms build is not initiated by install-driver.sh
|
# SPROC needs to be set here if dkms build is not initiated by install-driver.sh
|
||||||
if [[ ! -z ${SPROC} ]]
|
SPROC=$(nproc)
|
||||||
then
|
|
||||||
SPROC=$(nproc)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Avoid Out of Memory condition in low-RAM systems by limiting core usage.
|
# Avoid Out of Memory condition in low-RAM systems by limiting core usage.
|
||||||
if [ "$SPROC" -gt 1 ]
|
if [ "$SPROC" -gt 1 ]
|
||||||
@ -23,3 +17,5 @@ fi
|
|||||||
|
|
||||||
kernelver=${kernelver:-$(uname -r)}
|
kernelver=${kernelver:-$(uname -r)}
|
||||||
make "-j$SPROC" "KVER=$kernelver" "KSRC=/lib/modules/$kernelver/build"
|
make "-j$SPROC" "KVER=$kernelver" "KSRC=/lib/modules/$kernelver/build"
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
@ -28,8 +28,8 @@ DRV_NAME="rtl${MODULE_NAME}"
|
|||||||
DRV_DIR="$(pwd)"
|
DRV_DIR="$(pwd)"
|
||||||
OPTIONS_FILE="${MODULE_NAME}.conf"
|
OPTIONS_FILE="${MODULE_NAME}.conf"
|
||||||
|
|
||||||
export SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
|
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
|
||||||
export SPROC=$(nproc)
|
SPROC=$(nproc)
|
||||||
|
|
||||||
# check to ensure sudo was used
|
# check to ensure sudo was used
|
||||||
if [[ $EUID -ne 0 ]]
|
if [[ $EUID -ne 0 ]]
|
||||||
@ -136,7 +136,7 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# display total number of cpu cores / in use
|
# display total number of cpu cores / in use
|
||||||
echo ": ${SPROC}/$(nproc) (SPROC)"
|
echo ": ${SPROC}/$(nproc) (SPROC/NPROC)"
|
||||||
|
|
||||||
# display kernel version
|
# display kernel version
|
||||||
echo ": ${KVER} (KVER)"
|
echo ": ${KVER} (KVER)"
|
||||||
|
Loading…
Reference in New Issue
Block a user