Netd unconditionally enable bandwidth control
Remove corresponding netd command, and default enable bandwidth
controller.
Test: The bindwith control start correctly on new devices.
Change-Id: I05e1bd365af1edfade28d445cec897cc6b6b2f08
diff --git a/server/Controllers.cpp b/server/Controllers.cpp
index f590307..409d243 100644
--- a/server/Controllers.cpp
+++ b/server/Controllers.cpp
@@ -283,8 +283,8 @@
gLog.info("Initializing traffic control: %.1fms", s.getTimeAndReset());
bandwidthCtrl.setBpfEnabled(trafficCtrl.checkBpfStatsEnable());
- bandwidthCtrl.enableBandwidthControl(false);
- gLog.info("Disabling bandwidth control: %.1fms", s.getTimeAndReset());
+ bandwidthCtrl.enableBandwidthControl();
+ gLog.info("Enabling bandwidth control: %.1fms", s.getTimeAndReset());
if (int ret = RouteController::Init(NetworkController::LOCAL_NET_ID)) {
gLog.error("Failed to initialize RouteController (%s)", strerror(-ret));