bcm27xx: rpi4: update wifi script (#6440)

This commit is contained in:
AmadeusGhost 2021-02-26 17:38:37 +08:00 committed by GitHub
parent cc06227463
commit 87d9ed8cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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