Send interface address in GO from supplicant event
Test: manual
Bug: 233912758
Change-Id: Ibff050d8e7294401dbcf67c0d28a5714945dafb5
diff --git a/wpa_supplicant/aidl/aidl_manager.cpp b/wpa_supplicant/aidl/aidl_manager.cpp
index ffd94b9..fe0ebdb 100644
--- a/wpa_supplicant/aidl/aidl_manager.cpp
+++ b/wpa_supplicant/aidl/aidl_manager.cpp
@@ -1359,10 +1359,8 @@
params.passphrase = misc_utils::charBufToString(ssid->passphrase);
params.isPersistent = aidl_is_persistent;
params.goDeviceAddress = macAddrToVec(wpa_group_s->go_dev_addr);
- if (!aidl_is_go) {
- // Send the GO interface MAC address in GC for link-local IPv6 calculation.
- params.goInterfaceAddress = macAddrToVec(wpa_group_s->current_bss->bssid);
- }
+ params.goInterfaceAddress = aidl_is_go ? macAddrToVec(wpa_group_s->own_addr) :
+ macAddrToVec(wpa_group_s->current_bss->bssid);
callWithEachP2pIfaceCallback(
misc_utils::charBufToString(wpa_s->ifname),