Home | History | Annotate | Download | only in wifi

Lines Matching refs:bssid

52      * Maximum number of scan results received since we last saw a BSSID.
57 * BSSID used to increment failure counts against ALL bssids associated with a particular SSID
66 * Key:BSSID, Value:Counters of failure types
106 String bssid = scanResult.BSSID;
108 if (VDBG) Log.v(TAG, " " + bssid + ": " + scanDetail.getSSID());
111 mRecentAvailableNetworks.get(bssid);
139 mRecentAvailableNetworks.put(bssid, availableNetworkFailureCount);
176 * Increments the failure reason count for the given bssid. Performs a check to see if we have
178 * @param bssid of the network that has failed connection, can be "any"
182 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) {
184 Log.v(TAG, "noteConnectionFailureAndTriggerIfNeeded: [" + ssid + ", " + bssid + ", "
188 updateFailureCountForNetwork(ssid, bssid, reason);
229 * Failures are counted per SSID, either; by using the ssid string when the bssid is "any"
230 * or by looking up the ssid attached to a specific bssid
231 * An unused set of counts is also kept which is bssid specific, in 'mRecentAvailableNetworks'
233 * @param bssid of the network that has failed connection, can be "any"
236 private void updateFailureCountForNetwork(String ssid, String bssid, int reason) {
238 Log.v(TAG, "updateFailureCountForNetwork: [" + ssid + ", " + bssid + ", "
241 if (BSSID_ANY.equals(bssid)) {
244 // Bssid count is actually unused except for logging purposes
245 // SSID count is incremented within the BSSID counting method
246 incrementBssidFailureCount(ssid, bssid, reason);
268 * Update the per-BSSID failure count
269 * @param bssid the bssid to increment failure count for
272 private void incrementBssidFailureCount(String ssid, String bssid, int reason) {
274 mRecentAvailableNetworks.get(bssid);
278 + ", " + bssid + "]");
285 + " wrong ssid. Failed [" + ssid + ", " + bssid + "], buffered ["
286 + availableNetworkFailureCount.ssid + ", " + bssid + "]");
293 + ssid + ", " + bssid + "]");
440 * @param bssid bssid to check the failures for
443 public boolean isOverFailureThreshold(String bssid) {
444 if ((getFailureCount(bssid, FAILURE_CODE_ASSOCIATION) >= FAILURE_THRESHOLD)
445 || (getFailureCount(bssid, FAILURE_CODE_AUTHENTICATION) >= FAILURE_THRESHOLD)
446 || (getFailureCount(bssid, FAILURE_CODE_DHCP) >= FAILURE_THRESHOLD)) {
453 * Get the failure count for a specific bssid. This actually checks the ssid attached to the
454 * BSSID and returns the SSID count
457 public int getFailureCount(String bssid, int reason) {
459 mRecentAvailableNetworks.get(bssid);