mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:19:34 +01:00
tools: Change net.connman.iwd.hwsim to net.connman.hwsim
This commit is contained in:
parent
502aac073f
commit
ea20559599
@ -8,12 +8,12 @@ from enum import Enum
|
|||||||
|
|
||||||
import iwd
|
import iwd
|
||||||
|
|
||||||
HWSIM_SERVICE = 'net.connman.iwd.hwsim'
|
HWSIM_SERVICE = 'net.connman.hwsim'
|
||||||
HWSIM_RULE_MANAGER_INTERFACE = 'net.connman.iwd.hwsim.RuleManager'
|
HWSIM_RULE_MANAGER_INTERFACE = 'net.connman.hwsim.RuleManager'
|
||||||
HWSIM_RULE_INTERFACE = 'net.connman.iwd.hwsim.Rule'
|
HWSIM_RULE_INTERFACE = 'net.connman.hwsim.Rule'
|
||||||
HWSIM_RADIO_MANAGER_INTERFACE = 'net.connman.iwd.hwsim.RadioManager'
|
HWSIM_RADIO_MANAGER_INTERFACE = 'net.connman.hwsim.RadioManager'
|
||||||
HWSIM_RADIO_INTERFACE = 'net.connman.iwd.hwsim.Radio'
|
HWSIM_RADIO_INTERFACE = 'net.connman.hwsim.Radio'
|
||||||
HWSIM_INTERFACE_INTERFACE = 'net.connman.iwd.hwsim.Interface'
|
HWSIM_INTERFACE_INTERFACE = 'net.connman.hwsim.Interface'
|
||||||
|
|
||||||
HWSIM_AGENT_MANAGER_PATH = '/'
|
HWSIM_AGENT_MANAGER_PATH = '/'
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
RadioManager hierarchy
|
RadioManager hierarchy
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Service net.connman.iwd.hwsim
|
Service net.connman.hwsim
|
||||||
Interface net.connman.iwd.hwsim.RadioManager [Experimental]
|
Interface net.connman.hwsim.RadioManager [Experimental]
|
||||||
Object path /
|
Object path /
|
||||||
|
|
||||||
Methods object CreateRadio(string name, boolean p2p_device)
|
Methods object CreateRadio(string name, boolean p2p_device)
|
||||||
Add one virtual radio device to the simulator, a
|
Add one virtual radio device to the simulator, a
|
||||||
path to a new object with the
|
path to a new object with the
|
||||||
net.connman.iwd.hwsim.Radio interface is returned.
|
net.connman.hwsim.Radio interface is returned.
|
||||||
The radio is created with one network interface of
|
The radio is created with one network interface of
|
||||||
the type "managed" (Station) and optionally one
|
the type "managed" (Station) and optionally one
|
||||||
P2P Device interface. The name parameter may be
|
P2P Device interface. The name parameter may be
|
||||||
@ -18,8 +18,8 @@ Methods object CreateRadio(string name, boolean p2p_device)
|
|||||||
use the default name if the requested name can not
|
use the default name if the requested name can not
|
||||||
be used.
|
be used.
|
||||||
|
|
||||||
Service net.connman.iwd.hwsim
|
Service net.connman.hwsim
|
||||||
Interface net.connman.iwd.hwsim.Radio [Experimental]
|
Interface net.connman.hwsim.Radio [Experimental]
|
||||||
Object path /{radio0,radio1,...}
|
Object path /{radio0,radio1,...}
|
||||||
|
|
||||||
Methods void Remove()
|
Methods void Remove()
|
||||||
@ -55,8 +55,8 @@ Properties string Name [readonly]
|
|||||||
kept by the simulator. Only present if one of
|
kept by the simulator. Only present if one of
|
||||||
these custom domains is in use.
|
these custom domains is in use.
|
||||||
|
|
||||||
Service net.connman.iwd.hwsim
|
Service net.connman.hwsim
|
||||||
Interface net.connman.iwd.hwsim.Interface [Experimental]
|
Interface net.connman.hwsim.Interface [Experimental]
|
||||||
Object path /{radio0,radio1,...}/{1,2,...}
|
Object path /{radio0,radio1,...}/{1,2,...}
|
||||||
|
|
||||||
Methods void SendFrame(string addr, uint32 freq, int32 signal,
|
Methods void SendFrame(string addr, uint32 freq, int32 signal,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
RuleManager hierarchy
|
RuleManager hierarchy
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
Service net.connman.iwd.hwsim
|
Service net.connman.hwsim
|
||||||
Interface net.connman.iwd.hwsim.RuleManager [Experimental]
|
Interface net.connman.hwsim.RuleManager [Experimental]
|
||||||
Object path /
|
Object path /
|
||||||
|
|
||||||
Methods object AddRule()
|
Methods object AddRule()
|
||||||
@ -18,8 +18,8 @@ Methods object AddRule()
|
|||||||
priority property. See below for specifics on
|
priority property. See below for specifics on
|
||||||
those properties.
|
those properties.
|
||||||
|
|
||||||
Service net.connman.iwd.hwsim
|
Service net.connman.hwsim
|
||||||
Interface net.connman.iwd.hwsim.Rule [Experimental]
|
Interface net.connman.hwsim.Rule [Experimental]
|
||||||
Object path /{rule0,rule1,...}
|
Object path /{rule0,rule1,...}
|
||||||
|
|
||||||
Methods void Remove()
|
Methods void Remove()
|
||||||
@ -31,7 +31,7 @@ Properties string Source
|
|||||||
and Destination addresses refer to the hardware
|
and Destination addresses refer to the hardware
|
||||||
addresses of the source and the destination
|
addresses of the source and the destination
|
||||||
radios as given by the
|
radios as given by the
|
||||||
net.connman.iwd.hwsim.Radio.Addresses property
|
net.connman.hwsim.Radio.Addresses property
|
||||||
on the radio object (see hwsim-radio-api.txt).
|
on the radio object (see hwsim-radio-api.txt).
|
||||||
While those addresses initially match the network
|
While those addresses initially match the network
|
||||||
interface mac addresses, and that present in the
|
interface mac addresses, and that present in the
|
||||||
|
@ -8,16 +8,16 @@
|
|||||||
<!-- ../system.conf have denied everything, so we just punch some holes -->
|
<!-- ../system.conf have denied everything, so we just punch some holes -->
|
||||||
|
|
||||||
<policy user="root">
|
<policy user="root">
|
||||||
<allow own="net.connman.iwd.hwsim"/>
|
<allow own="net.connman.hwsim"/>
|
||||||
<allow send_destination="net.connman.iwd.hwsim"/>
|
<allow send_destination="net.connman.hwsim"/>
|
||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
<policy group="wheel">
|
<policy group="wheel">
|
||||||
<allow send_destination="net.connman.iwd.hwsim"/>
|
<allow send_destination="net.connman.hwsim"/>
|
||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
<policy context="default">
|
<policy context="default">
|
||||||
<deny send_destination="net.connman.iwd.hwsim"/>
|
<deny send_destination="net.connman.hwsim"/>
|
||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
</busconfig>
|
</busconfig>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "src/storage.h"
|
#include "src/storage.h"
|
||||||
#include "src/mpdu.h"
|
#include "src/mpdu.h"
|
||||||
|
|
||||||
#define HWSIM_SERVICE "net.connman.iwd.hwsim"
|
#define HWSIM_SERVICE "net.connman.hwsim"
|
||||||
|
|
||||||
#define HWSIM_RADIO_MANAGER_INTERFACE HWSIM_SERVICE ".RadioManager"
|
#define HWSIM_RADIO_MANAGER_INTERFACE HWSIM_SERVICE ".RadioManager"
|
||||||
#define HWSIM_RADIO_INTERFACE HWSIM_SERVICE ".Radio"
|
#define HWSIM_RADIO_INTERFACE HWSIM_SERVICE ".Radio"
|
||||||
@ -2123,7 +2123,7 @@ static void request_name_callback(struct l_dbus *dbus, bool success,
|
|||||||
|
|
||||||
static void ready_callback(void *user_data)
|
static void ready_callback(void *user_data)
|
||||||
{
|
{
|
||||||
l_dbus_name_acquire(dbus, "net.connman.iwd.hwsim", false, false, true,
|
l_dbus_name_acquire(dbus, HWSIM_SERVICE, false, false, true,
|
||||||
request_name_callback, NULL);
|
request_name_callback, NULL);
|
||||||
|
|
||||||
if (!l_dbus_object_manager_enable(dbus))
|
if (!l_dbus_object_manager_enable(dbus))
|
||||||
|
Loading…
Reference in New Issue
Block a user