platform_hardware_interfaces/wifi/1.5
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
..
default Update the p2p device interface name 2021-10-19 18:14:26 +00:00
vts WiFi: Modify OWNERS files 2021-06-15 10:20:29 -07:00
Android.bp Uprev IWifiEventCallback.hal to 1.5 2021-03-19 15:21:29 +08:00
IWifi.hal Uprev IWifiEventCallback.hal to 1.5 2021-03-19 15:21:29 +08:00
IWifiApIface.hal wifi: Add new HAL API: getBridgedInstances 2021-01-27 19:50:13 +08:00
IWifiChip.hal Wifi HAL Multi STA: Clarify behavior during single STA 2021-04-12 11:56:17 -07:00
IWifiEventCallback.hal Add API "startSubsystemRestart" and callback function 2021-03-20 09:29:46 +08:00
IWifiNanIface.hal
IWifiNanIfaceEventCallback.hal
IWifiStaIface.hal Notify scan-only mode to driver for power saving 2021-01-22 23:05:30 +00:00
types.hal Wifi: Add Radio ID in radiostats 2021-03-22 17:52:54 -07:00