How Can I get Stealth Wifi AP Information

Mar 20, 2014 at 7:11 AM
Hello, I'm using Managed Wifi API, it's very useful.

I want to judge Wifi AP whether stealth AP.
How Can I judge that?
now, I am coding as below.

Is this correct?
When I got stealth Wifi AP information, SSID has multiple or continuous one \0.
For this reason, I am judged on whether or not \0.
string result_ssid;
Wlan.WlanBssEntry[] wlanBssEntries = wlanIface.GetNetworkBssList();
foreach (Wlan.WlanBssEntry network in wlanBssEntries)
{
    Wlan.Dot11Ssid ssid = network.dot11Ssid;

    string ssid_str =  Encoding.ASCII.GetString(ssid.SSID, 0, (int)ssid.SSIDLength);
    //judge Wifi AP is stealth or not. 
    if (ssid_str.LastIndexOf("\0") >= 0){
        result_ssid= "stealth";
    }
    else{
        result_ssid= ssid_str;
    }
}
regards.