wifi: Fix SAP clients connection changed callback

In current design, the clients connection changed should happen after
SAP info updated. (Because the info updated will trigger after SAP
enabled immediately).

But the old device, which is using old HAL and wificond doesn't support
the info callback devices, will not receive info changed callback.
Add the info size check to support client connection changed callback
for the old device.

Note: For the new callback
onClientsChanged(SoftApInfo, List<WifiClient>), it is designed to ignore
for the old device.

Bug: 187910356
Test: atest -c FrameworksWifiApiTests
Test: atest -c FrameworksWifiTests
Test: atest -c WifiManagerTest(cts)
Test: Manual test with test code (Ignore info callback in
SoftApManager), client connection changed callback works normally.

Change-Id: I4b0c6bdff0d3d515819ff893c694c6ad2ae53db9
3 files changed