diff --git a/README.md b/README.md index ed7cb34..92409cb 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ confirm that this is the correct driver for your adapter. - Supported interface modes * Managed * Monitor (see FAQ) - * AP (see FAQ) + * AP * P2P-client * P2P-GO - Log level control @@ -135,7 +135,7 @@ Note: If you decide to buy an adapter that is supported by this driver, I recommend you search for an adapter that is `single-state and single-function`. Multi-function adapters, wifi and bluetooth, can be problematic. The rtl8821cu chipset is multi-fuction. The rtl8811cu chipset is single-function. For advice -about single-state and multi-state adapaters. click +about single-state and multi-state adapters. click [here](https://github.com/morrownr/USB-WiFi) and look for Main Menu item 1. ### Installation Information @@ -695,6 +695,12 @@ Simply add that option to the end of the `options` line, save and reboot. ----- +Contributors: + +@Jibun-no-Kage + +---- + #### [Go to Main Menu](https://github.com/morrownr/USB-WiFi) ----- diff --git a/docs/Guides/android_ref_codes_10.x/Realtek_Wi-Fi_SDK_for_Android_10.pdf b/docs/Guides/android_ref_codes_10.x/Realtek_Wi-Fi_SDK_for_Android_10.pdf new file mode 100644 index 0000000..c82966e Binary files /dev/null and b/docs/Guides/android_ref_codes_10.x/Realtek_Wi-Fi_SDK_for_Android_10.pdf differ diff --git a/docs/Guides/android_ref_codes_10.x/realtek_wifi_SDK_for_android_10_x_20200505.tar.gz b/docs/Guides/android_ref_codes_10.x/realtek_wifi_SDK_for_android_10_x_20200505.tar.gz new file mode 100644 index 0000000..8d9abe2 Binary files /dev/null and b/docs/Guides/android_ref_codes_10.x/realtek_wifi_SDK_for_android_10_x_20200505.tar.gz differ diff --git a/docs/Guides/android_ref_codes_10.x/supplicant_overlay_config.tar.gz b/docs/Guides/android_ref_codes_10.x/supplicant_overlay_config.tar.gz new file mode 100644 index 0000000..f78fb01 Binary files /dev/null and b/docs/Guides/android_ref_codes_10.x/supplicant_overlay_config.tar.gz differ diff --git a/docs/Guides/android_ref_codes_10.x/wpa_supplicant_8_10.x_rtw_29226.20200409.tar.gz b/docs/Guides/android_ref_codes_10.x/wpa_supplicant_8_10.x_rtw_29226.20200409.tar.gz new file mode 100644 index 0000000..b922b12 Binary files /dev/null and b/docs/Guides/android_ref_codes_10.x/wpa_supplicant_8_10.x_rtw_29226.20200409.tar.gz differ diff --git a/docs/Guides/android_ref_codes_11.x/Realtek_Wi-Fi_SDK_for_Android_11.pdf b/docs/Guides/android_ref_codes_11.x/Realtek_Wi-Fi_SDK_for_Android_11.pdf new file mode 100644 index 0000000..f3db2ff Binary files /dev/null and b/docs/Guides/android_ref_codes_11.x/Realtek_Wi-Fi_SDK_for_Android_11.pdf differ diff --git a/docs/Guides/android_ref_codes_11.x/realtek_wifi_SDK_for_android_11_x_20210416.tar.gz b/docs/Guides/android_ref_codes_11.x/realtek_wifi_SDK_for_android_11_x_20210416.tar.gz new file mode 100644 index 0000000..a5217a8 Binary files /dev/null and b/docs/Guides/android_ref_codes_11.x/realtek_wifi_SDK_for_android_11_x_20210416.tar.gz differ diff --git a/docs/Guides/android_ref_codes_11.x/supplicant_overlay_config.tar.gz b/docs/Guides/android_ref_codes_11.x/supplicant_overlay_config.tar.gz new file mode 100644 index 0000000..f78fb01 Binary files /dev/null and b/docs/Guides/android_ref_codes_11.x/supplicant_overlay_config.tar.gz differ diff --git a/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.patch b/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.patch new file mode 100644 index 0000000..919b234 --- /dev/null +++ b/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.patch @@ -0,0 +1,78 @@ +diff -Naur android-11.0.0.r3-original/src/ap/acs.c wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/ap/acs.c +--- android-11.0.0.r3-original/src/ap/acs.c 2020-10-05 15:07:38.000000000 +0800 ++++ wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/ap/acs.c 2020-10-05 15:45:36.000000000 +0800 +@@ -511,6 +511,17 @@ + return freq_range_list_includes(&iface->conf->acs_ch_list, chan->chan); + } + ++#ifdef REALTEK_WIFI_VENDOR ++static int is_in_freqlist(struct hostapd_iface *iface, ++ struct hostapd_channel_data *chan) ++{ ++ if (!iface->conf->acs_freq_list.num) ++ return 1; ++ ++ return freq_range_list_includes(&iface->conf->acs_freq_list, ++ chan->freq); ++} ++#endif + + static void acs_survey_mode_interference_factor( + struct hostapd_iface *iface, struct hostapd_hw_modes *mode) +@@ -527,6 +538,10 @@ + if (!is_in_chanlist(iface, chan)) + continue; + ++#ifdef REALTEK_WIFI_VENDOR ++ if (!is_in_freqlist(iface, chan)) ++ continue; ++#endif + wpa_printf(MSG_DEBUG, "ACS: Survey analysis for channel %d (%d MHz)", + chan->chan, chan->freq); + +@@ -651,6 +666,11 @@ + if (!is_in_chanlist(iface, chan)) + continue; + ++#ifdef REALTEK_WIFI_VENDOR ++ if (!is_in_freqlist(iface, chan)) ++ continue; ++#endif ++ + if (!chan_bw_allowed(chan, bw, 1, 1)) { + wpa_printf(MSG_DEBUG, + "ACS: Channel %d: BW %u is not supported", +@@ -1013,6 +1033,11 @@ + if (!is_in_chanlist(iface, chan)) + continue; + ++#ifdef REALTEK_WIFI_VENDOR ++ if (!is_in_freqlist(iface, chan)) ++ continue; ++#endif ++ + *freq++ = chan->freq; + } + +diff -Naur android-11.0.0.r3-original/src/common/rtw_version.h wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/common/rtw_version.h +--- android-11.0.0.r3-original/src/common/rtw_version.h 1970-01-01 08:00:00.000000000 +0800 ++++ wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/common/rtw_version.h 2020-10-05 15:49:54.000000000 +0800 +@@ -0,0 +1,4 @@ ++#ifndef RTW_VERSION_H ++ #define RTW_VERSION_H ++ #define RTW_VERSION "rtw_11.0.0.r3_20201005" ++#endif /* RTW_VERSION_H */ +diff -Naur android-11.0.0.r3-original/src/common/version.h wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/common/version.h +--- android-11.0.0.r3-original/src/common/version.h 2020-10-05 15:07:38.000000000 +0800 ++++ wpa_supplicant_8_11.0.0.r3_rtw_20201005/src/common/version.h 2020-10-05 15:10:32.000000000 +0800 +@@ -11,4 +11,10 @@ + + #define VERSION_STR "2.10-devel" VERSION_STR_POSTFIX GIT_VERSION_STR_POSTFIX + ++#ifdef REALTEK_WIFI_VENDOR ++ #include "rtw_version.h" ++ #undef VERSION_STR ++ #define VERSION_STR "2.10-devel" VERSION_STR_POSTFIX GIT_VERSION_STR_POSTFIX "_" RTW_VERSION ++#endif ++ + #endif /* VERSION_H */ diff --git a/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.tar.gz b/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.tar.gz new file mode 100644 index 0000000..db60d1c Binary files /dev/null and b/docs/Guides/android_ref_codes_11.x/wpa_supplicant_8_11.0.0.r3_rtw_20201005.tar.gz differ diff --git a/docs/Guides/btcoex/HowTo_debug_BT_coexistence.pdf b/docs/Guides/btcoex/HowTo_debug_BT_coexistence.pdf new file mode 100644 index 0000000..7fbb8db Binary files /dev/null and b/docs/Guides/btcoex/HowTo_debug_BT_coexistence.pdf differ diff --git a/docs/Guides/btcoex/script/btcoex_lnx.sh b/docs/Guides/btcoex/script/btcoex_lnx.sh new file mode 100644 index 0000000..aa810c4 --- /dev/null +++ b/docs/Guides/btcoex/script/btcoex_lnx.sh @@ -0,0 +1,52 @@ +# How To +# ./btcoex_lnx.sh [CHIP] [WLan Interface] [Log File] +#!/bin/sh + +BTDBG=0 + +CHIP=$1 +if test -z $CHIP +then +CHIP=rtl8723bs +fi + +INTF=$2 +if test -z $INTF +then +INTF=wlan0 +fi + +PROC_BTCOEX_PATH=/proc/net/$CHIP/$INTF/btcoex + +LOG_FILE=$3 +if test -z $LOG_FILE +then +LOG_FILE=btcoex.log +fi + +if test -f $LOG_FILE +then +touch $LOG_FILE +fi + +if [ $BTDBG -ne 0 ]; then +HCIDUMP_FILE=btcoex_hcidump.cfa +if test -f $HCIDUMP_FILE +then +rm -rf $HCIDUMP_FILE +fi +hcidump -w $HCIDUMP_FILE & +fi + +while true +do +cat $PROC_BTCOEX_PATH >> $LOG_FILE +echo "" >> $LOG_FILE +if [ $BTDBG -ne 0 ]; then +hciconfig pageparms >> $LOG_FILE +echo "" >> $LOG_FILE +hciconfig inqparams >> $LOG_FILE +fi +sleep 2 +done + diff --git a/docs/Guides/btcoex/script/btcoex_win.bat b/docs/Guides/btcoex/script/btcoex_win.bat new file mode 100644 index 0000000..ba26b96 --- /dev/null +++ b/docs/Guides/btcoex/script/btcoex_win.bat @@ -0,0 +1,18 @@ +@echo off +set AndroidADB=adb.exe +set dbgfile=/proc/net/rtl8723bs/wlan0/btcoex + +%AndroidADB% shell cat %dbgfile% +%AndroidADB% shell date > Coex_Dbg.log +%AndroidADB% shell cat %dbgfile% > Coex_Dbg.log +%AndroidADB% shell echo -e '\n\n\n' > Coex_Dbg.log + +:loop +cls +%AndroidADB% shell cat %dbgfile% +%AndroidADB% shell date >> Coex_Dbg.log +%AndroidADB% shell cat %dbgfile% >> Coex_Dbg.log +%AndroidADB% shell echo -e '\n\n\n' >> Coex_Dbg.log +rem timeout /t 2 || goto end +ping 1.1.1.1 -n 1 -w 2000 > nul +goto loop