Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8b60cf3 authored by Ahmed ElArabawy's avatar Ahmed ElArabawy Committed by Automerger Merge Worker
Browse files

Merge "Wifi: Add 6GHz band to getWifiBand method" into rvc-dev am: 80980838...

Merge "Wifi: Add 6GHz band to getWifiBand method" into rvc-dev am: 80980838 am: defba844 am: 05f3738f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11688803

Change-Id: Iee35a523dfc1046a5d5684e84da90cea31a8aded
parents 811de167 05f3738f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -261,11 +261,13 @@ public final class DataStallDetectionStats {
            if (info == null) return DataStallEventProto.AP_BAND_UNKNOWN;

            int freq = info.getFrequency();
            // Refer to ScanResult.is5GHz() and ScanResult.is24GHz().
            if (freq > 4900 && freq < 5900) {
            // Refer to ScanResult.is5GHz(), ScanResult.is24GHz() and ScanResult.is6GHz().
            if (freq >= 5160 && freq <= 5865) {
                return DataStallEventProto.AP_BAND_5GHZ;
            } else if (freq > 2400 && freq < 2500) {
            } else if (freq >= 2412 && freq <= 2484) {
                return DataStallEventProto.AP_BAND_2GHZ;
            } else if (freq >= 5945 && freq <= 7105) {
                return DataStallEventProto.AP_BAND_6GHZ;
            } else {
                return DataStallEventProto.AP_BAND_UNKNOWN;
            }