software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 * @brief Get priv current index -- this is used to enter correct rdh_state during radar handling
 *
 * @param pmpriv           Pointer to mlan_private
 * @param pstate_rdh       Pointer to radar detected state handler
 *
 * @return                 MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief Get priv current index -- this is used to enter correct rdh_state during radar handling
@param pmpriv           Pointer to mlan_private
@param pstate_rdh       Pointer to radar detected state handler


@brief Get priv current index -- this is used to enter correct rdh_state during radar handling @param pmpriv Pointer to mlan_private @param pstate_rdh Pointer to radar detected state handler
mlan_status
wlan_11h_get_priv_curr_idx(mlan_private *pmpriv,
			   wlan_radar_det_hndlg_state_t *pstate_rdh)
{
	t_bool found = MFALSE;
	ENTER();
	PRINTM(MINFO, "%s:pmpriv =%p\n", __func__, pmpriv);
	while ((++pstate_rdh->priv_curr_idx) < pstate_rdh->priv_list_count) {
		if (pmpriv == pstate_rdh->priv_list[pstate_rdh->priv_curr_idx]) {
			PRINTM(MINFO, "found matching priv: priv_idx=%d\n",
			       pstate_rdh->priv_curr_idx);
			found = MTRUE;
			break;
		}
	}
	return (found == MTRUE) ? MLAN_STATUS_SUCCESS : MLAN_STATUS_FAILURE;
}
mlan_status wlan_11h_get_priv_curr_idx ( mlan_private * pmpriv , wlan_radar_det_hndlg_state_t * pstate_rdh ) { t_bool found = MFALSE ; ENTER ( ) ; PRINTM ( MINFO , " \n " , __func__ , pmpriv ) ; while ( ( ++ pstate_rdh -> priv_curr_idx ) < pstate_rdh -> priv_list_count ) { if ( pmpriv == pstate_rdh -> priv_list [ pstate_rdh -> priv_curr_idx ] ) { PRINTM ( MINFO , " \n " , pstate_rdh -> priv_curr_idx ) ; found = MTRUE ; break ; } } return ( found == MTRUE ) ? MLAN_STATUS_SUCCESS : MLAN_STATUS_FAILURE ; }
@brief Get priv current index -- this is used to enter correct rdh_state during radar handling
 @param pmpriv           Pointer to mlan_private
 @param pstate_rdh       Pointer to radar detected state handler
@brief Get priv current index -- this is used to enter correct rdh_state during radar handling @param pmpriv Pointer to mlan_private @param pstate_rdh Pointer to radar detected state handler