From edbf7b4c7a802dd13ca805a46a9f4c9eb079f3e1 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 12 Sep 2021 12:47:40 +0000 Subject: force hotspot to be hidden Change-Id: I9dd4963a78c0aabb80f54e41e5407c44f18d2253 --- service/java/com/android/server/wifi/SoftApManager.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service') diff --git a/service/java/com/android/server/wifi/SoftApManager.java b/service/java/com/android/server/wifi/SoftApManager.java index b321a78a1..03323c99c 100644 --- a/service/java/com/android/server/wifi/SoftApManager.java +++ b/service/java/com/android/server/wifi/SoftApManager.java @@ -406,6 +406,9 @@ public class SoftApManager implements ActiveModeManager { // Make a copy of configuration for updating AP band and channel. SoftApConfiguration.Builder localConfigBuilder = new SoftApConfiguration.Builder(config); + // Do not broadcast SSID + localConfigBuilder.setHiddenSsid(true); + boolean acsEnabled = mCurrentSoftApCapability.areFeaturesSupported( SoftApCapability.SOFTAP_FEATURE_ACS_OFFLOAD); -- cgit v1.2.3