Skip to content

Commit

Permalink
1.29 - WiFi stability
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRemote committed Sep 28, 2022
1 parent 7c4cd5e commit 7ad03aa
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
5 changes: 2 additions & 3 deletions OrangePiRDA/external/common/rootfs/100-fs-warning
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

BOARD=`hostname`
echo "\033[31m\033[1m***********************************************"
echo "Welcome to ${BOARD}:"
echo "At first! please configure your ${BOARD}:"
echo "Welcome to ${BOARD} - Legendary"
echo "Please configure your ${BOARD} with:"
echo "sudo orangepi-config"
echo "Have good trip on ${BOARD}!"
echo "***********************************************\033[22m\033[37m"
4 changes: 2 additions & 2 deletions OrangePiRDA/kernel/arch/arm/configs/i96_linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-legendary-v1.28"
CONFIG_LOCALVERSION="-legendary-v1.29"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
Expand Down Expand Up @@ -921,7 +921,7 @@ CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
CONFIG_CFG80211_DEVELOPER_WARNINGS=y
CONFIG_CFG80211_REG_DEBUG=y
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
# CONFIG_CFG80211_DEFAULT_PS is not set
CONFIG_CFG80211_DEBUGFS=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ struct parsed_vndr_ies {
/* Smallest mW value that will round up to the first table entry, QDBM_OFFSET.
* Value is ( mW(QDBM_OFFSET - 1) + mW(QDBM_OFFSET) ) / 2
*/
#define QDBM_TABLE_LOW_BOUND 26607 /* Low bound */
#define QDBM_TABLE_LOW_BOUND 42170 /* Low bound */

/* Largest mW value that will round down to the last table entry,
* QDBM_OFFSET + QDBM_TABLE_LEN-1.
Expand Down Expand Up @@ -1694,6 +1694,8 @@ static s32 cfg80211_get_tx_power(struct wiphy *wiphy,
*dbm = (s32) wland_qdbm_to_mw(result);
if (cfg->conf->tx_power > 20)
cfg->conf->tx_power = 20;
if (cfg->conf->tx_power == 0)
cfg->conf->tx_power = 20;
if (cfg->conf->tx_power < 6)
cfg->conf->tx_power = 6;
*dbm = cfg->conf->tx_power;
Expand Down
2 changes: 1 addition & 1 deletion OrangePiRDA/scripts/lib/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build_rk_image() {
}

build_rda_image() {
VER="v1.28"
VER="v1.29"
IMAGENAME="Legendary_OrangePi_${BOARD}_${OS}_${DISTRO}_${IMAGETYPE}_${VER}"
IMAGE="${BUILD}/images/$IMAGENAME.img"

Expand Down
14 changes: 9 additions & 5 deletions OrangePiRDA/scripts/lib/distributions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ add_rclocal_service() {
cat >"$DEST/lib/systemd/system/rc-local.service" <<EOF
[Unit]
Description=rc.local service
After=network.target
[Service]
ExecStart=/etc/rc.local
Expand Down Expand Up @@ -608,7 +609,6 @@ prepare_rootfs_server() {
elif [ "$DISTRO" = "sid" -o "$DISTRO" = "stretch" -o "$DISTRO" = "stable" -o "$DISTRO" = "bullseye" ]; then
DEB=debian
DEBUSER=orangepi
EXTRADEBS=""
ADDPPACMD=
DISPTOOLCMD=
else
Expand Down Expand Up @@ -697,20 +697,24 @@ server_setup() {
if [ -e "${EXTER}/presets/BTMAC" ]; then
cp "${EXTER}/presets/BTMAC" "$DEST/data/misc/bluetooth/BTMAC"
fi
# Copy preconfigured network and crda file if they exist
# Copy preconfigured network/crda/timezone file if they exist
if [ -e "${EXTER}/presets/interfaces" ]; then
cp "${EXTER}/presets/interfaces" "$DEST/etc/network/interfaces"
fi
if [ -e "${EXTER}/presets/crda" ]; then
cp "${EXTER}/presets/crda" "$DEST/etc/default/crda"
fi
if [ -e "${EXTER}/presets/timezone" ]; then
cp "${EXTER}/presets/timezone" "$DEST/etc/timezone"
fi
# Preset locales if locales file is present
if [ -e "${EXTER}/presets/locales" ]; then
set_locale
fi
# Pregenerate SSH keys if present
if [ -e "${EXTER}/presets/ssh" ]; then
pregenerate_ssh_keys
# Copy SSH keys if present
if [ -d "${EXTER}/presets/ssh" ]; then
mkdir -p "$DEST/etc/ssh/"
cp -r "${EXTER}/presets/ssh" "$DEST/etc/ssh"
fi

if [ ! -d $DEST/lib/modules ]; then
Expand Down
4 changes: 2 additions & 2 deletions OrangePiRDA/uboot/kernel/arch/arm/configs/rda8810_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-legendary-v1.28"
CONFIG_LOCALVERSION="-legendary-v1.29"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
Expand Down Expand Up @@ -921,7 +921,7 @@ CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
CONFIG_CFG80211_DEVELOPER_WARNINGS=y
CONFIG_CFG80211_REG_DEBUG=y
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
# CONFIG_CFG80211_DEFAULT_PS is not set
CONFIG_CFG80211_DEBUGFS=y
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ Ubuntu is not building correctly yet.<br>

<h2>Version History</h2>
<ol>
<li>September 27th 2022 - V1.28 - Restore some WiFi regulatory settings</li>
<li>September 28th 2022 - V1.29 - Adjust lower bound of txpower curve to improve WiFi stability -- you can increase WiFi debugging verbosity with echo 4 > /sys/kernel/debug/rdawfmac/mmc*/dbglevel. You can use 5 for the highest level of verbosity to help debug the driver (still lots of problems to find / solve and this will help see what the driver is doing)</li>
<li>September 27th 2022 - V1.28 - Restore some WiFi regulatory settings such as country code '99' which has a special meaning in the cfg80211 driver</li>
<li>September 27th 2022 - V1.27 - Fixed WiFi txpower driver settings (can be set between 10-20dBm with iwconfig wlan0 txpower 20 or iw dev wlan0 set txpower fixed 2000)</li>
<li>September 27th 2022 - V1.26 - Add CAN module support for MCP251x (thanks MZA, <a href="https://github.com/MehdiZAABAR/OrangePi-I96-Work/">OrangePi-I96-Work</a>), add can-utils package</li>
<li>September 26th 2022 - V1.25 - Removed deprecated default ssh options, more WiFi driver cleanup</li>
Expand Down

0 comments on commit 7ad03aa

Please sign in to comment.