Skip to content

Commit

Permalink
Wireless drivers: remove driver for 8822BS applicable for old kernels…
Browse files Browse the repository at this point in the history
… < 5.16

Git was removed and there is not need to restore it.
  • Loading branch information
igorpecovnik authored and armbianworker committed Oct 18, 2024
1 parent c160595 commit 7850d77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion lib/functions/compilation/patch/drivers-harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ function kernel_drivers_prepare_harness() {
driver_rtl8822cs_bt
driver_rtl8723DS
driver_rtl8723DU
driver_rtl8822BS
driver_uwe5622
driver_rtl8723cs
)
Expand Down
44 changes: 0 additions & 44 deletions lib/functions/compilation/patch/drivers_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -735,50 +735,6 @@ driver_rtl8822cs_bt() {
fi
}

driver_rtl8822BS() {

# Wireless drivers for Realtek 8822BS chipsets

if linux-version compare "${version}" ge 4.4 && linux-version compare "${version}" le 5.16; then

# Attach to specific commit (was "branch:local_rtl8822bs")
local rtl8822bsver='commit:ee88babf55ad75b49c3312f997fd289e5ca4016b' # Commit date: Apr 30, 2022 (please update when updating commit ref)

display_alert "Adding" "Wireless drivers for Realtek 8822BS chipsets ${rtl8822bsver}" "info"

fetch_from_repo "$GITHUB_SOURCE/150balbes/wifi" "rtl8822bs" "${rtl8822bsver}" "yes" # https://github.com/150balbes/wifi
cd "$kerneldir" || exit
rm -rf "$kerneldir/drivers/net/wireless/rtl8822bs"
mkdir -p "$kerneldir/drivers/net/wireless/rtl8822bs/"
cp -R "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}"/{core,hal,include,os_dep,platform,bluetooth,getAP,rtl8822b.mk} \
"$kerneldir/drivers/net/wireless/rtl8822bs"

# Remove some leftover binary files that shouldn't be there. firmware?
rm -fv "$kerneldir/drivers/net/wireless/rtl8822bs/bluetooth/rtl8822b_config.bin" "$kerneldir/drivers/net/wireless/rtl8822bs/bluetooth/rtl8822b_fw.bin"

# Makefile
cp "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Makefile" \
"$kerneldir/drivers/net/wireless/rtl8822bs/Makefile"

# Kconfig
sed -i 's/---help---/help/g' "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Kconfig"
cp "${SRC}/cache/sources/rtl8822bs/${rtl8822bsver#*:}/Kconfig" \
"$kerneldir/drivers/net/wireless/rtl8822bs/Kconfig"

# Add to section Makefile
echo "obj-\$(CONFIG_RTL8822BS) += rtl8822bs/" >> "$kerneldir/drivers/net/wireless/Makefile"
sed -i '/source "drivers\/net\/wireless\/ti\/Kconfig"/a source "drivers\/net\/wireless\/rtl8822bs\/Kconfig"' \
"$kerneldir/drivers/net/wireless/Kconfig"

process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-uninitialized-cfg80211-chan-def.patch" "applying"
process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-p2p-go-advertising.patch" "applying"
process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-misleading-indentation.patch" "applying"

# fix compilation for kernels >= 5.4
process_patch_file "${SRC}/patch/misc/wireless-rtl8822bs-Fix-VFS-import.patch" "applying"
fi
}

driver_rtl8188EU_rtl8188ETV() {

# Wireless drivers for Realtek 8188EU 8188EUS and 8188ETV chipsets
Expand Down

0 comments on commit 7850d77

Please sign in to comment.