mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
test-runner: Make hwsim medium optional
Allow the "hwsim_medium=no" setting in hw.conf's SETUP section to disable starting hwsim. It looks like the packets going through userspace add enough latency that active scans don't work, probe responses don't arrive within the "dwell time" or probe requests are not ACKed on time. I've tried modifying tools/hwsim.c to respond with the HWSIM_CMD_TX_INFO_FRAME cmd as the first thing after receiving a HWSIM_CMD_FRAME and even skipping the queue in ell/genl.c by writing the command synchronously, but neither helped enough to make the scans work. This does not rule out that hwsim or the way our scans are done can be fixed and that would obviously be better than what I did in this patch.
This commit is contained in:
parent
b321db20ad
commit
db038022e8
@ -524,6 +524,7 @@ class TestContext:
|
||||
self.radios.append(VirtualRadio(name, rad_config))
|
||||
self.cur_radio_id += 1
|
||||
|
||||
if self.hw_config['SETUP'].get('hwsim_medium', 'yes') in ['yes', '1', 'true']:
|
||||
# register hwsim as medium
|
||||
self.start_process(['hwsim'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user