|
@@ -47,52 +47,6 @@
|
|
|
|
|
|
static struct hdd_context_s *p_hdd_ctx;
|
|
|
|
|
|
-/**
|
|
|
- * hdd_oem_data_req_callback() - OEM Data request callback handler
|
|
|
- * @hHal: MAC handle
|
|
|
- * @pContext: User context. For this callback the net device was registered
|
|
|
- * @oemDataReqID: The ID of the request
|
|
|
- * @oemDataReqStatus: Status of the request
|
|
|
- *
|
|
|
- * This function reports the results of the request to user space
|
|
|
- *
|
|
|
- * Return: CDF_STATUS enumeration
|
|
|
- */
|
|
|
-static CDF_STATUS hdd_oem_data_req_callback(tHalHandle hHal,
|
|
|
- void *pContext,
|
|
|
- uint32_t oemDataReqID,
|
|
|
- eOemDataReqStatus oemDataReqStatus)
|
|
|
-{
|
|
|
- CDF_STATUS status = CDF_STATUS_SUCCESS;
|
|
|
- struct net_device *dev = (struct net_device *)pContext;
|
|
|
- union iwreq_data wrqu;
|
|
|
- char buffer[IW_CUSTOM_MAX + 1];
|
|
|
-
|
|
|
- memset(&wrqu, '\0', sizeof(wrqu));
|
|
|
- memset(buffer, '\0', sizeof(buffer));
|
|
|
-
|
|
|
- if (oemDataReqStatus == eOEM_DATA_REQ_FAILURE) {
|
|
|
- snprintf(buffer, IW_CUSTOM_MAX, "QCOM: OEM-DATA-REQ-FAILED");
|
|
|
- hddLog(LOGW, "%s: oem data req %d failed", __func__,
|
|
|
- oemDataReqID);
|
|
|
- } else if (oemDataReqStatus == eOEM_DATA_REQ_INVALID_MODE) {
|
|
|
- snprintf(buffer, IW_CUSTOM_MAX,
|
|
|
- "QCOM: OEM-DATA-REQ-INVALID-MODE");
|
|
|
- hddLog(LOGW,
|
|
|
- "%s: oem data req %d failed because the driver is in invalid mode (IBSS|AP)",
|
|
|
- __func__, oemDataReqID);
|
|
|
- } else {
|
|
|
- snprintf(buffer, IW_CUSTOM_MAX, "QCOM: OEM-DATA-REQ-SUCCESS");
|
|
|
- }
|
|
|
-
|
|
|
- wrqu.data.pointer = buffer;
|
|
|
- wrqu.data.length = strlen(buffer);
|
|
|
-
|
|
|
- wireless_send_event(dev, IWEVCUSTOM, &wrqu, buffer);
|
|
|
-
|
|
|
- return status;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* iw_get_oem_data_cap() - Get OEM Data Capabilities
|
|
|
* @dev: net device upon which the request was received
|
|
@@ -428,8 +382,7 @@ static CDF_STATUS oem_process_data_req_msg(int oemDataLen, char *oemData)
|
|
|
status = sme_oem_data_req(p_hdd_ctx->hHal,
|
|
|
pAdapter->sessionId,
|
|
|
&oemDataReqConfig,
|
|
|
- &oemDataReqID,
|
|
|
- &hdd_oem_data_req_callback, pAdapter->dev);
|
|
|
+ &oemDataReqID);
|
|
|
return status;
|
|
|
}
|
|
|
|