Home
last modified time | relevance | path

Searched refs:hwsim_msg (Results 1 – 3 of 3) sorted by relevance

/tools/netsim/rust/daemon/src/wifi/
Dmedium.rs165 let hwsim_msg = HwsimMsg::decode_full(packet)?; in process_internal() localVariable
169 match hwsim_msg.hwsim_hdr.hwsim_cmd { in process_internal()
171 let frame = Frame::parse(&hwsim_msg)?; in process_internal()
213 info!("Another command found {:?}", hwsim_msg); in process_internal()
236 let hwsim_msg = HwsimMsg::decode_full(packet)?; in send_response() localVariable
237 let hwsim_cmd = hwsim_msg.hwsim_hdr.hwsim_cmd; in send_response()
239 HwsimCmd::Frame => self.send_frame_response(packet, &hwsim_msg)?, in send_response()
242 HwsimCmd::TxInfoFrame => self.send_tx_info_response(packet, &hwsim_msg)?, in send_response()
248 fn send_frame_response(&self, packet: &Bytes, hwsim_msg: &HwsimMsg) -> anyhow::Result<()> { in send_frame_response()
249 let frame = Frame::parse(hwsim_msg)?; in send_frame_response()
[all …]
Dhwsim_attr_set.rs300 let hwsim_msg = HwsimMsg::decode_full(&packet).unwrap(); in test_attr_set_parse() localVariable
301 assert_eq!(hwsim_msg.hwsim_hdr().hwsim_cmd, HwsimCmd::Frame); in test_attr_set_parse()
302 let attrs = HwsimAttrSet::parse(hwsim_msg.attributes()).unwrap(); in test_attr_set_parse()
323 let hwsim_msg = HwsimMsg::decode_full(&packet).unwrap(); in test_attr_set_attributes() localVariable
324 assert_eq!(hwsim_msg.hwsim_hdr().hwsim_cmd, HwsimCmd::Frame); in test_attr_set_attributes()
325 let attrs = HwsimAttrSet::parse(hwsim_msg.attributes()).unwrap(); in test_attr_set_attributes()
326 assert_eq!(&attrs.attributes, hwsim_msg.attributes()); in test_attr_set_attributes()
336 let hwsim_msg = HwsimMsg::decode_full(&packet)?; in test_attr_set_parse_with_frame_transmitter() localVariable
337 assert_eq!(hwsim_msg.hwsim_hdr().hwsim_cmd, HwsimCmd::Frame); in test_attr_set_parse_with_frame_transmitter()
338 let attrs = HwsimAttrSet::parse(hwsim_msg.attributes())?; in test_attr_set_parse_with_frame_transmitter()
[all …]
Dframe.rs41 pub hwsim_msg: HwsimMsg, field
68 hwsim_msg: msg.clone(), in parse()