app/src/main/java/com/find/wifitool/wifi/WifiIntentReceiver.java
private static boolean shouldLog(final ScanResult sr) {
        // Only apply this test if we have exactly 17 character long BSSID which should
        // be the case.
        final char secondNybble = sr.BSSID.length() == 17 ? sr.BSSID.charAt(1) : ' ';

        if(AD_HOC_HEX_VALUES.contains(secondNybble)) {
            return false;
        }
        else {
            return true;
        }
    }
/**
     * Returns true if the given scan should be logged, or false if it is an
     * ad-hoc AP or if it is an AP that has opted out of Google's collection
     * practices.
     */
Returns true if the given scan should be logged, or false if it is an
ad-hoc AP or if it is an AP that has opted out of Google's collection
practices.
Returns true if the given scan should be logged or false if it is an ad - hoc AP or if it is an AP that has opted out of Google ' s collection practices .
private static boolean shouldLog(final ScanResult sr) {
        final char secondNybble = sr.BSSID.length() == 17 ? sr.BSSID.charAt(1) : ' ';
        if(AD_HOC_HEX_VALUES.contains(secondNybble)) {
            return false;
        }
        else {
            return true;
        }
    }
private static boolean shouldLog ( final ScanResult sr ) { final char secondNybble = sr . BSSID . length ( ) == 17 ? sr . BSSID . charAt ( 1 ) : ' ' ; if ( AD_HOC_HEX_VALUES . contains ( secondNybble ) ) { return false ; } else { return true ; } }
Returns true if the given scan should be logged, or false if it is an
 ad-hoc AP or if it is an AP that has opted out of Google's collection
 practices.
Returns true if the given scan should be logged or false if it is an ad - hoc AP or if it is an AP that has opted out of Google ' s collection practices .
// Only apply this test if we have exactly 17 character long BSSID which should // be the case.