qcacld-3.0: Remove wlansap management frame registrar
The following wlansap management frame registration functions are unused, so remove them: - wlansap_register_mgmt_frame() - wlansap_de_register_mgmt_frame() Change-Id: Ib8865fbda4e65e7bbd39576a49423f60426d489a CRs-Fixed: 2361909
This commit is contained in:

committed by
Nitesh Shrivastav

parent
e197744efb
commit
6d0b75be6e
@@ -1154,43 +1154,6 @@ QDF_STATUS wlansap_modify_acl(struct sap_context *sap_ctx,
|
||||
uint8_t *peer_sta_mac,
|
||||
eSapACLType list_type, eSapACLCmdType cmd);
|
||||
|
||||
/**
|
||||
* wlansap_register_mgmt_frame() - register management frame
|
||||
* @sap_ctx: Pointer to SAP context
|
||||
* @frame_type: frame type that needs to be registered with PE.
|
||||
* @match_data: pointer to data which should be matched after @frame_type
|
||||
* is matched.
|
||||
* @match_len: Length of the @match_data
|
||||
*
|
||||
* HDD use this API to register specified type of frame with CORE stack.
|
||||
* On receiving such kind of frame CORE stack should pass this frame to HDD
|
||||
*
|
||||
* Return: The QDF_STATUS code associated with performing the operation
|
||||
* QDF_STATUS_SUCCESS: Success and error code otherwise
|
||||
*/
|
||||
QDF_STATUS wlansap_register_mgmt_frame(struct sap_context *sap_ctx,
|
||||
uint16_t frame_type,
|
||||
uint8_t *match_data,
|
||||
uint16_t match_len);
|
||||
|
||||
/**
|
||||
* wlansap_de_register_mgmt_frame() - de register management frame
|
||||
* @sap_ctx: Pointer to SAP context
|
||||
* @frame_type: frame type that needs to be de-registered with PE.
|
||||
* @match_data: pointer to data which should be matched after @frame_type
|
||||
* is matched.
|
||||
* @match_len: Length of the @match_data
|
||||
*
|
||||
* HDD use this API to deregister a previously registered frame
|
||||
*
|
||||
* Return: The QDF_STATUS code associated with performing the operation
|
||||
* QDF_STATUS_SUCCESS: Success and error code otherwise
|
||||
*/
|
||||
QDF_STATUS wlansap_de_register_mgmt_frame(struct sap_context *sap_ctx,
|
||||
uint16_t frame_type,
|
||||
uint8_t *match_data,
|
||||
uint16_t match_len);
|
||||
|
||||
/**
|
||||
* wlansap_channel_change_request() - Send channel change request
|
||||
* @sapContext: Pointer to the SAP context
|
||||
|
@@ -1600,66 +1600,6 @@ QDF_STATUS wlan_sap_get_pre_cac_vdev_id(mac_handle_t handle, uint8_t *vdev_id)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
QDF_STATUS wlansap_register_mgmt_frame(struct sap_context *sap_ctx,
|
||||
uint16_t frameType,
|
||||
uint8_t *matchData,
|
||||
uint16_t matchLen)
|
||||
{
|
||||
struct mac_context *mac;
|
||||
QDF_STATUS status;
|
||||
|
||||
if (NULL == sap_ctx) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Invalid SAP pointer from pCtx",
|
||||
__func__);
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
mac = sap_get_mac_context();
|
||||
if (!mac) {
|
||||
QDF_TRACE_ERROR(QDF_MODULE_ID_SAP, "Invalid MAC context");
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
status = sme_register_mgmt_frame(MAC_HANDLE(mac), sap_ctx->sessionId,
|
||||
frameType, matchData, matchLen);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"Failed to Register MGMT frame");
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlansap_de_register_mgmt_frame(struct sap_context *sap_ctx,
|
||||
uint16_t frameType,
|
||||
uint8_t *matchData,
|
||||
uint16_t matchLen)
|
||||
{
|
||||
struct mac_context *mac;
|
||||
QDF_STATUS status;
|
||||
|
||||
if (NULL == sap_ctx) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Invalid SAP pointer from pCtx",
|
||||
__func__);
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
mac = sap_get_mac_context();
|
||||
if (!mac) {
|
||||
QDF_TRACE_ERROR(QDF_MODULE_ID_SAP, "Invalid MAC context");
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
status = sme_deregister_mgmt_frame(MAC_HANDLE(mac), sap_ctx->sessionId,
|
||||
frameType, matchData, matchLen);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"Failed to Deregister MGMT frame");
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlansap_channel_change_request(struct sap_context *sapContext,
|
||||
uint8_t target_channel)
|
||||
{
|
||||
|
Reference in New Issue
Block a user