wifi: Support shutdown idle instance in bridged mode
The bridge mode will maintain two timers (X and Y)
Y (default = 5 minutes) - This timer is running if there is at least
1 idle AP in dual AP mode. If this timer expires, it disables the Idle AP.
If both APs are Idle, it shuts down the higher band AP (5 GHz);
If there is no client after (X-Y) minutes, the SAP will shutdown.
Note: This timer runs in dual AP mode only
(i.e. 2 AP instances running and at least one instance is Idle).
X (default = 10 minutes) - This timer is running if there are no clients
on both 2.4 + 5 (dual AP) or no clients connected during
Single AP (2.4 or 5) mode. If this timer expires, it disables SAP.
Ps: Alos fix WifiServiceImpl bridged mode cache when the bridged mode shutdown.
AP+AP Part 6 includes:
Support dual SoftApInfo callback
a. New callback onConnectedClientsChangedWithApInfo
b. Support shutdown idle instance in bridged mode
Bug: 162686273
Test: FrameworksWifiTests
Change-Id: I299ba44550a93f3509fc1825640e2c7a6e1f70ed
9 files changed