Wifi: Allow Hotspot 2.0 connection without Roaming Consortium ANQP-element
Currently, the Android could not connect to APs which has Roaming
Consortium OIs less than 3.
To send Roaming Consortium OIs from an AP to some STAs, an AP can use
"Roaming Consortium information element". As defined in [1] "9.4.2.96
Roaming Consortium element", the maximum number of the OIs the
information element can carry is 3. If an AP has more OIs, the AP can
use "Roaming Consortium ANQP-element" also.
The Android uses only "Roaming Consortium ANQP-element". So the
Android could not connect to the APs which does not send "Roaming
Consortium ANQP-element". There could be an AP which sends "Roaming
Consortium ANQP-element" even if it has only one OI. At least hostapd
does not send "Roaming Consortium ANQP-element" when it has only one
OI.
This patch supports to connect to such APs.
Bug: 77624036
Test: Connect with roaming consortium OI on Nexus 5X with hostapd
commit 64624f31cf81dc6164462fa153ee7a5909e21183 "OWE: Fix CONFIG_OWE=y
build without CONFIG_IEEE80211R=y". I tested with android-8.1.0_r18
branch and port the patch to master branch because my Nexus 5X does
not boot with master branch.
Test: All the tests are passed
./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ia48b242382836f7ee3a6f97888d2a3dcc4f2b189
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
7 files changed