ScanResultpublic class ScanResult extends Object implements android.os.ParcelableDescribes information about a detected access point. In addition
to the attributes described here, the supplicant keeps track of
{@code quality}, {@code noise}, and {@code maxbitrate} attributes,
but does not currently report them to external clients. |
Fields Summary |
---|
public String | SSIDThe network name. | public String | BSSIDThe address of the access point. | public String | capabilitiesDescribes the authentication, key management, and encryption schemes
supported by the access point. | public int | levelThe detected signal level in dBm. At least those are the units used by
the TI driver. | public int | frequencyThe frequency in MHz of the channel over which the client is communicating
with the access point. | public static final Creator | CREATORImplement the Parcelable interface {@hide} |
Constructors Summary |
---|
public ScanResult(String SSID, String BSSID, String caps, int level, int frequency)We'd like to obtain the following attributes,
but they are not reported via the socket
interface, even though they are known
internally by wpa_supplicant.
{@hide}
this.SSID = SSID;
this.BSSID = BSSID;
this.capabilities = caps;
this.level = level;
this.frequency = frequency;
//networkConfig = null;
|
Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface {@hide}
return 0;
| public java.lang.String | toString()
StringBuffer sb = new StringBuffer();
String none = "<none>";
sb.append("SSID: ").
append(SSID == null ? none : SSID).
append(", BSSID: ").
append(BSSID == null ? none : BSSID).
append(", capabilities: ").
append(capabilities == null ? none : capabilities).
append(", level: ").
append(level).
append(", frequency: ").
append(frequency);
return sb.toString();
| public void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface {@hide}
dest.writeString(SSID);
dest.writeString(BSSID);
dest.writeString(capabilities);
dest.writeInt(level);
dest.writeInt(frequency);
|
|