bcm27xx: rpi4: update wireless script

This commit is contained in:
AmadeusGhost 2021-02-22 12:10:09 +08:00
parent 1f430bbe56
commit 246e88c8ad
2 changed files with 9 additions and 11 deletions

View File

@ -0,0 +1,9 @@
. /lib/functions.sh
case "$(board_name)" in
raspberrypi,4-model-b)
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
;;
esac
exit 0

View File

@ -1,11 +0,0 @@
#!/bin/sh
set_rpi_info() {
case "$(board_name)" in
raspberrypi,4-model-b)
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
;;
esac
}
boot_hook_add preinit_main set_rpi_info