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

Commit 2700d953 authored by Emerson Pinter's avatar Emerson Pinter Committed by Gerrit Code Review
Browse files

services: Fix tethering (softap) startup

The interface must be started after firmware reload. If it's not
started, the driver is unable to configure it.

Change-Id: I18b255caf961d23c0f7d4d29dfef040761536c2e
parent 6de7a7ed
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -269,6 +269,10 @@
    <!-- Boolean indicating whether Softap requires reloading AP firmware -->
    <bool name="config_wifiApFirmwareReload">true</bool>

    <!-- Boolean indicating whether the start command should be called on the wireless interface
         when starting the SoftAp -->
    <bool name="config_wifiApStartInterface">false</bool>

    <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
    <bool translatable="false" name="config_wifi_dual_band_support">false</bool>

+1 −0
Original line number Diff line number Diff line
@@ -268,6 +268,7 @@
  <java-symbol type="bool" name="config_enableScreenshotChord" />
  <java-symbol type="bool" name="config_bluetooth_default_profiles" />
  <java-symbol type="bool" name="config_wifiApFirmwareReload" />
  <java-symbol type="bool" name="config_wifiApStartInterface" />

  <java-symbol type="integer" name="config_cursorWindowSize" />
  <java-symbol type="integer" name="config_longPressOnPowerBehavior" />
+2 −0
Original line number Diff line number Diff line
@@ -930,6 +930,8 @@ public class NetworkManagementService extends INetworkManagementService.Stub
            Resources resources = mContext.getResources();
            if (resources.getBoolean(com.android.internal.R.bool.config_wifiApFirmwareReload))
                wifiFirmwareReload(wlanIface, "AP");
            if (resources.getBoolean(com.android.internal.R.bool.config_wifiApStartInterface))
                mConnector.execute("softap", "start", wlanIface);
            if (wifiConfig == null) {
                mConnector.execute("softap", "set", wlanIface, softapIface);
            } else {