On Fri, 2020-01-03 at 22:18 +0100, Benjamin Berg wrote: > From: Benjamin Berg <bberg@xxxxxxxxxx> > > This tests an error, where the p2p_long_listen information from the > wrong device was used internally in wpa_supplicant. Note that to test > the hwsim option support_p2p_device needs to be enabled. > > Signed-off-by: Benjamin Berg <bberg@xxxxxxxxxx> > --- > tests/hwsim/start.sh | 2 +- > tests/hwsim/test_p2p_discovery.py | 12 ++++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh > index 7a26d2825..e3a1a4a19 100755 > --- a/tests/hwsim/start.sh > +++ b/tests/hwsim/start.sh > @@ -110,7 +110,7 @@ else > NUM_CH=1 > fi > > -test -f /proc/modules && sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=0 dyndbg=+p > +test -f /proc/modules && sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=1 dyndbg=+p I'm not sure you really should change the default for this. However, you *can* create a (temporary) hwsim radio with hwsim netlink (there's a class for that somewhere in the tests) using the HWSIM_ATTR_SUPPORT_P2P_DEVICE attribute, so you could do that for this particular test. johannes _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap