UPSTREAM: hostapd: Add a database of neighbor APs

Add a configurable neighbor database that includes the content of
Nighbor Report element, LCI and Location Civic subelements and SSID.

All parameters for a neighbor must be updated at once; Neighbor Report
element and SSID are mandatory, LCI and civic are optional. The age of
LCI is set to the time of neighbor update.

[cherry pick from 9b4b226426b169d0e9d0292cd8a0c822df867bd8]
[git remote add hostap git://w1.fi/srv/git/hostap.git]

BUG=b:36055223
TEST=Executed below commands
The control interface API is:
SET_NEIGHBOR <BSSID> <ssid=SSID> <nr=data> [lci=<data>] [civic=<data>]

To delete a neighbor use:
REMOVE_NEIGHBOR <BSSID> <SSID>

Change-Id: Id8fe67d204d5d4db89ed392dc72e8c562386625b
Reviewed-on: https://chromium-review.googlesource.com/456538
Commit-Ready: NARAYANRADDI MASTI <nmasti@google.com>
Tested-by: NARAYANRADDI MASTI <nmasti@google.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@chromium.org>
10 files changed