title: Specific Network Informations
body: <p>I'm doing a school project where I need to retrieve all the Access Point I can find near me.
  When I get the List mScanResultList I can access to the fields I need.
  The code I'm testing is:</p>
  
  <pre><code>for(ScanResult r : mResultList) {
                      Log.i(TEST, "BSSID: " + r.BSSID);
                      Log.i(TEST, "SSID: " + r.SSID);
                      Log.i(TEST, "Frequency: " + r.frequency);
                      Log.i(TEST, "Level: " + r.level);
                      Log.i(TEST, "Capabilities: " + r.capabilities);
                  }
  </code></pre>
  
  <p>My question is:
  r.level is a negative value. I need that decibel strength to convert it into approximate distance. Should I just do -(r.level)?</p>
  
  <p>In addition I need to know the "Security Type: WEP, WPA, Open ..." (citing the project assignment). Where do I get those info from? I can't understand what r.capabilities means.</p>
  
  <p>the Capabilities field of a network I find reads:</p>
  
  <pre><code>Capabilities: [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS]
  </code></pre>