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

Commit 35fc6823 authored by Wei Liu's avatar Wei Liu Committed by Android (Google) Code Review
Browse files

Merge "Disable WiFi p2p service if it's not supported."

parents 470baf36 4e62ac5e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -826,7 +826,11 @@ public final class SystemServer {
                } else {
                    Slog.i(TAG, "No Wi-Fi NAN Service (NAN support Not Present)");
                }

                if (context.getPackageManager().hasSystemFeature(
                        PackageManager.FEATURE_WIFI_DIRECT)) {
                    mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
                }
                mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
                mSystemServiceManager.startService(
                            "com.android.server.wifi.scanner.WifiScanningService");