WifiApConfigStore: add initial apconfig validation

Add initial validation for values in the supplied SoftAp config.  The
initial checks will not fully validate the supplied settings, but they
will do a high level sanity check.

Initial items verified:
1 - ssid string set
2 - ssid string not empty
3 - ssid string does not exceed max length
4 - open networks do not have a password
5 - password protected networks do have a password
6 - if applicable, passwords within min/max range

Future extensions would include additional parameters and validating the
bytes in the ssid and password fields.

Bug: 37280779
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I1a9338ce92c60c88ff3992d024a00ab1c6c4ec5e
2 files changed
tree: 26429e4767945e397d22715b877fd15348ea6554
  1. service/
  2. PREUPLOAD.cfg