tests: Reload correct regdb if possible/needed
If cfg80211 is built into the kernel, then it may/will have
loaded the regdb before we mount our own /lib/firmware. This
may result in using the wrong regulatory data. Fix this by
using iw to reload the regdb after mounting it.
Fixes: a29c2399a7
("tests: Add regulatory database to VMs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
7ed17eee3a
commit
6f844fa787
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ fi
|
|||
|
||||
mount --bind "$TESTDIR/vm/regdb/" /lib/firmware
|
||||
|
||||
# reload reg if (and only if) cfg80211.ko is already loaded
|
||||
iw reg reload || true
|
||||
|
||||
# create /dev entries we need
|
||||
mknod -m 660 /dev/ttyS0 c 4 64
|
||||
mknod -m 666 /dev/ptmx c 5 2
|
||||
|
|
Loading…
Reference in a new issue