Skip to content
Commit 54028c11 authored by lesl's avatar lesl
Browse files

wifi: Add new callback to support use case in bridged mode

In bridged mode, it needs the way to know connected client and info in
each instance. Add callback onConnectedClientsChangedWithApInfo to
provide the link between clients and info

1. onConnectedClientsChanged(SoftApInfo, List<WifiClient>)
2. onInfoChanged(List<SoftApInfo>)

PS: This CL# also refactoring the callback in service side.
Move to Manager side to handle it.
Service side:
onConnectedClientsOrInfoChanged, integrate 4 callbacks to
one callback and pass all of the current infos to Manager.

PS: Convert one callback to 4 callback in Manager side will in another CL#.
Now only handle onConnectedClientsChanged in single AP mode to avoid
block AOSP Setting/SystemUI usage.

Manager side: (public systemApi)
1. onInfoChanged(SoftApInfo)
2. onInfoChanged(List<SoftApInfo>)
3. onConnectedClientsChanged(SoftApInfo, List<WifiClient>)
4. onConnectedClientsChanged(List<WifiClient>)

AP+AP Part 6 includes:
Support dual SoftApInfo callback
   a. New callback onInfoChanged(List<SoftApInfo>) &
      onConnectedClientsChanged(SoftApInfo, List<WifiClient>)
   b. Callback refactoring
   c. Support shutdown idle instance in bridged mode

Bug: 162686273
Test: FrameworksWifiApiTests
Change-Id: I861ad4ece908ec98fd500b249906ee73fff0a72a
parent 281c2f5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment