CONFIG_HS20 and CONFIG_INTERWORKING are used in wpa_supplicant
to enable or disable HotSpot 2.0 or ANQP respectively. These
defines were not checked in AIDL code, which assumed that
HS20 and INTERWORKING were enabled, and fails to compile when
they are disabled.
This patch compiles out the functions that require HS20 and
INTERWORKING when they are not enabled in android.config.
Upstream from Meta.
Test: Modify android.config and build for all configurations of
CONFIG_HS20 and CONFIG_INTERWORKING. WiFi continues to work fine.
Bug: 280661640
Signed-off-by: Sam Gao <ssgao@meta.com>
Change-Id: Ib95b798ea80c375f6922b4b46576578ad7c112c2
Removed the logic to send frequency
changed event to framework, on receiving
WPA_BSS_FREQ_CHANGED_FLAG attribute change.
This is because, this event is specific to
STA side functionality. Added a new frequency
changed notification handler. Send the new
frequency to framework from this handler.
Bug: 233074707
Test: Manual - Established P2P connection & confirmed from logs
that channel change event is received correctly on
framework side(used wpa_cli -i<ifname>
chan_switch 10 2412 0 2412 2412 to trigger channel switch)
Change-Id: I75d3c9ad3ab357ee0d8d9e58bf38870bb3a21e98
When supplicant receives the channel change event
(NL80211_CMD_CH_SWITCH_NOTIFY) from driver, send
the new operating frequency information to framework.
Bug: 202758240
Test: Manually triggered channel switch through hostapd command
and verified the new frequency in p2p group info logs
Change-Id: I05f10077ac497b934eb2c0560e179cdf4ed1497f