platform_hardware_interfaces/wifi/1.5/default
Sunil Ravi 6adbab13ee Update the p2p device interface name
In some implementations P2P device interface is created under
primary interface(wlan0 by default). In those implementations
p2p device name is predefined in system property wifi.direct.interface.
And the interface is created by supplicant with primary interface as
the parent interface. The naming of p2p device interface is
p2p-dev-<parent interface> ("p2p-dev-wlan0").

With STA+STA feature, wlan0 interface gets deleted in certain scenarios
and wlan1 becomes the active interface. In such scenarios P2P fails to
create the interface as parent interface wlan0 is deleted.

To fix the issue update the p2p device interface from system property
based on the current active wlan interface. ie First get the p2p parent
interface name from p2p device interface name set in property.
Check if the parent interface derived from p2p device interface name is
the current active interface. If not, get the current active interface
and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1").
This helps HIDL/supplicant to get an active wlan interface from p2p
device interface name and succeed in creating the p2p interface under the
active interface.

Bug: 203434193

Test: Manual - Tested STA+STA which ended up deleting wlan0 interface.
      Then ran p2p tests and confirmed that p2p scan and connection
      works.
Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
Merged-In: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
(cherry picked from commit 7f2822aff7)
2021-10-19 18:14:26 +00:00
..
tests Wifi: Add Radio ID in radiostats 2021-03-22 17:52:54 -07:00
android.hardware.wifi@1.0-service-lazy.rc wifi: add 1.5 HIDL service in lazy rc 2021-07-01 16:26:06 +08:00
android.hardware.wifi@1.0-service.rc
android.hardware.wifi@1.0-service.xml
Android.mk [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces 2021-02-23 14:26:20 -08:00
hidl_callback_util.h
hidl_return_util.h
hidl_struct_util.cpp Wifi: Add Radio ID in radiostats 2021-03-22 17:52:54 -07:00
hidl_struct_util.h WiFi: Get peer information (BSS load and rate statistics) from link layer stats 2021-03-09 12:28:32 -08:00
hidl_sync_util.cpp
hidl_sync_util.h
OWNERS WiFi: Modify OWNERS files 2021-06-15 10:20:29 -07:00
ringbuffer.cpp Clear ringbuffer after dumping to file 2021-07-11 22:39:29 -07:00
ringbuffer.h Clear ringbuffer after dumping to file 2021-07-11 22:39:29 -07:00
service.cpp wifi: Wait for driver ready and bring up the interface when setMacAddress fails 2021-03-03 09:00:00 -08:00
THREADING.README
wifi.cpp WIFI: Add log to debug onSubsystemRestart 2021-10-08 20:56:37 +00:00
wifi.h Uprev IWifiEventCallback.hal to 1.5 2021-03-19 15:21:29 +08:00
wifi_ap_iface.cpp WIFI: Set MAC address for bridged interface 2021-07-02 12:05:57 +08:00
wifi_ap_iface.h wifi: Add new HAL API: getBridgedInstances 2021-01-27 19:50:13 +08:00
wifi_chip.cpp Update the p2p device interface name 2021-10-19 18:14:26 +00:00
wifi_chip.h Add API "startSubsystemRestart" and callback function 2021-03-20 09:29:46 +08:00
wifi_feature_flags.cpp wifi(hal): Use debug property to select one of preset HAL iface combination 2020-11-12 19:06:12 -08:00
wifi_feature_flags.h wifi(hal): Use debug property to select one of preset HAL iface combination 2020-11-12 19:06:12 -08:00
wifi_iface_util.cpp WIFI: Set MAC address for bridged interface 2021-07-02 12:05:57 +08:00
wifi_iface_util.h WIFI: Set MAC address for bridged interface 2021-07-02 12:05:57 +08:00
wifi_legacy_hal.cpp Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler" 2021-03-30 14:08:38 +08:00
wifi_legacy_hal.h Add API "startSubsystemRestart" and callback function 2021-03-20 09:29:46 +08:00
wifi_legacy_hal_factory.cpp Wifi: support multiple WIFI chips 2020-08-11 14:58:07 +08:00
wifi_legacy_hal_factory.h Wifi: support multiple WIFI chips 2020-08-11 14:58:07 +08:00
wifi_legacy_hal_stubs.cpp Add API "startSubsystemRestart" and callback function 2021-03-20 09:29:46 +08:00
wifi_legacy_hal_stubs.h Instead of including wifi_hal.h in the legacy_hal namespace, import the types. 2021-01-05 12:16:33 -08:00
wifi_mode_controller.cpp
wifi_mode_controller.h
wifi_nan_iface.cpp [AWARE] Add support for instant communication mode 2020-10-15 17:15:46 -07:00
wifi_nan_iface.h [AWARE] Add support for instant communication mode 2020-10-15 17:15:46 -07:00
wifi_p2p_iface.cpp
wifi_p2p_iface.h
wifi_rtt_controller.cpp
wifi_rtt_controller.h
wifi_sta_iface.cpp Notify scan-only mode to driver for power saving 2021-01-22 23:05:30 +00:00
wifi_sta_iface.h Notify scan-only mode to driver for power saving 2021-01-22 23:05:30 +00:00
wifi_status_util.cpp
wifi_status_util.h