diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-09-12 12:47:40 +0000 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-11-22 01:41:20 +0000 |
commit | edbf7b4c7a802dd13ca805a46a9f4c9eb079f3e1 (patch) | |
tree | 0f0840398722c54b2587487f524c05f42d37b3d0 | |
parent | 368d569a59d6af9d4d01db7ce25b1239182655cf (diff) |
force hotspot to be hiddenhidden-ssid
Change-Id: I9dd4963a78c0aabb80f54e41e5407c44f18d2253
-rw-r--r-- | service/java/com/android/server/wifi/SoftApManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |