summaryrefslogtreecommitdiff
path: root/qcwcn
diff options
context:
space:
mode:
authorSwarn Singh <swarnkum@codeaurora.org>2019-12-05 18:08:27 +0530
committerVictor Hsu <hsuvictor@google.com>2020-04-17 14:56:09 +0000
commitfe97994539e450aa98665d3885a5159fc9a01a62 (patch)
treec52aa682f4d469903d4587b63b43a575f137507d /qcwcn
parent24c9cf08542055ba659517d7ea7a85e12299c219 (diff)
downloadwlan-fe97994539e450aa98665d3885a5159fc9a01a62.tar.gz
Wifi-Hal: Add NAN iface type in dynamic creation of iface
This change added interface name start from "wifi" as part of valid wifi interface name. Bug: 153852667 Bug: 154279995 Test: Pass wifi aware tests of CtsVerifier. CRs-Fixed: 2593436 Change-Id: Ic8154616c54905969e55b89c0a8f5cde923e5136
Diffstat (limited to 'qcwcn')
-rw-r--r--qcwcn/wifi_hal/wifi_hal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qcwcn/wifi_hal/wifi_hal.cpp b/qcwcn/wifi_hal/wifi_hal.cpp
index 86275de..2bf7937 100644
--- a/qcwcn/wifi_hal/wifi_hal.cpp
+++ b/qcwcn/wifi_hal/wifi_hal.cpp
@@ -1745,7 +1745,8 @@ static int wifi_get_multicast_id(wifi_handle handle, const char *name,
static bool is_wifi_interface(const char *name)
{
- if (strncmp(name, "wlan", 4) != 0 && strncmp(name, "p2p", 3) != 0) {
+ if (strncmp(name, "wlan", 4) != 0 && strncmp(name, "p2p", 3) != 0
+ && strncmp(name, "wifi", 4) != 0) {
/* not a wifi interface; ignore it */
return false;
} else {