hwsim-radio-api.txt (2960B)
1 RadioManager hierarchy 2 ====================== 3 4 Service net.connman.hwsim 5 Interface net.connman.hwsim.RadioManager [Experimental] 6 Object path / 7 8 Methods object CreateRadio(dict) 9 Add one virtual radio device to the simulator, a 10 path to a new object with the 11 net.connman.hwsim.Radio interface is returned. 12 13 This API takes a dictionary of arguments (all optional) 14 with keys: 15 16 string Name - Name of radio 17 bool P2P - Create a P2P device 18 string InterfaceTypeDisable - List of disabled 19 interface types (comma 20 separated) 21 string CipherTypeDisable - List of disabled 22 cipher types (comma 23 separated) 24 string NoVirtualInterface - Don't create an 25 interface for this 26 radio. 27 28 The radio is created with one network interface (unless 29 NoVirtualInterface is used) of the type "managed" 30 (Station) and optionally one P2P Device interface. 31 The name parameter may be an empty string or a requested 32 name for the radio and its wiphy. If empty, the kernel 33 will use a default name. If non-empty, the kernel may 34 still use the default name if the requested name can not 35 be used. 36 37 Service net.connman.hwsim 38 Interface net.connman.hwsim.Radio [Experimental] 39 Object path /{radio0,radio1,...} 40 41 Methods void Remove() 42 Remove this radio from the simulator. Associated 43 interfaces will disappear from the system too, as 44 if the device was unplugged. 45 46 Properties string Name [readonly] 47 The radio's and the associated wiphy's name. 48 49 array(string) Addresses [readonly] 50 The two hardware addresses assigned to the simulated 51 wiphy by the kernel in the XX:XX:XX:XX:XX:XX format. 52 Actual network interfaces under the wiphy may use 53 different addresses and those addresses will be seen 54 in all 802.11 and ethernet traffic. 55 56 uint32 Channels [readonly] 57 The number of channels supported by this radio. 58 59 struct(byte, byte) Alpha2 [readonly, optional] 60 The Alpha2 country code used as the regulatory 61 hint during radio creation. May differ from the 62 actual reulatory domain used. 63 64 boolean P2PDevice [readonly] 65 Whether a P2P Device interface creation was requested 66 during radio creation command. Independent of the 67 current number and types of interfaces. 68 69 uint32 RegulatoryDomainIndex [readonly, optional] 70 Index into the custom regulatory domains table 71 kept by the simulator. Only present if one of 72 these custom domains is in use. 73 74 Service net.connman.hwsim 75 Interface net.connman.hwsim.Interface [Experimental] 76 Object path /{radio0,radio1,...}/{1,2,...} 77 78 Methods void SendFrame(string addr, uint32 freq, int32 signal, 79 array(byte) frame) 80 Send an arbitrary frame out to a station. 'addr' is the 81 station address. 'freq' and 'signal' are the frequency 82 and signal strength. 83 84 Properties string Name [readonly] 85 The interface name. 86 87 string Address [readonly] 88 The ethernet address of the interface in the 89 XX:XX:XX:XX:XX:XX format.