summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Script.java
diff options
context:
space:
mode:
authorRebecca Silberstein <silberst@google.com>2016-03-17 10:33:21 -0700
committerRebecca Silberstein <silberst@google.com>2016-03-17 11:13:48 -0700
commit908c5df3b16aa6a3d0e2fd8409720a8c966e098d (patch)
tree02efaa8e5172711050141434ef40ccd341ac641d /rs/java/android/renderscript/Script.java
parent9c2e6448b1c7c9d0a28bb6ac47b44bc6c8797ffe (diff)
handle wifi interface changes with interfaceRemoved
When wifi is enabled, turning on the wifi hotspot is confused when the underlying interface goes down (a necessary step to start up the SoftAp). When tethering on a wifi interface, we may see the interface go down and then back up. When the interface goes down the TetherInterfaceSM in Tethering.java receives a CMD_INTERFACE_DOWN message. When this happens, the existing TetherInterfaceSM is removed and a new one is created. If tethering was already established, this also triggers the hotspot teardown. This CL allows the TetherInterfaceSM for wifi to ignore the interface down and instead rely on TETHER_MODE_UNREQUESTED and the interfaceRemoved method. This change was tested to verify the hotpost comes up with wifi disabled and wifi enabled. The hotspot was also confirmed to disable when turned off through the UI and when airplane mode is enabled. BUG: 27711081 Change-Id: Ia24b215dca95852fdca2245224a8fb06e0bb3b65
Diffstat (limited to 'rs/java/android/renderscript/Script.java')
0 files changed, 0 insertions, 0 deletions