Open GoogleCodeExporter opened 9 years ago
I have found out the solution. Have a look the below. You can do more details
using the wep, wpa, rsn. Thanks.
int adhoc = [network objectForKey:@"AP_MODE"];
if (adhoc == 1) {
ret =@"AdHoc network";
} else {
id wep = [network objectForKey:@"WEP"];
id wpa = [network objectForKey:@"WPA_IE"];
id rsn = [network objectForKey:@"RSN_IE"];
if(wep) {
ret =@"Secured network (WEP)";
} else if (wpa && rsn) {
ret =@"Secured network (WPA, WPA2)";
} else if (wpa) {
ret =@"Secured network (WPA)";
} else if (rsn) {
ret =@"Secured network (WPA2)";
} else {
ret =@"Open Network";
}
}
Original comment by kikyoung...@gmail.com
on 16 Sep 2010 at 12:49
kikyound's code is work,thx!
Original comment by bruce_...@163.com
on 8 Aug 2012 at 3:24
Original issue reported on code.google.com by
kikyoung...@gmail.com
on 25 Aug 2010 at 11:16