- (id)fetchSSIDInfo {
NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces();
NSLog(@
"Supported interfaces: %@"
, ifs);
id info = nil;
for
(NSString *ifnam in ifs) {
info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam);
NSLog(@
"%@ => %@"
, ifnam, info);
if
(info && [info count]) {
break
; }
}
return
info;
}