summaryrefslogtreecommitdiff
path: root/wifi_upload_hook.py
diff options
context:
space:
mode:
author Sunil Ravi <sunilravi@google.com> 2024-02-05 07:38:13 +0000
committer Sunil Ravi <sunilravi@google.com> 2024-02-05 21:43:18 +0000
commit6d99d66a2572c01c8d55fac53ca2c95c2a54d506 (patch)
tree90ad0924c6443b463a596ebdb2c70cc014ca3b8f /wifi_upload_hook.py
parenteccadb466f9d3fcfae1cb6d7b2d787697091df9b (diff)
API to get the IP address of the connected client
The changes are, 1. In case of EAPOL IP address allocation, get the IP of the connected client from supplicant HAL AP-STA-CONNECTED event and save it in WifiP2pDevice. 2. Register for onClientsChanged callback function in TetheringEventCallback interface. 3. Once DHCP server assigns the IP address, the Tethering Manager calls the onClientsChanged callback function with the IP address details. Save the IP address in WifiP2pDevice. 4. Send WIFI_P2P_CONNECTION_CHANGED_ACTION broadcast intent to inform that the IP address is assigned. Bug: 291202830 Test: Manual - Enabled EAPOL IP address via overlay config file and established P2P connection and confirmed from the logs that the IP address is set in the WifiP2pDevice. Test: manual - Establish negotiated P2P connection and confirmed from the logs that the IP address is set in the WifiP2pDevice. Change-Id: I5d5b72e339029810ec8e219c08742c65a526f24d
Diffstat (limited to 'wifi_upload_hook.py')
0 files changed, 0 insertions, 0 deletions