]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add regulatory database to VMs
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 15:05:10 +0000 (17:05 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 22 Oct 2021 14:17:28 +0000 (17:17 +0300)
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 <johannes.berg@intel.com>
tests/hwsim/vm/inside.sh
tests/hwsim/vm/regdb/regulatory.db [new file with mode: 0644]
tests/hwsim/vm/regdb/regulatory.db.p7s [new file with mode: 0644]

index 8ba7ce43d5c7692b08a052d194180ee8fd6eaea1..bfcbda631e4f0def607f4efa9b5988c056ba6c44 100755 (executable)
@@ -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 (file)
index 0000000..e0db5f8
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 (file)
index 0000000..730aef4
Binary files /dev/null and b/tests/hwsim/vm/regdb/regulatory.db.p7s differ