I looked barbelo application
Code:
http://darkircop.org/barbelo/
It can find a lot of information about the wifi access points, I think barbelo use the same API.
But with barbelo the security mode that it discover is ever correct.
Maybe there are other API to do this?
EDIT:
I saw the barbelo source and it's like my source:
Code:
ap->set_security(scanInfo.SecurityMode()); //_security=scanInfo.SecurityMode()
switch (_security) {
case EWlanConnectionSecurityOpen:
Utils::append_data(out, _L8("<encryption>None</encryption>\n"));
break;
case EWlanConnectionSecurityWpaPsk:
Utils::append_data(out, _L8("<encryption>PSK</encryption>\n"));
/* fall-through */
case EWlanConnectionSecurityWpa:
Utils::append_data(out, _L8("<encryption>WPA</encryption>\n"));
/* fall-through */
case EWlanConnectionSecurityWep:
Utils::append_data(out, _L8("<encryption>WEP</encryption>\n"));
break;
case EWlanConnectionSecurity802d1x:
Utils::append_data(out,
_L8("<encryption>802d.1x</encryption>\n"));
break;
default:
Utils::append_data(out,
_L8("<encryption>Unknown</encryption>\n"));
break;
}
Then why it work ever?
EDIT2:
Maybe because barbelo search the WIFIs with GetScanResults(TRequestStatus &, CWlanScanInfo &) and I with GetScanResults(CWlanScanInfo &) ?
EDIT3:
I've solved!
In the wiki missing the WpaPsk and I hadn't managed it