P2P: Notify the IP address of the connected P2P Client
When wpa_supplicant assigns the IP address (WFA EAPOL IP address allocation feature), the assigned IP address of the P2P Client on the GO side is notified in the AP-STA-CONNECTED event. So to obtain the IP info to external programs, modify the STA authorized event to include the the assigned IP address of the P2P Client. Test: Establish P2P connection and verified from the logs that the P2P Client IP address is notified. Signed-off-by: Sunil Ravi <sunilravi@google.com>
This commit is contained in:
parent
b18d957593
commit
dbcf9ff156
5 changed files with 17 additions and 11 deletions
|
@ -293,7 +293,8 @@ struct hostapd_data {
|
|||
void *wps_event_cb_ctx;
|
||||
|
||||
void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
|
||||
int authorized, const u8 *p2p_dev_addr);
|
||||
int authorized, const u8 *p2p_dev_addr,
|
||||
const u8 *ip);
|
||||
void *sta_authorized_cb_ctx;
|
||||
|
||||
void (*setup_complete_cb)(void *ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue