BananaPi BPI-M4-Zero: Install upstream wireless-regdb

Prevent dmesg spam: brcmf_set_channel set chanspec xxxxxxx fail

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
Patrick Yavitz 2025-07-09 12:34:11 -04:00 committed by c0rnelius
parent 2a38243de9
commit bc19c134ef
1 changed files with 15 additions and 0 deletions

View File

@ -23,3 +23,18 @@ function post_family_tweaks_bsp__bananapi_firmware() {
cp -fr $SRC/packages/bsp/bananapi/rtl_bt/* "${destination}"/lib/firmware/updates/rtl_bt/
fi
}
function post_family_tweaks_bsp__bananapi_wireless_regdb() {
if [[ `curl -I https://git.kernel.org 2>&1 | grep 'HTTP/2 200'` ]]; then
mkdir -p $SRC/cache
git clone --depth=1 -q https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git $SRC/cache/wireless-regdb
sleep .25
if [[ -f "$SRC/cache/wireless-regdb/regulatory.db" ]] && [[ -f "$SRC/cache/wireless-regdb/regulatory.db.p7s" ]]; then
display_alert "$BOARD" "Installing upstream wireless-regdb" "info"
mkdir -p "${destination}"/lib/firmware/updates
cp -f $SRC/cache/wireless-regdb/regulatory.db "${destination}"/lib/firmware/updates/regulatory.db
cp -f $SRC/cache/wireless-regdb/regulatory.db.p7s "${destination}"/lib/firmware/updates/regulatory.db.p7s
fi
rm -fdr $SRC/cache/wireless-regdb
fi
}