summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@qca.qualcomm.com>2015-11-13 11:42:59 -0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-11-20 15:15:51 +0530
commite2be361cbfbb3d0401b7fd3abefd5155200ea3f9 (patch)
tree1bc6a60b82233c1458240d1523ec7ca108500414
parent4bfbefdab6e3ef5872f4ce1b56bc7d8107b85a90 (diff)
qcacld-2.0: Remove get_oem_data_req ioctl support
On qcacld-2.0 the OEM DATA application does not use the wext ioctl interface, but instead uses the netlink interface. Remove support for the get_oem_data_req ioctl so that it cannot be abused. Change-Id: Ib48cd0e79a066e1f23ddeb2115fdab530d3d28fc CRs-Fixed: 911404
-rw-r--r--CORE/HDD/inc/wlan_hdd_oemdata.h11
-rw-r--r--CORE/HDD/src/wlan_hdd_oemdata.c81
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c21
3 files changed, 1 insertions, 112 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_oemdata.h b/CORE/HDD/inc/wlan_hdd_oemdata.h
index 78d3c99287c8..1d4ba472473c 100644
--- a/CORE/HDD/inc/wlan_hdd_oemdata.h
+++ b/CORE/HDD/inc/wlan_hdd_oemdata.h
@@ -158,17 +158,6 @@ typedef PACKED_PRE struct PACKED_POST
tHddChannelInfo peer_chan_info;
} tPeerStatusInfo;
-int iw_get_oem_data_rsp(
- struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu,
- char *extra);
-
-struct iw_oem_data_rsp
-{
- tANI_U8 oemDataRsp[OEM_DATA_RSP_SIZE];
-};
-
#endif //__WLAN_HDD_OEM_DATA_H__
#endif //FEATURE_OEM_DATA_SUPPORT
diff --git a/CORE/HDD/src/wlan_hdd_oemdata.c b/CORE/HDD/src/wlan_hdd_oemdata.c
index eac50d3ca555..ad8146778e0c 100644
--- a/CORE/HDD/src/wlan_hdd_oemdata.c
+++ b/CORE/HDD/src/wlan_hdd_oemdata.c
@@ -93,87 +93,6 @@ static eHalStatus hdd_OemDataReqCallback(tHalHandle hHal,
return status;
}
-/**
- * __iw_get_oem_data_rsp() - get oem data response
- * @dev: pointer to net_device
- * @info: pointer to iw_request_info
- * @wrqu: pointer to iwreq_data
- * @extra: extra
- *
- * Return: 0 on success, error number otherwise
- */
-static int __iw_get_oem_data_rsp(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu,
- char *extra)
-{
- int rc = 0;
- eHalStatus status;
- struct iw_oem_data_rsp* pHddOemDataRsp;
- tOemDataRsp* pSmeOemDataRsp;
- hdd_adapter_t *pAdapter = (netdev_priv(dev));
-
- ENTER();
-
- if ((WLAN_HDD_GET_CTX(pAdapter))->isLogpInProgress)
- {
- VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_FATAL,
- "%s:LOGP in Progress. Ignore!!!",__func__);
- return -EBUSY;
- }
-
- do
- {
- //get the oem data response from sme
- status = sme_getOemDataRsp(WLAN_HDD_GET_HAL_CTX(pAdapter), &pSmeOemDataRsp);
- if (status != eHAL_STATUS_SUCCESS)
- {
- hddLog(LOGE, "%s: failed in sme_getOemDataRsp", __func__);
- rc = -EIO;
- break;
- }
- else
- {
- if (pSmeOemDataRsp != NULL)
- {
- pHddOemDataRsp = (struct iw_oem_data_rsp*)(extra);
- vos_mem_copy(pHddOemDataRsp->oemDataRsp, pSmeOemDataRsp->oemDataRsp, OEM_DATA_RSP_SIZE);
- }
- else
- {
- hddLog(LOGE, "%s: pSmeOemDataRsp = NULL", __func__);
- rc = -EIO;
- break;
- }
- }
- } while(0);
- EXIT();
- return rc;
-}
-
-/**
- * iw_get_oem_data_rsp() - SSR wrapper for __iw_get_oem_data_rsp
- * @dev: pointer to net_device
- * @info: pointer to iw_request_info
- * @wrqu: pointer to iwreq_data
- * @extra: extra
- *
- * Return: 0 on success, error number otherwise
- */
-int iw_get_oem_data_rsp(struct net_device *dev,
- struct iw_request_info *info,
- union iwreq_data *wrqu,
- char *extra)
-{
- int ret;
-
- vos_ssr_protect(__func__);
- ret = __iw_get_oem_data_rsp(dev, info, wrqu, extra);
- vos_ssr_unprotect(__func__);
-
- return ret;
-}
-
/**---------------------------------------------------------------------------
\brief iw_get_oem_data_cap()
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 71fab19e8dc5..184acec6663e 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -110,10 +110,6 @@
#include "wlan_hdd_ocb.h"
#include "wlan_hdd_tsf.h"
-#ifdef FEATURE_OEM_DATA_SUPPORT
-#define MAX_OEM_DATA_RSP_LEN 2047
-#endif
-
#define HDD_FINISH_ULA_TIME_OUT 800
#define HDD_SET_MCBC_FILTERS_TO_FW 1
#define HDD_DELETE_MCBC_FILTERS_FROM_FW 0
@@ -413,11 +409,8 @@ static const hdd_freq_chan_map_t freq_chan_map[] = { {2412, 1}, {2417, 2},
#define WLAN_PRIV_SET_NONE_GET_THREE_INT (SIOCIWFIRSTPRIV + 15)
#define WE_GET_TSF 1
-#ifdef FEATURE_OEM_DATA_SUPPORT
-/* Private ioctls for setting the measurement configuration */
/* (SIOCIWFIRSTPRIV + 17) is currently unused */
-#define WLAN_PRIV_GET_OEM_DATA_RSP (SIOCIWFIRSTPRIV + 19)
-#endif
+/* (SIOCIWFIRSTPRIV + 19) is currently unused */
#ifdef WLAN_FEATURE_VOWIFI_11R
#define WLAN_PRIV_SET_FTIES (SIOCIWFIRSTPRIV + 20)
@@ -11182,9 +11175,6 @@ static const iw_handler we_private[] = {
[WLAN_PRIV_ADD_TSPEC - SIOCIWFIRSTPRIV] = iw_add_tspec,
[WLAN_PRIV_DEL_TSPEC - SIOCIWFIRSTPRIV] = iw_del_tspec,
[WLAN_PRIV_GET_TSPEC - SIOCIWFIRSTPRIV] = iw_get_tspec,
-#ifdef FEATURE_OEM_DATA_SUPPORT
- [WLAN_PRIV_GET_OEM_DATA_RSP - SIOCIWFIRSTPRIV] = iw_get_oem_data_rsp, //oem data req Specifc
-#endif
#ifdef WLAN_FEATURE_VOWIFI_11R
[WLAN_PRIV_SET_FTIES - SIOCIWFIRSTPRIV] = iw_set_fties,
@@ -12199,15 +12189,6 @@ static const struct iw_priv_args we_private_args[] = {
IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
"getTspec" },
-#ifdef FEATURE_OEM_DATA_SUPPORT
- /* handlers for main ioctl - OEM DATA */
- {
- WLAN_PRIV_GET_OEM_DATA_RSP,
- 0,
- IW_PRIV_TYPE_BYTE | MAX_OEM_DATA_RSP_LEN,
- "get_oem_data_rsp" },
-#endif
-
/* handlers for main ioctl - host offload */
{
WLAN_PRIV_SET_HOST_OFFLOAD,