mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-19 18:22:32 +01:00
autotests: Pass wiphy whitelist in iwd command line
Pass the -p parameter to the iwd process started by iwd.py (only used by testKnownNetworks) same as when iwd is started by test-runner.c
This commit is contained in:
parent
c72cd38e76
commit
ebc2092c42
@ -12,6 +12,8 @@ import time
|
|||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
import wiphy
|
||||||
|
|
||||||
IWD_STORAGE_DIR = '/var/lib/iwd'
|
IWD_STORAGE_DIR = '/var/lib/iwd'
|
||||||
IWD_CONFIG_DIR = '/etc/iwd'
|
IWD_CONFIG_DIR = '/etc/iwd'
|
||||||
|
|
||||||
@ -521,8 +523,14 @@ class IWD(AsyncOpAbstract):
|
|||||||
if not start_iwd_daemon:
|
if not start_iwd_daemon:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
iwd_wiphys = [wname for wname, wiphy in wiphy.wiphy_map.items()
|
||||||
|
if any(intf for intf in wiphy.values()
|
||||||
|
if intf.use == 'iwd')]
|
||||||
|
whitelist = ','.join(iwd_wiphys)
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
iwd_proc = subprocess.Popen(['iwd', '-c', iwd_config_dir])
|
iwd_proc = subprocess.Popen(['iwd', '-c', iwd_config_dir, '-p',
|
||||||
|
whitelist])
|
||||||
|
|
||||||
tries = 0
|
tries = 0
|
||||||
while not self._bus.name_has_owner(IWD_SERVICE):
|
while not self._bus.name_has_owner(IWD_SERVICE):
|
||||||
|
Loading…
Reference in New Issue
Block a user