예제 #1
0
        public static NdisObjectHeader CreateDefault()
        {
            NdisObjectHeader header = new NdisObjectHeader();

            header.Type     = 0x80;
            header.Revision = 1;
            header.Size     = (ushort)Marshal.SizeOf(header);
            return(header);
        }
예제 #2
0
        private                      Dot11MacAddress[] bssids; //dynamic array Dot11MacAddress[]

        public static Dot11BssidList Build(Dot11MacAddress[] bssids)
        {
            Dot11BssidList list      = new Dot11BssidList();
            int            maxLength = CalculateMaxLength();

            list.listHeader.TotalNumOfEntries = (ushort)maxLength;
            list.header  = NdisObjectHeader.CreateDefault();
            list.Entries = bssids;
            return(list);
        }