Duplicate Entries in WLANGETAVAILABLENETWORKLIST ?

Vista Ultimate RTM
Atheros Wireless Adapter with Atheros Generic Vista Driver – released by Microsoft.

When I first began developing code for the Native WIFI API, I noticed that my node was duplicated. I treated this duplication as a garbage block. I just threw away the first list element and everything worked fine as far as I could tell. Today I took the software into work and noticed that my code was clipping one node off and so removed the code that discarded the first list element. Upon returning home, the code was now broken.
In the development process I have a test method I can call when needed that will dump the contents of a pointer given a bytecount and this is the contents of the calls unmanaged buffer accomplished via a Marshal.Copy.

00000000 52 00 65 00 6E 00 65 00-65 00 4E 00 65 00 74 00 R.e.n.e.e.N.e.t. < Profile Name
00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000000F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000001F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000200 08 00 00 00 52 65 6E 65-65 4E 65 74 00 00 00 00 ....ReneeNet.... <-First list Entry
00000210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000220 00 00 00 00 01 00 00 00-01 00 00 00 01 00 00 00 ................
00000230 00 00 00 00 01 00 00 00-06 00 00 00 00 00 00 00 ................
00000240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000250 00 00 00 00 00 00 00 00-00 00 00 00 64 00 00 00 ............d...
00000260 01 00 00 00 01 00 00 00-01 01 00 00 03 00 00 00 ................
00000270 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000290 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000002F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000350 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000380 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000390 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000003F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000400 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000410 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000420 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000430 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000440 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000450 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000460 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000470 00 00 00 00 08 00 00 00-52 65 6E 65 65 4E 65 74 ........ReneeNet <- second list entry
00000480 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000490 00 00 00 00 00 00 00 00-01 00 00 00 01 00 00 00 ................
000004A0 01 00 00 00 00 00 00 00-01 00 00 00 06 00 00 00 ................
000004B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000004C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000004D0 64 00 00 00 01 00 00 00-01 00 00 00 01 01 00 00 d...............
000004E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000004F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000500 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000510 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000520 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000530 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000540 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000560 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000570 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000580 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000590 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000005F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000600 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000610 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000620 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000630 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000640 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000650 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000660 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000670 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000680 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000690 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000006A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000006B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000006C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000006D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000006E0 00 00 00 00 00 00 00 00-02 00 00 00 6A 70 00 00 ............jp.. < Third List entry
000006F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000700 00 00 00 00 00 00 00 00-00 00 00 00 01 00 00 00 ................
00000710 01 00 00 00 01 00 00 00-00 00 00 00 01 00 00 00 ................
00000720 06 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000730 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000740 00 00 00 00 1E 00 00 00-00 00 00 00 01 00 00 00 ................
00000750 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000760 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000770 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000780 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000790 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000007F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000800 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000810 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000830 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000840 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000850 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000860 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000870 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000880 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000890 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000008F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000900 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000910 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000920 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000930 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000940 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000950 00 00 00 00 00 00 00 00-00 00 00 00 0C 00 00 00 ................
00000960 30 36 42 34 30 33 35 34-30 30 38 35 00 00 00 00 06B403540085....<-Another list entry
00000970 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000980 01 00 00 00 01 00 00 00-01 00 00 00 00 00 00 00 ................
00000990 01 00 00 00 06 00 00 00-00 00 00 00 00 00 00 00 ................
000009A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000009B0 00 00 00 00 00 00 00 00-16 00 00 00 01 00 00 00 ................
000009C0 01 00 00 00 01 01 00 00-00 00 00 00 00 00 00 00 ................
000009D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000009E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
000009F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A00 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A10 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A20 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A30 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A40 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A50 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A60 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A70 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A80 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000A90 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AA0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AB0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AC0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AD0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AE0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000AF0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B00 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B10 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B20 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B30 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B40 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B50 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B60 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B70 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B80 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000B90 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000BA0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000BB0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000BC0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
00000BD0 07 00 00 00 62 61 20 68-6F 6D 65 00 00 00 00 00 ....ba home.....
00000BE0 00 00 00 0

As you can see there really are two entries for ReneeNet. I have seen other developers in these For a report dupes.
This is not my code because when I used the SDK Sample and issue a GVL this is What it shows:
C:\>wlaninfo.exe gvl 567c1b4a-af61-47b4-aca4-xxxxxxxxx
Total 7 networks are visible.
Network 0:
SSID: ReneeNet
Security enabled.
Contains 1 BSSIDs.
Has a matching profile: ReneeNet.

Currently connected.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 100%
Default authentication algorithm: "Open"
Default cipher algorithm: "WEP"

Network 1:
SSID: ReneeNet
Security enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 100%
Default authentication algorithm: "Open"
Default cipher algorithm: "WEP"

Network 2:
SSID: jp
Security not enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 30%
Default authentication algorithm: "Open"
Default cipher algorithm: "None"

Network 3:
SSID: 06B403540085
Security enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 22%
Default authentication algorithm: "Open"
Default cipher algorithm: "WEP"

Network 4:
SSID: ba home
Security enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 70%
Default authentication algorithm: "Open"
Default cipher algorithm: "WEP"

Network 5:
SSID: wireless_A59
Security enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 30%
Default authentication algorithm: "Open"
Default cipher algorithm: "WEP"

Network 6:
SSID: linksys
Security not enabled.
Contains 1 BSSIDs.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 14%
Default authentication algorithm: "Open"
Default cipher algorithm: "None"

It has occurred to me that perhaps what is doing this, is that AP’s with profiles are reflected twice? Indeed the Sample is looking at Flags andWLAN_AVAILABLE_NETWORK_CONNECTED

as well as WLAN_AVAILABLE_NETWORK_CONNECTED. I have disconnected and that made no difference in the behavior.

I have a hypothesis:

If I detect WLAN_AVAILABLE_NETWORK_HAS_PROFILE skip the next element my code will function as needed. I’m going to go try that.

Has anyone seen this or had any experiences with it?

[29490 byte] By [ReneeC] at [2008-2-24]
# 1

If a scaned network has matching profiles, there will be multiple entries in the list, one for each profile, and an additional entry for the network without profile. For example, if there are two profiles for SSID ReneeNet, p1 and p2, you will see three entries.

ReneeNet - p1

ReneeNet - p2

ReneeNet

YiLu-MSFT at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Windows Vista Wireless SDK...
# 2

Thank you YiLu.

Then what you said is confusing. If you look at the data above, 16 bytes after the "d", it looks to me as if the order is:

ReneeNet

p1

In that snapshot, I am connected to ReneeNet and there is a profile. The second entry has nothing set in the flags field

and the SDK sample would support that too.

Indeed the software would have to detect the scanned node to include the subsequent profiles?

ReneeC at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Windows Vista Wireless SDK...
# 3

Because the profile name is the first field in the data structure, the order of the entries is

p1 - ReneeNet

ReneeNet

This is consistent with the above snapshot.

The wireless needs to discover a SSID in order to include the corresponding profile in the available network list, unless the profile is for an ad hoc network, or is for a hidden SSID AND the connection type is "manual" (you can specify WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES and WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES flags when calling WlanGetAvailableNetworkList()).

YiLu-MSFT at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Windows Vista Wireless SDK...
# 4

YiLu,

I'm still having problems fitting this in and I'd like to discuss why. Here's another dump.

00000000 52 00 65 00 6E 00 65 00-65 00 4E 00 65 00 74 00 R.e.n.e.e.N.e.t.

00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000200 08 00 00 00 52 65 6E 65-65 4E 65 74 00 00 00 00 ....ReneeNet....

00000210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000220 00 00 00 00 01 00 00 00-01 00 00 00 01 00 00 00 ................

00000230 00 00 00 00 01 00 00 00-06 00 00 00 00 00 00 00 ................

00000240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000250 00 00 00 00 00 00 00 00-00 00 00 00 64 00 00 00 ............d...

00000260 00 00 00 00 01 00 00 00-00 00 00 00 03 00 00 00 ................

00000270 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000290 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000350 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000380 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000390 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000400 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000410 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000420 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000430 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000440 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000450 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000460 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000470 00 00 00 00 0C 00 00 00-77 69 72 65 6C 65 73 73 ........wireless

00000480 5F 41 35 39 00 00 00 00-00 00 00 00 00 00 00 00 _A59............

00000490 00 00 00 00 00 00 00 00-01 00 00 00 01 00 00 00 ................

000004A0 01 00 00 00 00 00 00 00-01 00 00 00 06 00 00 00 ................

000004B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004D0 24 00 00 00 01 00 00 00-01 00 00 00 01 01 00 00 $...............

000004E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000500 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000510 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000520 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000530 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000540 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000560 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000570 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000580 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000590 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000600 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000610 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000620 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000630 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000640 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000650 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000660 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000670 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000680 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000690 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006E0 00 00 00 00 00 00 00 00-08 00 00 00 52 65 6E 65 ............Rene

000006F0 65 4E 65 74 00 00 00 00-00 00 00 00 00 00 00 00 eNet............

00000700 00 00 00 00 00 00 00 00-00 00 00 00 01 00 00 00 ................

00000710 01 00 00 00 01 00 00 00-00 00 00 00 01 00 00 00 ................

00000720 06 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000730 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000740 00 00 00 00 64 00 00 00-00 00 00 00 01 00 00 00 ....d...........

00000750 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000760 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000770 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000780 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000790 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000007F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000800 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000810 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000820 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000830 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000840 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000850 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000860 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000870 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000880 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000890 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000008F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000900 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000910 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000920 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000930 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000940 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000950 00 00 00 00 00 00 00 00-00 00 00 00 07 00 00 00 ................

00000960 6C 69 6E 6B 73 79 73 00-00 00 00 00 00 00 00 00 linksys.........

I've circled two bytes from the dump. From what I understand you to be saying is that the first ReneeNet element is itself a profile. The field that I am coloring red and bolding is udwflags. This dump is taken from machine bliss which is connected to AP ReneeNet. The flags field in what you are calling the profile has an accurate reflection of udwflags because Bliss does have a profile and is connected at the time of this dump.

The second element is the one that you say is the information on ReneeNet and is not a profile, yet the profile representation has live and valid flags where the scanned information has none.

Is this a clear statement of why this seems confusing? The SDK Sample shows this:

if (pNetwork != NULL)

{

// SSID

wcout << L"SSID: " << SsidToStringW(strSsid, sizeof(strSsid)/sizeof(WCHAR), &pNetwork->dot11Ssid) << endl;

// whether security is enabled

if (pNetwork->bSecurityEnabled)

{

wcout << L"\tSecurity enabled." << endl;

}

else

{

wcout << L"\tSecurity not enabled." << endl;

}

// number of BSSIDs

wcout << L"\tContains " << pNetwork->uNumberOfBssids << L" BSSIDs." << endl;

// whether have a profile for this SSID

if (pNetwork->dwFlags & WLAN_AVAILABLE_NETWORK_HAS_PROFILE)

{

wcout << L"\tHas a matching profile: " << pNetwork->strProfileName << L"." <<endl;

}

// whether it is connected

if (pNetwork->dwFlags & WLAN_AVAILABLE_NETWORK_CONNECTED)

{

wcout << L"\tCurrently connected." << endl;

}

// whether it is connectable

if (!pNetwork->bNetworkConnectable)

{

// the reason that it is not connectable

wcout << L"\tThe network is not connectable. ";

PrintReason(pNetwork->wlanNotConnectableReason);

}

else

{

wcout << L"\tThe network is connectable." << endl;

}

// BSS type

wcout << L"\tBSS type: " << GetBssTypeString(pNetwork->dot11BssType) << endl;

// Signal quality

wcout << L"\tSignal quality: " << pNetwork->wlanSignalQuality << L"%" << endl;

// Default auth algorithm

wcout << L"\tDefault authentication algorithm: " << GetAuthAlgoString(pNetwork->dot11DefaultAuthAlgorithm) << endl;

// Default cipher algorithm

wcout << L"\tDefault cipher algorithm: " << GetCipherAlgoString(pNetwork->dot11DefaultCipherAlgorithm) << endl;

}

}

So it's looks to me as if the element with the profilename in it, has the information in it that is the scanned data as the second element dwflags is not reflecting the current states at all.

ReneeC at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Windows Vista Wireless SDK...
# 5

Things have gone from bad to worse as I saw this situation today:

00000000 52 00 65 00 6E 00 65 00-65 00 4E 00 65 00 74 00 R.e.n.e.e.N.e.t.

00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000080 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000090 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000000F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000100 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000180 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000190 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000001F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000200 08 00 00 00 52 65 6E 65-65 4E 65 74 00 00 00 00 ....ReneeNet....

00000210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000220 00 00 00 00 01 00 00 00-01 00 00 00 01 00 00 00 ................

00000230 00 00 00 00 01 00 00 00-06 00 00 00 00 00 00 00 ................

00000240 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000250 00 00 00 00 00 00 00 00-00 00 00 00 64 00 00 00 ............d...

00000260 00 00 00 00 01 00 00 00-00 00 00 00 02 00 00 00 ................

00000270 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000290 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000002F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000350 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000380 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000390 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000003F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000400 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000410 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000420 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000430 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000440 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000450 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000460 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000470 00 00 00 00 0C 00 00 00-77 69 72 65 6C 65 73 73 ........wireless

00000480 5F 41 35 39 00 00 00 00-00 00 00 00 00 00 00 00 _A59............

00000490 00 00 00 00 00 00 00 00-01 00 00 00 01 00 00 00 ................

000004A0 01 00 00 00 00 00 00 00-01 00 00 00 06 00 00 00 ................

000004B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004D0 2E 00 00 00 01 00 00 00-01 00 00 00 01 01 00 00 ................

000004E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000004F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000500 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000510 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000520 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000530 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000540 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000550 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000560 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000570 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000580 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000590 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005E0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000005F0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000600 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000610 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000620 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000630 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000640 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000650 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000660 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000670 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000680 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000690 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006A0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006B0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006C0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006D0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

000006E0 00 00 00 00 00 00 00 00-08 00 00 00 52 65 6E 65 ............Rene

000006F0 65 4E 65 74 00 00 00 00-00 00 00 00 00 00 00 00 eNet............

00000700 00 00 00 00 00 00 00 00-00 00 00 00 01 00 00 00 ................

00000710 01 00 00 00 01 00 00 00-00 00 00 00 01 00 00 00 ................

00000720 06 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000730 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................

00000740 00 00 00 00 64 00 00 00-00 00 00 00 01 00 00 00 ....d...........

00000750 00 00 00 00 01 00 00 00-00 00 00 00 00 00 00 00 ................

Node Bliss was disconnected and then connected to ReneeNet. Usually, the connected bit in udwFlags will manifest itself in what YiLu says is the profile representation. But today when I connected the bits split where "HasProfile" remained in the first element and "connected" showed up in the second ReneeNet Elelement. This is as YiLu says, BUT this is not how these structures normally manaifest themselves.

The functionality I am working towards is to have a list of nodes that are not profiles. Connection state is needed information and there are examples here where at times the software works exactly as YiLu says and there are other times that it doesn't, from the criteria of the connected bit in udwflags.

My post of 9/22 2:32 AM UTC is of the system's automation default connection. The posts where the connected bit is in the other structure was a result of a call to WlanConnect where to ReneeNet (Unsecured for testing), where the connection mode was Discover_unsecure. When I connect in this fashion the connected bit, originally reflected in the first element and not the second, reflects in the udwflags in the second element.

What is really needed is a WLAN_AVAILABLE_NETWORK_EXCLUDE_ALL_PROFILES bit.

ReneeC at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Windows Vista Wireless SDK...