diff mbox series

tests: hwsim: add regulatory database to VMs

Message ID 1632409510-I00424699b114de739f156727c5b86ff4cc3c6a5a@changeid
State Accepted
Headers show
Series tests: hwsim: add regulatory database to VMs | expand

Commit Message

Johannes Berg Sept. 23, 2021, 3:05 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

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               |   2 ++
 tests/hwsim/vm/regdb/regulatory.db     | Bin 0 -> 4036 bytes
 tests/hwsim/vm/regdb/regulatory.db.p7s | Bin 0 -> 1182 bytes
 3 files changed, 2 insertions(+)
 create mode 100644 tests/hwsim/vm/regdb/regulatory.db
 create mode 100644 tests/hwsim/vm/regdb/regulatory.db.p7s

GIT binary patch
literal 1182
zcmXqLVwuIpsnzDu_MMlJooPW6OSeH2OFI)IqanWmFB@k<n+IbmGYb<VD}w<yLLuXV
zCZ-hzO-xG+nizYSI2kte-gjU3^W1Wf7N}v2+(0eDhJptCY|No7%sd>$Y57IP8L6oT
z3gWzm=7t6aW`>p~2F9jQ68uJnhUNyAhDJ~U?An?bm5_}Gx`?@nk)HwR0xqT|Mn;CM
z4v*((v{*8Kvb>(A<7gqerfz9-p=#ZPnvA>o_BXFbTFkG>3OdBBrCXQwMQ*cDfkO0^
z=|;AN-PY0^;v(6JN5Z?OiOKv`xysG?GefZD_o+ahi>{Kl1YEjq{wrJgH$hi|TVv`b
z-B%qmc3cco{17bvktzSB+w95l8WZ@}nElF7E({O*cINW^TCJPX#jdY+skgqbs$Y7#
z;kbd>rQmmO*2q0K{AjjlPV%wT=z7)CjD@c**D=J*io2m8VN}kpDU>E>R{VTAi=+9*
zjYZmD7HTTgOsnM9zHsB-i5&aMzmLAF2oe;PuKM;UW9IYUZelHuk1u@o;F8<bhezTU
zq<y({<o{GzCT2zkM&u9zMgTB`7#Z4`Z+&Vyba#D?i+<bXc%R80JO8nZ?^gV-s_eH)
ziAQW_@w&NgHKjKXdxpF3H{L$|%~yxg18zzm7R1h}6khm$$722JJ~sOk+n!`;d@_kq
zwl_NPY%Twq^Pwf~#g`ddw{t6nsnpKrT*=oq&pdigF4N7P69HL|B0r0<z1rloHR9i{
zi;dw@?>AX=M0{IyM6Wwa{mIf7OHQT7tSL%AoG*M>*R=9_*YmGe6b-ztep`IAGVBw-
z!1vk<fs^&!f7E(&wS)?B)%sb>YwQ2f*qmwdu%Ti1qxCzl8GMutX;+>(KaknSwU#Nh
zc=g}&Q_k>OCH%D!(HApbsVILsU}Hb?y9H@0#VSP%n;5qNQ^_V^qBc;#nzqnVFjAsl
zkZB+RPtu&shRAuqKn5YhYRE6nYh-9(ZfIg?W@K(?6lI`~kYzDcVo^wm)H^wIZ!|-h
zyo*ZZ%}o>kZF<=qRJN>Y>;2ywx2rcQB1auCakDfrGBgOQ{#Cp<Wo_5r&W{IPF0<$T
z=l7ZQcWhAR^t19idtcjL`*L?${jsS+F>~%agfs{|P`t9`I^SFIK7GE8JA2;+a~<ER
z$PxNl@cBv(Kh<Vat%;iUR#jn1XIS5IvaKog-nrPiGiL(-H3z%wQ*ry2w5t6u;^jDV
zAjMyoKOytZ%6kU?&UM)H*yK4{Kk44nniV?hkmjuFRr+!X^|P#}%Xo%;Nk0`Psq#&4
zZSbDx8RzYU-l>@sDgL)U_0^E`!<5(0>bL!8>R_r%55F|6$2?kZonmRm3!Ph~rE_1a
vC{~5BNC!nso7%2yq20X1H1~dZiLcnRn_ne&mardQx|4rX;qObf4^9IB_&U~k

literal 0
HcmV?d00001

Comments

Jouni Malinen Oct. 22, 2021, 5:41 p.m. UTC | #1
On Thu, Sep 23, 2021 at 05:05:10PM +0200, Johannes Berg wrote:
> Add a common well-known regulatory database to the test
> VMs during runs to remove one thing to have correct in
> the host.

Thanks, applied.
diff mbox series

Patch

diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index 9d4a933fe729..7d10609fbd24 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 0000000000000000000000000000000000000000..e0db5f8be0f4d5d3f0279864594855d73de461d7
GIT binary patch
literal 4036
zcmZvde~esJ702(r-`SsPeQYLGL9~;$5+a5*qSl~c-~67Pd9!cl&5xY{LJh%9F@n{A
z!K86j46!OgOoJ0?KnfE`AlatDu*Qa#q!?I`-H@t{Zm_|LMOlSt6G+&^bMC$K_Px<R
zUf%oMbI$ktxOeW<3fZ&}A~`*cz|A7%=FoNX=(#1Fa4Wdn^>DXaC9ctWfJL`XJ`K#e
zEn4f~Xxc?8oyN22EH=_P`p%=9F3`J(d(sv3(jFGmRV=6H@cT4rqywy`>$Kjcr-L^$
zE*3I*9L^Mx%9PN}RIr?>;<?Nmeb=y*X<#O^fYnT!>>Z@Clp|ZF$HV^Y96cTUCYQld
zj@EMp{4*EOoAmP~r1F$IUqh;p#@<2}Hy3hvxRA$*LJ{3Uh2B0rY_DT~p@AC;ZT!7h
z#*tzb-C_+NDb}%AY#>$2B2yy$QU!OGs<^9E!$yhnlxP;S9=fx0Sef;4u$;rM%0=|b
zRXkbt@zrt-`^qgGE4Q&)?qI5tMz@l|lNGA1QpQpxK(9g?70OX*BIUU_=4EiXm!&61
z57p`wvFK61UKOj}9A5K$;(1!Hq32Po*P!(#c6ziQ-U7N_8^5g<@M^V$#cBnq>Kr{j
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j<%h``z0AFZ2B!@#pyQA=dM=dRm|M
zY@i>`BVxal_J@0E|9ipI>%4?pPR(HLJ|T8pr1{~3=6@xZG^^2cjKv2Zj<FhIVfDiJ
zA-3^}Yi~Mb@=d;l0|!pw@J%y@h0y%ctYy+C`?mij)9j1TPVw}O&Fi!t#-tD{a#Fsk
zcB)^hvmnH%65^!XAzzg5sqd;j5}H3GpI3*h?K1fXHKC4>ZA9Dl$lo!Cv6jhhw3shd
zKU5cypkKvF`2}@Qy<ua&As<ycRNuy)mLudVDDQb4ds^<2f2KOR<Ua}_&QPt-%XidW
zY7?VWtY(V;3D-&dg8Z!fkNN>XzAwv9t2<bi*4J&1>^DX=pVj@nrM{*fQ*T?Jv+`5&
zf|^qIt8*BqI?suVVoQESKBX4a8MUQ#HYo0|@=bL>tz(3AH{_S(k5omikOt@9kPUe}
zv^C_4x<Rdz&G_EA%~aocnUmjFyVX-<r%=H&7^C&Rcvnh!qx^;XjM|_zP`!Pg1M9G#
zyi)!}ji{r<oU>0g+@n@>4*nk0W8z%-9rj~go$qPuSCT(dzB<V^t?$X7s;jMSUOuhr
zrfzNHK0Y7z(Wf2<eVH6>`9P>c-!x;hPCbO{+|RW(7k_8<{`YmCMRh!^k!`1~-<Rb>
z>N;Edt?J|I3B9j<d8>LM^uLYf{Yg6q{$AH-x-a#&dKV*@AYYz;U-JB~P%p=Ldw=@!
z+w!E^ulqFhKWD!6?98{~Z*`Q-^j?Qya~9svId2K)wi%fd@6)EKNyl#5Sbp=u+j2@i
HF2sKU30BCv

literal 0
HcmV?d00001

diff --git a/tests/hwsim/vm/regdb/regulatory.db.p7s b/tests/hwsim/vm/regdb/regulatory.db.p7s
new file mode 100644
index 0000000000000000000000000000000000000000..730aef4f364c55791a56566ff585b444823343bb