software/drivers/sd8887/src/wlan/mlinux/moal_priv.c
/**
 *  @brief Set Host Sleep parameters
 *
 *  @param priv         A pointer to moal_private structure
 *  @param wrq          A pointer to iwreq structure
 *
 *  @return             0 --success, otherwise fail
 */
@brief Set Host Sleep parameters
@param priv         A pointer to moal_private structure
@param wrq          A pointer to iwreq structure

@return             0 --success, otherwise fail
@brief Set Host Sleep parameters @param priv A pointer to moal_private structure @param wrq A pointer to iwreq structure @return 0 -- success otherwise fail
static int
woal_hs_setpara(moal_private *priv, struct iwreq *wrq)
{
	int ret = 0;
	int data_length = wrq->u.data.length;
	ENTER();
	if (data_length >= 1 && data_length <= 3) {
		ret = woal_hs_cfg(priv, wrq, MFALSE);
		goto done;
	} else {
		PRINTM(MERROR, "Invalid arguments\n");
		ret = -EINVAL;
		goto done;
	}
done:
	LEAVE();
	return ret;
}
static int woal_hs_setpara ( moal_private * priv , struct iwreq * wrq ) { int ret = 0 ; int data_length = wrq -> u . data . length ; ENTER ( ) ; if ( data_length >= 1 && data_length <= 3 ) { ret = woal_hs_cfg ( priv , wrq , MFALSE ) ; goto done ; } else { PRINTM ( MERROR , " \n " ) ; ret = - EINVAL ; goto done ; } done : LEAVE ( ) ; return ret ; }
@brief Set Host Sleep parameters
  @param priv         A pointer to moal_private structure
  @param wrq          A pointer to iwreq structure
@brief Set Host Sleep parameters @param priv A pointer to moal_private structure @param wrq A pointer to iwreq structure