From bddcbde02f775f585b07d40e2e72a607a25da580 Mon Sep 17 00:00:00 2001 From: cronyx <cronyx@nodasoft.com> Date: Fri, 15 Jul 2022 18:27:57 +0300 Subject: [PATCH 1/2] disable power save for fpv profiles, added bandwidth, stbc, mcs_index to wfb.conf --- .../board/gk7205v200/kernel/gk7205v200.generic-fpv.config | 2 +- .../board/gk7205v200/kernel/gk7205v300.generic-fpv.config | 2 +- .../hi3516ev200/kernel/hi3516ev300.generic-fpv.config | 2 +- general/package/wifibroadcast/files/S98wfb | 8 ++++++-- general/package/wifibroadcast/files/wfb.conf | 7 +++++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v200.generic-fpv.config b/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v200.generic-fpv.config index 56e6d052..d8c76f80 100644 --- a/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v200.generic-fpv.config +++ b/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v200.generic-fpv.config @@ -712,7 +712,7 @@ CONFIG_WEXT_PROC=y CONFIG_CFG80211=m # CONFIG_NL80211_TESTMODE is not set # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set -CONFIG_CFG80211_DEFAULT_PS=y +# CONFIG_CFG80211_DEFAULT_PS is not set CONFIG_CFG80211_INTERNAL_REGDB=y # CONFIG_CFG80211_CRDA_SUPPORT is not set CONFIG_CFG80211_WEXT=y diff --git a/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v300.generic-fpv.config b/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v300.generic-fpv.config index 8f69c671..cdc8f5e8 100644 --- a/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v300.generic-fpv.config +++ b/br-ext-chip-goke/board/gk7205v200/kernel/gk7205v300.generic-fpv.config @@ -712,7 +712,7 @@ CONFIG_WEXT_PROC=y CONFIG_CFG80211=m # CONFIG_NL80211_TESTMODE is not set # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set -CONFIG_CFG80211_DEFAULT_PS=y +# CONFIG_CFG80211_DEFAULT_PS is not set CONFIG_CFG80211_INTERNAL_REGDB=y # CONFIG_CFG80211_CRDA_SUPPORT is not set CONFIG_CFG80211_WEXT=y diff --git a/br-ext-chip-hisilicon/board/hi3516ev200/kernel/hi3516ev300.generic-fpv.config b/br-ext-chip-hisilicon/board/hi3516ev200/kernel/hi3516ev300.generic-fpv.config index 0525c52e..faf2f88b 100644 --- a/br-ext-chip-hisilicon/board/hi3516ev200/kernel/hi3516ev300.generic-fpv.config +++ b/br-ext-chip-hisilicon/board/hi3516ev200/kernel/hi3516ev300.generic-fpv.config @@ -730,7 +730,7 @@ CONFIG_WEXT_PRIV=y CONFIG_CFG80211=m # CONFIG_NL80211_TESTMODE is not set # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set -CONFIG_CFG80211_DEFAULT_PS=y +# CONFIG_CFG80211_DEFAULT_PS is not set CONFIG_CFG80211_INTERNAL_REGDB=y # CONFIG_CFG80211_CRDA_SUPPORT is not set CONFIG_CFG80211_WEXT=y diff --git a/general/package/wifibroadcast/files/S98wfb b/general/package/wifibroadcast/files/S98wfb index 1aacf4db..bdfc7a32 100755 --- a/general/package/wifibroadcast/files/S98wfb +++ b/general/package/wifibroadcast/files/S98wfb @@ -5,13 +5,17 @@ config="/etc/wfb.conf" keydir="/etc" + wlan=`cat ${config} | grep wlan | cut -f 2 -d '='` region=`cat ${config} | grep region | cut -f 2 -d '='` channel=`cat ${config} | grep channel | cut -f 2 -d '='` +bandwidth=`cat ${config} | grep bandwidth | cut -f 2 -d '='` +stbc=`cat ${config} | grep stbc | cut -f 2 -d '='` +mcs_index=`cat ${config} | grep mcs_index | cut -f 2 -d '='` load_rtl() { modprobe cfg80211 - modprobe 88XXau + modprobe 88XXau rtw_monitor_disable_1m=1 } load_ath() { @@ -36,7 +40,7 @@ load_interface() { } start_wfb() { - wfb_tx -p 1 -u 5600 -K ${keydir}/drone.key ${wlan} & + wfb_tx -p 1 -u 5600 -K ${keydir}/drone.key -B ${bandwidth} -M ${mcs_index} -S ${stbc} ${wlan} & } case "$1" in diff --git a/general/package/wifibroadcast/files/wfb.conf b/general/package/wifibroadcast/files/wfb.conf index 7e788d99..38e89603 100644 --- a/general/package/wifibroadcast/files/wfb.conf +++ b/general/package/wifibroadcast/files/wfb.conf @@ -1,5 +1,8 @@ -daemon=0 +daemon=1 driver=rtl wlan=wlan0 region=BO -channel=6 +channel=14 +bandwidth=20 +stbc=1 +mcs_index=1 From a944c365a4b1a572b548935cbb0829d0d079f29c Mon Sep 17 00:00:00 2001 From: cronyx <cronyx@nodasoft.com> Date: Fri, 15 Jul 2022 18:29:57 +0300 Subject: [PATCH 2/2] disable wfb service by default --- general/package/wifibroadcast/files/wfb.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/package/wifibroadcast/files/wfb.conf b/general/package/wifibroadcast/files/wfb.conf index 38e89603..6d8e29f9 100644 --- a/general/package/wifibroadcast/files/wfb.conf +++ b/general/package/wifibroadcast/files/wfb.conf @@ -1,4 +1,4 @@ -daemon=1 +daemon=0 driver=rtl wlan=wlan0 region=BO