hotspot2: simplify ANQP cache management

This makes the AnqpCache just a simple data cache, all the logic
related to the ANQP query (e.g. pending query, backoff timeout) will
be handled elsewhere (e.g. PasspointManager).

Also simplify the cache entry expiration timeout (entries with ANQP
domain ID vs entries without ANQP domain ID) by using one timeout
for all entries, since this is already factored in the ANQP entry key.
Entries without ANQP domain ID will be keyed per AP (SSID + BSSID)
and entries with ANQP domain ID will be keyed per ESS (either SSID or
HESSID).

TODO: update unit tests once the cleanup for ANQP elements are completed,
so that we can easily construct an ANQPElement objects (without constructing
a raw byte buffer).

Bug: 31348912
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I6d85f69181755afa7845f9f742c2dfb762c3194c
6 files changed
tree: 1ec6b408736a1199758d863a379918d9c93fbf99
  1. service/
  2. PREUPLOAD.cfg