software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief This function send soft_reset command to firmware
 *
 *  @param handle   A pointer to moal_handle structure
 *  @return         MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING on success,
 *                      otherwise failure code
 */
@brief This function send soft_reset command to firmware
@param handle   A pointer to moal_handle structure
@return         MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING on success,
otherwise failure code
@brief This function send soft_reset command to firmware @param handle A pointer to moal_handle structure @return MLAN_STATUS_SUCCESS / MLAN_STATUS_PENDING on success otherwise failure code
mlan_status
woal_request_soft_reset(moal_handle *handle)
{
	mlan_status ret = MLAN_STATUS_SUCCESS;
	mlan_ioctl_req *req = NULL;
	mlan_ds_misc_cfg *misc = NULL;
	ENTER();
	req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_misc_cfg));
	if (req) {
		misc = (mlan_ds_misc_cfg *)req->pbuf;
		misc->sub_command = MLAN_OID_MISC_SOFT_RESET;
		req->req_id = MLAN_IOCTL_MISC_CFG;
		req->action = MLAN_ACT_SET;
		ret = woal_request_ioctl(woal_get_priv
					 (handle, MLAN_BSS_ROLE_ANY), req,
					 MOAL_IOCTL_WAIT);
	}
	handle->surprise_removed = MTRUE;
	woal_sched_timeout(5);
	if (ret != MLAN_STATUS_PENDING)
		kfree(req);
	LEAVE();
	return ret;
}
mlan_status woal_request_soft_reset ( moal_handle * handle ) { mlan_status ret = MLAN_STATUS_SUCCESS ; mlan_ioctl_req * req = NULL ; mlan_ds_misc_cfg * misc = NULL ; ENTER ( ) ; req = woal_alloc_mlan_ioctl_req ( sizeof ( mlan_ds_misc_cfg ) ) ; if ( req ) { misc = ( mlan_ds_misc_cfg * ) req -> pbuf ; misc -> sub_command = MLAN_OID_MISC_SOFT_RESET ; req -> req_id = MLAN_IOCTL_MISC_CFG ; req -> action = MLAN_ACT_SET ; ret = woal_request_ioctl ( woal_get_priv ( handle , MLAN_BSS_ROLE_ANY ) , req , MOAL_IOCTL_WAIT ) ; } handle -> surprise_removed = MTRUE ; woal_sched_timeout ( 5 ) ; if ( ret != MLAN_STATUS_PENDING ) kfree ( req ) ; LEAVE ( ) ; return ret ; }
@brief This function send soft_reset command to firmware
  @param handle   A pointer to moal_handle structure
  @return         MLAN_STATUS_SUCCESS/MLAN_STATUS_PENDING on success,
                      otherwise failure code
@brief This function send soft_reset command to firmware @param handle A pointer to moal_handle structure @return MLAN_STATUS_SUCCESS / MLAN_STATUS_PENDING on success otherwise failure code