From fb564db819a67be0befb0930845236a41e06d9fd Mon Sep 17 00:00:00 2001 From: bings Date: Tue, 19 Feb 2019 16:30:08 +0800 Subject: qcacld-2.0: Add dummy function for supplicant deprecated commands propagation from qcacld-3.0 to qcacld-2.0 This commit fix the VTS test failures when running the following deprecated commands in SupplicantStaIfaceHidlTest RXFILTER-START RXFILTER-STOP BTCOEXSCAN-START BTCOEXSCAN-STOP Change-Id: I45fa09c24700e6872de7709c6875dbdbd8aa10cc CRs-Fixed: 2401005 --- CORE/HDD/src/wlan_hdd_main.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index bc41d6889e09..673839bcc5ef 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -8497,6 +8497,24 @@ mem_free: } else if (strncmp(command, "STOP", 4) == 0) { hddLog(LOG1, FL("STOP command")); pHddCtx->driver_being_stopped = true; + } else if (strncmp(command, "BTCOEXSCAN", 10) == 0) { + hddLog(LOG1, FL("ignore BTCOEXSCAN and return -ENOTSUPP")); + ret = -ENOTSUPP; + } else if (strncmp(command, "RXFILTER", 8) == 0) { + hddLog(LOG1, FL("ignore RXFILTER and return -ENOTSUPP")); + ret = -ENOTSUPP; + } else if (strncmp(command, "RXFILTER-START", 14) == 0) { + hddLog(LOG1, FL("ignore RXFILTER-START and return 0")); + ret = 0; + } else if (strncmp(command, "RXFILTER-STOP", 13) == 0) { + hddLog(LOG1, FL("ignore RXFILTER-STOP and return 0")); + ret = 0; + } else if (strncmp(command, "BTCOEXSCAN-START", 16) == 0) { + hddLog(LOG1, FL("ignore BTCOEXSCAN-START and return 0")); + ret = 0; + } else if (strncmp(command, "BTCOEXSCAN-STOP", 15) == 0) { + hddLog(LOG1, FL("ignore BTCOEXSCAN-STOP and return 0")); + ret = 0; } else { MTRACE(vos_trace(VOS_MODULE_ID_HDD, TRACE_CODE_HDD_UNSUPPORTED_IOCTL, -- cgit v1.2.3