-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b6ad883
Showing
701 changed files
with
772,515 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# /etc/modprobe.d/8821cu.conf | ||
# | ||
# Purpose: Allow easy access to specific driver options. | ||
# | ||
# Edit the following line to change, add or delete options: | ||
options 8821cu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=1 rtw_beamform_cap=0 rtw_dfs_region_domain=0 | ||
# | ||
# After editing is complete, save this file (if using nano: Ctrl+X, Y, Enter) | ||
# and reboot to activate the changes. | ||
# | ||
# Documentation: | ||
# | ||
# ----- | ||
# | ||
# Log options: ( rtw_drv_log_level ) | ||
# | ||
# 0 = NONE (default) | ||
# 1 = ALWAYS | ||
# 2 = ERROR | ||
# 3 = WARNING | ||
# 4 = INFO | ||
# 5 = DEBUG | ||
# 6 = MAX | ||
# | ||
# Note: You can save a log file that only includes RTW log entries by running | ||
# the following in a terminal: | ||
# | ||
# sudo ./save-log.sh | ||
# | ||
# Note: The name of the log file will be ```rtw.log```. | ||
# | ||
# ----- | ||
# | ||
# LED options: ( rtw_led_ctrl ) | ||
# | ||
# 0 = Always off | ||
# 1 = Normal blink (default) | ||
# 2 = Always on | ||
# | ||
# ----- | ||
# | ||
# VHT options: ( rtw_vht_enable ) | ||
# | ||
# 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. | ||
# - Option 2 allows 80 MHz channel width for 5GHz AP mode, such as when | ||
# you are using hostapd. | ||
# | ||
# ----- | ||
# | ||
# Power options: ( rtw_power_mgnt ) | ||
# | ||
# 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 ) | ||
# | ||
# 0 = Disable (default) | ||
# 1 = SU Beamformer | ||
# 2 = SU Beamformee | ||
# 10= SU Beamformee and MU Beamformee | ||
# | ||
# Note: MU Beamformer is not supported. | ||
# | ||
# ----- | ||
# | ||
# 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. | ||
# | ||
# ----- | ||
# | ||
# Select P2P interface in concurrent mode: ( rtw_sel_p2p_iface ) | ||
# | ||
# 0 = Sets interface 0 to be p2p interface | ||
# 1 = Sets interface 1 to be p2p interface (default) | ||
# | ||
# ----- | ||
# | ||
# To see all options that are available: | ||
# | ||
# $ ls /sys/module/8821cu/parameters/ | ||
# | ||
# ----- | ||
# | ||
# To see the values that are in use: | ||
# | ||
# $ grep [[:alnum:]] /sys/module/8821cu/parameters/* | ||
# | ||
# ----- | ||
# | ||
# hostapd setup information for rtl8821cu | ||
# Note: The best settings can vary but the following may be a good place to start. | ||
# | ||
# /etc/modprobe.d/8821cu.conf | ||
# options 8821cu 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 | ||
# | ||
# Note: The best setting for `rtw_dfs_region_domain=` will depend on your location. | ||
# | ||
# /etc/hostapd/hostapd.conf | ||
# | ||
# hw ht capab: 0x862 | ||
# ht_capab=[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935] | ||
# | ||
# hw vht capab: 0x03c00022 | ||
# vht_capab=[MAX-MPDU-11454][SHORT-GI-80][HTC-VHT][MAX-A-MPDU-LEN-EXP7] | ||
# | ||
# ----- | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# | ||
# Purpose: Change settings in the Makefile to support compiling for Raspberry Pi OS (64 bit). | ||
# | ||
# To make this file executable: | ||
# | ||
# $ chmod +x raspiOS-64.sh | ||
# | ||
# To execute this file: | ||
# | ||
# $ ./raspiOS-64.sh | ||
|
||
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile | ||
RESULT=$? | ||
|
||
if [[ "$RESULT" != "0" ]]; then | ||
echo "An error occurred and I386 support was not turned off in Makefile." | ||
exit 1 | ||
else | ||
echo "I386 support was turned off in Makefile as planned." | ||
fi | ||
|
||
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile | ||
RESULT=$? | ||
|
||
if [[ "$RESULT" != "0" ]]; then | ||
echo "An error occurred and Raspberry Pi OS (64 bit) support was not turned on in Makefile." | ||
exit 1 | ||
else | ||
echo "Raspberry Pi OS (64 bit) support was turned on in Makefile as planned." | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# | ||
# Purpose: Change settings in the Makefile to support compiling for Raspberry Pi OS (32 bit). | ||
# | ||
# To make this file executable (if necessary): | ||
# | ||
# $ chmod +x raspiOS-32.sh | ||
# | ||
# To execute this file: | ||
# | ||
# $ ./raspiOS-32.sh | ||
|
||
# getconf LONG_BIT (need to work on this) | ||
|
||
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile | ||
RESULT=$? | ||
|
||
if [[ "$RESULT" != "0" ]]; then | ||
echo "An error occurred and I386 support was not turned off in Makefile." | ||
exit 1 | ||
else | ||
echo "I386 support was turned off in Makefile as planned." | ||
fi | ||
|
||
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile | ||
RESULT=$? | ||
|
||
if [[ "$RESULT" != "0" ]]; then | ||
echo "An error occurred and Raspberry Pi OS (32 bit) support was not turned on in Makefile." | ||
exit 1 | ||
else | ||
echo "Raspberry Pi OS (32 bit) support was turned on in Makefile as planned." | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
config RTL8821CU | ||
tristate "Realtek 8821C USB WiFi" | ||
depends on USB | ||
select WIRELESS_EXT | ||
help | ||
Help message of RTL8821CU | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright(c) 2007 - 2021 Realtek Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of version 2 of the GNU General Public License as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
* | ||
*****************************************************************************/ |
Oops, something went wrong.