From: Johannes Berg Date: Thu, 23 Sep 2021 15:05:10 +0000 (+0200) Subject: tests: Add regulatory database to VMs X-Git-Tag: hostap_2_10~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a29c2399a77ac843c83deb0ca1ec769793c07b77;p=thirdparty%2Fhostap.git tests: Add regulatory database to VMs Add a common well-known regulatory database to the test VMs during runs to remove one thing to have correct in the host. Signed-off-by: Johannes Berg --- diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh index 8ba7ce43d..bfcbda631 100755 --- a/tests/hwsim/vm/inside.sh +++ b/tests/hwsim/vm/inside.sh @@ -38,6 +38,8 @@ TELNET=$(sed 's/.*TELNET=\([^ ]*\) .*/\1/' /proc/cmdline) ARGS=$(sed 's/.*ARGS=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) LOGDIR=$(sed 's/.*LOGDIR=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) +mount --bind "$TESTDIR/vm/regdb/" /lib/firmware + # create /dev entries we need mknod -m 660 /dev/ttyS0 c 4 64 mknod -m 666 /dev/ptmx c 5 2 diff --git a/tests/hwsim/vm/regdb/regulatory.db b/tests/hwsim/vm/regdb/regulatory.db new file mode 100644 index 000000000..e0db5f8be Binary files /dev/null and b/tests/hwsim/vm/regdb/regulatory.db differ diff --git a/tests/hwsim/vm/regdb/regulatory.db.p7s b/tests/hwsim/vm/regdb/regulatory.db.p7s new file mode 100644 index 000000000..730aef4f3 Binary files /dev/null and b/tests/hwsim/vm/regdb/regulatory.db.p7s differ