wifi: Add check band support before update it (2.4G)
The default band uses 2.4G may break in 5G only device.
Add generateDefaultBand to decide the band base on supported band.
Also refactor the code. Move supported band check to ApConfigUtil.
PS: Rename removeUnsupportedBand() -> removeUnAvailableBand because it
will need to integrate coex later
Add new API: removeUnsupportedBand to remove unsupported band which base
on overlay config
Bug: 175372385
Test: atest -c FrameworksWifiTests
Change-Id: Iaed3e7dbeeff2cce27ffd536bc53f79372397cca
6 files changed