Home
last modified time | relevance | path

Searched refs:ll (Results 1 – 25 of 93) sorted by relevance

1234

/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/ADV/
DBV_08_C.py16 import link_layer_packets as ll namespace
89 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
90 advertising_address_type=ll.AddressType.PUBLIC,
91 advertising_type=ll.LegacyAdvertisingType.ADV_IND,
94 controller.send_ll(ll.LeScan(source_address=invalid_peer_address,
96 advertising_address_type=ll.AddressType.PUBLIC,
97 scanning_address_type=ll.AddressType.PUBLIC),
106 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
107 advertising_address_type=ll.AddressType.PUBLIC,
108 advertising_type=ll.LegacyAdvertisingType.ADV_IND,
[all …]
DBV_05_C.py16 import link_layer_packets as ll namespace
74 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
75 advertising_address_type=ll.AddressType.PUBLIC,
76 advertising_type=ll.LegacyAdvertisingType.ADV_IND,
79 controller.send_ll(ll.LeScan(source_address=peer_address,
81 advertising_address_type=ll.AddressType.PUBLIC,
82 scanning_address_type=ll.AddressType.PUBLIC),
86 ll.LeScanResponse(source_address=controller.address,
88 advertising_address_type=ll.AddressType.PUBLIC,
108 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
[all …]
DBV_09_C.py16 import link_layer_packets as ll namespace
82 peer_address_type=ll.AddressType.PUBLIC,
95 peer_address_type=ll.AddressType.RANDOM,
119 peer_address_type=ll.AddressType.PUBLIC,
132 peer_address_type=ll.AddressType.RANDOM,
154 peer_address_type=ll.AddressType.PUBLIC,
166 peer_address_type=ll.AddressType.PUBLIC,
211 peer_address_type=ll.AddressType.PUBLIC,
215 …async def steps_4_14(self, peer_address: Address, peer_address_type: ll.AddressType, connection_ha…
234 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
[all …]
DBV_18_C.py16 import link_layer_packets as ll namespace
78 peer_address_type=ll.AddressType.PUBLIC,
104 peer_address_type=ll.AddressType.RANDOM,
129 peer_address_type=ll.AddressType.PUBLIC,
154 peer_address_type=ll.AddressType.RANDOM,
157 …async def steps_3_12(self, peer_address: Address, peer_address_type: ll.AddressType, scan_response…
166 invalid_peer_address_type = (ll.AddressType.PUBLIC
167 … if peer_address_type == ll.AddressType.RANDOM else ll.AddressType.RANDOM)
176 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
177 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
DBV_06_C.py16 import link_layer_packets as ll namespace
66 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
67 advertising_address_type=ll.AddressType.PUBLIC,
68 advertising_type=ll.LegacyAdvertisingType.ADV_IND,
71 controller.send_ll(ll.LeConnect(source_address=peer_address,
73 initiating_address_type=ll.AddressType.PUBLIC,
74 advertising_address_type=ll.AddressType.PUBLIC,
84 ll.LeConnectComplete(source_address=controller.address,
113 ll.Disconnect(source_address=controller.address,
131 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
[all …]
DBV_07_C.py16 import link_layer_packets as ll namespace
76 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
77 advertising_address_type=ll.AddressType.PUBLIC,
78 advertising_type=ll.LegacyAdvertisingType.ADV_IND,
81 controller.send_ll(ll.LeScan(source_address=peer_address,
83 advertising_address_type=ll.AddressType.PUBLIC,
84 scanning_address_type=ll.AddressType.PUBLIC),
88 ll.LeScanResponse(source_address=controller.address,
90 advertising_address_type=ll.AddressType.PUBLIC,
96 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
[all …]
DBV_11_C.py17 import link_layer_packets as ll namespace
72 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
74 advertising_address_type=ll.AddressType.PUBLIC,
75 target_address_type=ll.AddressType.PUBLIC,
76 … advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
102 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
104 advertising_address_type=ll.AddressType.PUBLIC,
105 target_address_type=ll.AddressType.PUBLIC,
106 advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
109 controller.send_ll(ll.LeConnect(source_address=peer_address,
[all …]
DBV_19_C.py16 import link_layer_packets as ll namespace
66 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
68 target_address_type=ll.AddressType.PUBLIC,
69 advertising_address_type=ll.AddressType.PUBLIC,
70 advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
78 ll.LeLegacyAdvertisingPdu(source_address=controller.address,
80 target_address_type=ll.AddressType.PUBLIC,
81 advertising_address_type=ll.AddressType.PUBLIC,
82 advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
85 controller.send_ll(ll.LeConnect(source_address=public_peer_address,
[all …]
DBV_04_C.py16 import link_layer_packets as ll namespace
69 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
70 … advertising_address_type=ll.AddressType.PUBLIC,
71 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
99 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
100 … advertising_address_type=ll.AddressType.PUBLIC,
101 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
126 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
127 … advertising_address_type=ll.AddressType.PUBLIC,
128 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
[all …]
DBV_16_C.py16 import link_layer_packets as ll namespace
68 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
69 … advertising_address_type=ll.AddressType.PUBLIC,
70 … advertising_type=ll.LegacyAdvertisingType.ADV_SCAN_IND,
98 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
99 … advertising_address_type=ll.AddressType.PUBLIC,
100 … advertising_type=ll.LegacyAdvertisingType.ADV_SCAN_IND,
125 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
126 … advertising_address_type=ll.AddressType.PUBLIC,
127 … advertising_type=ll.LegacyAdvertisingType.ADV_SCAN_IND,
[all …]
DBV_03_C.py16 import link_layer_packets as ll namespace
70 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
71 … advertising_address_type=ll.AddressType.PUBLIC,
72 … advertising_type=ll.LegacyAdvertisingType.ADV_NONCONN_IND,
100 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
101 … advertising_address_type=ll.AddressType.PUBLIC,
102 … advertising_type=ll.LegacyAdvertisingType.ADV_NONCONN_IND,
128 await self.expect_ll(ll.LeLegacyAdvertisingPdu(source_address=controller.address,
129 … advertising_address_type=ll.AddressType.PUBLIC,
130 … advertising_type=ll.LegacyAdvertisingType.ADV_NONCONN_IND,
[all …]
DBV_26_C.py17 import link_layer_packets as ll namespace
183 ll.LeExtendedAdvertisingPdu(source_address=controller.address,
184 advertising_address_type=ll.AddressType.PUBLIC,
185 target_address_type=ll.AddressType.PUBLIC,
191 primary_phy=ll.PhyType.LE_1M,
192 secondary_phy=ll.PhyType.NO_PACKETS,
195 ll.LePeriodicAdvertisingPdu(source_address=controller.address,
196 advertising_address_type=ll.AddressType.PUBLIC,
202 if isinstance(pdu, ll.LeExtendedAdvertisingPdu):
204 if isinstance(pdu, ll.LePeriodicAdvertisingPdu):
[all …]
/packages/modules/Bluetooth/tools/rootcanal/rust/src/
Dffi.rs234 ll: *const LinkLayer, in link_layer_add_link()
239 let mut ll = ManuallyDrop::new(unsafe { Rc::from_raw(ll) }); localVariable
240 let ll = Rc::get_mut(&mut ll).unwrap(); localVariable
242 unsafe { ll.add_link(handle, hci::Address::from(&*peer_address), role).is_ok() }
255 pub unsafe extern "C" fn link_layer_remove_link(ll: *const LinkLayer, handle: u16) -> bool { in link_layer_remove_link()
256 let mut ll = ManuallyDrop::new(unsafe { Rc::from_raw(ll) }); in link_layer_remove_link() localVariable
257 let ll = Rc::get_mut(&mut ll).unwrap(); in link_layer_remove_link() localVariable
258 ll.remove_link(handle).is_ok() in link_layer_remove_link()
268 pub unsafe extern "C" fn link_layer_tick(ll: *const LinkLayer) { in link_layer_tick()
269 let mut ll = ManuallyDrop::new(unsafe { Rc::from_raw(ll) }); in link_layer_tick() localVariable
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/CON_/INI/
DBV_10_C.py17 import link_layer_packets as ll namespace
93 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=generate_rpa(random_irk),
95 target_address_type=ll.AddressType.PUBLIC,
96 advertising_address_type=ll.AddressType.RANDOM,
97 … advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
104 await self.expect_ll(ll.LeConnect, timeout=1.0)
116 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_resolvable_address,
118 target_address_type=ll.AddressType.PUBLIC,
119 advertising_address_type=ll.AddressType.RANDOM,
120 … advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
[all …]
DBV_11_C.py17 import link_layer_packets as ll namespace
95 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=generate_rpa(peer_irk),
97 target_address_type=ll.AddressType.RANDOM,
98 advertising_address_type=ll.AddressType.RANDOM,
99 … advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
106 await self.expect_ll(ll.LeConnect, timeout=1.0)
119 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_resolvable_address,
121 target_address_type=ll.AddressType.RANDOM,
122 advertising_address_type=ll.AddressType.RANDOM,
123 … advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
[all …]
DBV_09_C.py17 import link_layer_packets as ll namespace
94 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=generate_rpa(random_irk),
95 advertising_address_type=ll.AddressType.RANDOM,
96 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
104 await self.expect_ll(ll.LeConnect, timeout=1.0)
116 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_resolvable_address,
117 advertising_address_type=ll.AddressType.RANDOM,
118 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
124 ll.LeConnect(source_address=self.Any,
126 initiating_address_type=ll.AddressType.RANDOM,
[all …]
DBV_08_C.py16 import link_layer_packets as ll namespace
87 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_address,
88 advertising_address_type=ll.AddressType.PUBLIC,
89 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
96 ll.LeConnect(source_address=self.Any,
98 initiating_address_type=ll.AddressType.RANDOM,
99 advertising_address_type=ll.AddressType.PUBLIC,
108 ll.LeConnectComplete(source_address=peer_address,
110 initiating_address_type=ll.AddressType.RANDOM,
111 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/
Dscan_timeout.py17 import link_layer_packets as ll namespace
53 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_address,
54 advertising_address_type=ll.AddressType.RANDOM,
55 … advertising_type=ll.LegacyAdvertisingType.ADV_SCAN_IND,
69 ll.LeScan(source_address=controller.address,
71 advertising_address_type=ll.AddressType.RANDOM,
72 scanning_address_type=ll.AddressType.PUBLIC))
78 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_address,
79 advertising_address_type=ll.AddressType.RANDOM,
80 … advertising_type=ll.LegacyAdvertisingType.ADV_SCAN_IND,
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/SEC/ADV/
DBV_11_C.py17 import link_layer_packets as ll namespace
109 direct_ind = await self.expect_ll(ll.LeLegacyAdvertisingPdu(
112 advertising_address_type=ll.AddressType.RANDOM,
113 target_address_type=ll.AddressType.RANDOM,
114 advertising_type=ll.LegacyAdvertisingType.ADV_DIRECT_IND,
129 ll.LeConnect(source_address=init_a,
131 initiating_address_type=ll.AddressType.RANDOM,
132 advertising_address_type=ll.AddressType.RANDOM,
138 ll.LeConnectComplete(source_address=direct_ind.source_address,
140 initiating_address_type=ll.AddressType.RANDOM,
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/SCN/
DBV_20_C.py16 import link_layer_packets as ll namespace
122 advertising_type = ll.LegacyAdvertisingType.ADV_IND
124 advertising_type = ll.LegacyAdvertisingType.ADV_DIRECT_IND
126 advertising_type = ll.LegacyAdvertisingType.ADV_SCAN_IND
128 advertising_type = ll.LegacyAdvertisingType.ADV_NONCONN_IND
129 pdu = ll.LeLegacyAdvertisingPdu(source_address=lower_tester_address,
131 advertising_address_type=ll.AddressType.PUBLIC,
132 target_address_type=ll.AddressType.PUBLIC,
136 pdu = ll.LeExtendedAdvertisingPdu(source_address=lower_tester_address,
138 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
DBV_19_C.py16 import link_layer_packets as ll namespace
124 advertising_type = ll.LegacyAdvertisingType.ADV_IND
126 advertising_type = ll.LegacyAdvertisingType.ADV_DIRECT_IND
128 advertising_type = ll.LegacyAdvertisingType.ADV_SCAN_IND
130 advertising_type = ll.LegacyAdvertisingType.ADV_NONCONN_IND
131 pdu = ll.LeLegacyAdvertisingPdu(source_address=lower_tester_address,
133 advertising_address_type=ll.AddressType.PUBLIC,
134 target_address_type=ll.AddressType.PUBLIC,
138 pdu = ll.LeExtendedAdvertisingPdu(source_address=lower_tester_address,
140 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/CON_/CEN/
DBV_43_C.py17 import link_layer_packets as ll namespace
61 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_address,
62 advertising_address_type=ll.AddressType.PUBLIC,
63 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
68 ll.LeConnect(source_address=controller.address,
70 initiating_address_type=ll.AddressType.PUBLIC,
71 advertising_address_type=ll.AddressType.PUBLIC,
77 ll.LeConnectComplete(source_address=peer_address,
79 initiating_address_type=ll.AddressType.PUBLIC,
80 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
DBV_41_C.py17 import link_layer_packets as ll namespace
64 controller.send_ll(ll.LeLegacyAdvertisingPdu(source_address=peer_address,
65 advertising_address_type=ll.AddressType.PUBLIC,
66 … advertising_type=ll.LegacyAdvertisingType.ADV_IND,
71 ll.LeConnect(source_address=controller.address,
73 initiating_address_type=ll.AddressType.PUBLIC,
74 advertising_address_type=ll.AddressType.PUBLIC,
80 ll.LeConnectComplete(source_address=peer_address,
82 initiating_address_type=ll.AddressType.PUBLIC,
83 advertising_address_type=ll.AddressType.PUBLIC,
[all …]
/packages/modules/Bluetooth/tools/rootcanal/py/
Dcontroller.py19 import link_layer_packets as ll namespace
140 def send_ll(self, pdu: ll.LinkLayerPacket, phy: Phy = Phy.LowEnergy, rssi: int = -90):
153 ll_pdu = ll.Llcp(source_address=source_address,
190 pdu = ll.LinkLayerPacket.parse_all(packet)
307 expected_pdus: typing.Union[list, typing.Union[ll.LinkLayerPacket, type]],
309 timeout: int = 3) -> ll.LinkLayerPacket:
319 pdu = ll.LinkLayerPacket.parse_all(packet)
328 if isinstance(expected_pdu, ll.LinkLayerPacket) and pdu == expected_pdu:
337 if isinstance(expected_pdu, ll.LinkLayerPacket):
349 pdu = ll.LinkLayerPacket.parse_all(packet)
[all …]
/packages/modules/Bluetooth/tools/rootcanal/rust/include/
Drootcanal_rs.h129 bool link_layer_add_link(const LinkLayer* ll, uint16_t handle,
141 bool link_layer_remove_link(const LinkLayer* ll, uint16_t handle);
149 void link_layer_tick(const LinkLayer* ll);
161 bool link_layer_ingest_hci(const LinkLayer* ll, const uint8_t* data,
175 bool link_layer_ingest_llcp(const LinkLayer* ll, uint16_t handle,
189 bool link_layer_get_cis_connection_handle(const LinkLayer* ll, uint8_t cig_id,
204 bool link_layer_get_cis_information(const LinkLayer* ll,
216 void link_layer_destroy(const LinkLayer* ll);

1234