summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed ElArabawy <arabawy@google.com>2020-05-09 00:23:13 -0700
committerAhmed ElArabawy <arabawy@google.com>2020-05-09 16:59:31 +0000
commit144c0dd0c1c34e9e9d1c997a44dd6a5625b792f2 (patch)
tree1d32abe42a5c4381c73973b3a6e65dd19a31395d
parentb067f306691fc705114fca7f145dea676bb0e677 (diff)
Handle 6GHz band in channel utilization calculation
This commit includes the 6GHz band in channel utilization calculation. Bug: 145133625 Test: atest com.android.server.wifi Change-Id: I278e1efcc0cfdb95dd8cedaa25976a8bee6e8992
-rw-r--r--service/java/com/android/server/wifi/ThroughputPredictor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/ThroughputPredictor.java b/service/java/com/android/server/wifi/ThroughputPredictor.java
index 9a33863e4..0e750efc5 100644
--- a/service/java/com/android/server/wifi/ThroughputPredictor.java
+++ b/service/java/com/android/server/wifi/ThroughputPredictor.java
@@ -42,7 +42,7 @@ public class ThroughputPredictor {
public static final int CHANNEL_UTILIZATION_DEFAULT_2G = MAX_CHANNEL_UTILIZATION * 6 / 16;
// Default value of channel utilization at 5G when channel utilization is not available from
// BssLoad IE or from link layer stats
- public static final int CHANNEL_UTILIZATION_DEFAULT_5G = MAX_CHANNEL_UTILIZATION / 16;
+ public static final int CHANNEL_UTILIZATION_DEFAULT_ABOVE_2G = MAX_CHANNEL_UTILIZATION / 16;
// Channel utilization boost when bluetooth is in the connected mode
public static final int CHANNEL_UTILIZATION_BOOST_BT_CONNECTED_2G = MAX_CHANNEL_UTILIZATION / 4;
//TODO: b/145133625 Need to consider 6GHz
@@ -388,7 +388,7 @@ public class ThroughputPredictor {
channelUtilization = channelUtilizationLinkLayerStats;
} else {
channelUtilization = is2G ? CHANNEL_UTILIZATION_DEFAULT_2G :
- CHANNEL_UTILIZATION_DEFAULT_5G;
+ CHANNEL_UTILIZATION_DEFAULT_ABOVE_2G;
}
if (is2G && isBluetoothConnected) {