title: get ssid from access point in ios
body: <p>I want to get some uniqe information from access points such as mac address (bssid). I try this code, but it is only works when I connect a network..</p>
  
  <pre><code>- (id)fetchSSIDInfo
  {
  NSArray *ifs = (id)CNCopySupportedInterfaces();
  NSLog(@"%s: Supported interfaces: %@", __func__, ifs);
  id info = nil;
  for (NSString *ifnam in ifs) {
      info = (id)CNCopyCurrentNetworkInfo((CFStringRef)ifnam);
      NSLog(@"%s: %@ =&gt; %@", __func__, ifnam, info);
      if (info &amp;&amp; [info count]) {
          break;
      }
      [info release];
  }
  [ifs release];
  return [info autorelease];
  }
  </code></pre>
  
  <p>How can I get bssid from access points around me even if I am not connected, is it possible?</p>