@@ -700,6 +700,57 @@ mod identify {
700700 } ) ;
701701 }
702702
703+ #[ test]
704+ fn namespace_broadcast ( ) {
705+ setup ( ) ;
706+
707+ let ( mut mep, mut subsys) = new_device ( DeviceType :: P1p1tC1aN0a0a ) ;
708+
709+ #[ rustfmt:: skip]
710+ const REQ : [ u8 ; 71 ] = [
711+ 0x10 , 0x00 , 0x00 ,
712+ 0x06 , 0x00 , 0x00 , 0x00 ,
713+
714+ // SQE DWORD 1
715+ 0xff , 0xff , 0xff , 0xff ,
716+ 0x00 , 0x00 , 0x00 , 0x00 ,
717+ 0x00 , 0x00 , 0x00 , 0x00 ,
718+ 0x00 , 0x00 , 0x00 , 0x00 ,
719+ 0x00 , 0x00 , 0x00 , 0x00 ,
720+
721+ // DOFST
722+ 0x00 , 0x00 , 0x00 , 0x00 ,
723+ 0x00 , 0x10 , 0x00 , 0x00 ,
724+
725+ // Reserved
726+ 0x00 , 0x00 , 0x00 , 0x00 ,
727+ 0x00 , 0x00 , 0x00 , 0x00 ,
728+
729+ // SQE DWORD 10
730+ 0x00 , 0x00 , 0x00 , 0x00 ,
731+ 0x00 , 0x00 , 0x00 , 0x00 ,
732+ 0x00 , 0x00 , 0x00 , 0x00 ,
733+ 0x00 , 0x00 , 0x00 , 0x00 ,
734+ 0x00 , 0x00 , 0x00 , 0x00 ,
735+ 0x00 , 0x00 , 0x00 , 0x00 ,
736+
737+ // MIC
738+ 0xdc , 0xee , 0xe8 , 0xf2
739+ ] ;
740+
741+ #[ rustfmt:: skip]
742+ let resp_fields: Vec < ExpectedField > = vec ! [
743+ ( 0 , & [ 0x90 ] ) ,
744+ ( 19 + 130 , & [ 0x09 ] ) , // LBADS
745+ ] ;
746+
747+ let resp = RelaxedRespChannel :: new ( resp_fields) ;
748+ smol:: block_on ( async {
749+ mep. handle_async ( & mut subsys, & REQ , MsgIC ( true ) , resp, async |_| Ok ( ( ) ) )
750+ . await
751+ } ) ;
752+ }
753+
703754 #[ test]
704755 fn namespace_inactive ( ) {
705756 setup ( ) ;
0 commit comments