• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ ASSERT_BREAK函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中ASSERT_BREAK函数的典型用法代码示例。如果您正苦于以下问题:C++ ASSERT_BREAK函数的具体用法?C++ ASSERT_BREAK怎么用?C++ ASSERT_BREAK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ASSERT_BREAK函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wfdFuncAppendAttriAssocBssid

UINT_32
wfdFuncAppendAttriAssocBssid(IN P_ADAPTER_T prAdapter,
			     IN BOOLEAN fgIsAssocFrame,
			     IN PUINT_16 pu2Offset,
			     IN PUINT_8 pucBuf, IN UINT_16 u2BufSize)
{
	UINT_32 u4AttriLen = 0;
	PUINT_8 pucBuffer = NULL;
	P_WFD_ASSOCIATED_BSSID_IE_T prWfdAssocBssid =
	    (P_WFD_ASSOCIATED_BSSID_IE_T) NULL;
	P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T) NULL;
	P_BSS_INFO_T prAisBssInfo = (P_BSS_INFO_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (pucBuf != NULL) &&
			     (pu2Offset != NULL));

		prWfdCfgSettings =
		    &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

		ASSERT_BREAK((prWfdCfgSettings != NULL));

		if (prWfdCfgSettings->ucWfdEnable == 0) {
			break;
		}

/* AIS network. */
		prAisBssInfo =
		    &(prAdapter->rWifiVar.arBssInfo[NETWORK_TYPE_AIS_INDEX]);

		if ((!IS_NET_ACTIVE(prAdapter, NETWORK_TYPE_AIS_INDEX)) ||
		    (prAisBssInfo->eConnectionState !=
		     PARAM_MEDIA_STATE_CONNECTED)) {
			break;
		}

		pucBuffer =
		    (PUINT_8) ((UINT_32) pucBuf + (UINT_32) (*pu2Offset));

		ASSERT_BREAK(pucBuffer != NULL);

		prWfdAssocBssid = (P_WFD_ASSOCIATED_BSSID_IE_T) pucBuffer;

		prWfdAssocBssid->ucElemID = WFD_ATTRI_ID_ASSOC_BSSID;

		WLAN_SET_FIELD_BE16(&prWfdAssocBssid->u2Length,
				    WFD_ATTRI_MAX_LEN_ASSOC_BSSID);

		COPY_MAC_ADDR(prWfdAssocBssid->aucAssocBssid,
			      prAisBssInfo->aucBSSID);

		u4AttriLen = WFD_ATTRI_MAX_LEN_ASSOC_BSSID + WFD_ATTRI_HDR_LEN;
	} while (FALSE);

	(*pu2Offset) += (UINT_16) u4AttriLen;

	return u4AttriLen;
}
开发者ID:Galland,项目名称:mt6620,代码行数:58,代码来源:p2p_ie.c


示例2: wfdFuncAppendAttriDevInfo

UINT_32
wfdFuncAppendAttriDevInfo(IN P_ADAPTER_T prAdapter,
			  IN BOOLEAN fgIsAssocFrame,
			  IN PUINT_16 pu2Offset,
			  IN PUINT_8 pucBuf, IN UINT_16 u2BufSize)
{
	UINT_32 u4AttriLen = 0;
	PUINT_8 pucBuffer = NULL;
	P_WFD_DEVICE_INFORMATION_IE_T prWfdDevInfo =
	    (P_WFD_DEVICE_INFORMATION_IE_T) NULL;
	P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (pucBuf != NULL) &&
			     (pu2Offset != NULL));

		prWfdCfgSettings =
		    &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

		ASSERT_BREAK((prWfdCfgSettings != NULL));

		if ((prWfdCfgSettings->ucWfdEnable == 0) ||
		    ((prWfdCfgSettings->u4WfdFlag &
		      WFD_FLAGS_DEV_INFO_VALID) == 0)) {
			break;
		}

		pucBuffer =
		    (PUINT_8) ((UINT_32) pucBuf + (UINT_32) (*pu2Offset));

		ASSERT_BREAK(pucBuffer != NULL);

		prWfdDevInfo = (P_WFD_DEVICE_INFORMATION_IE_T) pucBuffer;

		prWfdDevInfo->ucElemID = WFD_ATTRI_ID_DEV_INFO;

		WLAN_SET_FIELD_BE16(&prWfdDevInfo->u2WfdDevInfo,
				    prWfdCfgSettings->u2WfdDevInfo);

		WLAN_SET_FIELD_BE16(&prWfdDevInfo->u2SessionMgmtCtrlPort,
				    prWfdCfgSettings->u2WfdControlPort);

		WLAN_SET_FIELD_BE16(&prWfdDevInfo->u2WfdDevMaxSpeed,
				    prWfdCfgSettings->u2WfdMaximumTp);

		WLAN_SET_FIELD_BE16(&prWfdDevInfo->u2Length,
				    WFD_ATTRI_MAX_LEN_DEV_INFO);

		u4AttriLen = WFD_ATTRI_MAX_LEN_DEV_INFO + WFD_ATTRI_HDR_LEN;
	} while (FALSE);

	(*pu2Offset) += (UINT_16) u4AttriLen;

	return u4AttriLen;
}
开发者ID:Galland,项目名称:mt6620,代码行数:55,代码来源:p2p_ie.c


示例3: wfdFuncAppendAttriCoupledSinkInfo

UINT_32
wfdFuncAppendAttriCoupledSinkInfo(IN P_ADAPTER_T prAdapter,
				  IN BOOLEAN fgIsAssocFrame,
				  IN PUINT_16 pu2Offset,
				  IN PUINT_8 pucBuf, IN UINT_16 u2BufSize)
{
	UINT_32 u4AttriLen = 0;
	PUINT_8 pucBuffer = NULL;
	P_WFD_COUPLE_SINK_INFORMATION_IE_T prWfdCoupleSinkInfo =
	    (P_WFD_COUPLE_SINK_INFORMATION_IE_T) NULL;
	P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (pucBuf != NULL) &&
			     (pu2Offset != NULL));

		prWfdCfgSettings =
		    &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

		ASSERT_BREAK((prWfdCfgSettings != NULL));

		if ((prWfdCfgSettings->ucWfdEnable == 0) ||
		    ((prWfdCfgSettings->u4WfdFlag &
		      WFD_FLAGS_SINK_INFO_VALID) == 0)) {
			break;
		}

		pucBuffer =
		    (PUINT_8) ((UINT_32) pucBuf + (UINT_32) (*pu2Offset));

		ASSERT_BREAK(pucBuffer != NULL);

		prWfdCoupleSinkInfo =
		    (P_WFD_COUPLE_SINK_INFORMATION_IE_T) pucBuffer;

		prWfdCoupleSinkInfo->ucElemID = WFD_ATTRI_ID_COUPLED_SINK_INFO;

		WLAN_SET_FIELD_BE16(&prWfdCoupleSinkInfo->u2Length,
				    WFD_ATTRI_MAX_LEN_COUPLED_SINK_INFO);

		COPY_MAC_ADDR(prWfdCoupleSinkInfo->aucCoupleSinkMac,
			      prWfdCfgSettings->aucWfdCoupleSinkAddress);

		prWfdCoupleSinkInfo->ucCoupleSinkStatusBp =
		    prWfdCfgSettings->ucWfdCoupleSinkStatus;

		u4AttriLen = WFD_ATTRI_MAX_LEN_COUPLED_SINK_INFO +
		    WFD_ATTRI_HDR_LEN;
	} while (FALSE);

	(*pu2Offset) += (UINT_16) u4AttriLen;

	return u4AttriLen;
}
开发者ID:Galland,项目名称:mt6620,代码行数:54,代码来源:p2p_ie.c


示例4: wfdFuncAppendAttriSessionInfo

UINT_32
wfdFuncAppendAttriSessionInfo(IN P_ADAPTER_T prAdapter,
			      IN BOOLEAN fgIsAssocFrame,
			      IN PUINT_16 pu2Offset,
			      IN PUINT_8 pucBuf, IN UINT_16 u2BufSize)
{
	UINT_32 u4AttriLen = 0;
	PUINT_8 pucBuffer = NULL;
	P_WFD_SESSION_INFORMATION_IE_T prWfdSessionInfo =
	    (P_WFD_SESSION_INFORMATION_IE_T) NULL;
	P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (pucBuf != NULL) &&
			     (pu2Offset != NULL));

		prWfdCfgSettings =
		    &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

		ASSERT_BREAK((prWfdCfgSettings != NULL));

		if ((prWfdCfgSettings->ucWfdEnable == 0) ||
		    (prWfdCfgSettings->u2WfdSessionInformationIELen == 0)) {
			break;
		}

		pucBuffer =
		    (PUINT_8) ((UINT_32) pucBuf + (UINT_32) (*pu2Offset));

		ASSERT_BREAK(pucBuffer != NULL);

		prWfdSessionInfo = (P_WFD_SESSION_INFORMATION_IE_T) pucBuffer;

		prWfdSessionInfo->ucElemID = WFD_ATTRI_ID_SESSION_INFO;

/* TODO: Check endian issue? */
		kalMemCopy(prWfdSessionInfo->pucWfdDevInfoDesc,
			   prWfdCfgSettings->aucWfdSessionInformationIE,
			   prWfdCfgSettings->u2WfdSessionInformationIELen);

		WLAN_SET_FIELD_16(&prWfdSessionInfo->u2Length,
				  prWfdCfgSettings->u2WfdSessionInformationIELen);

		u4AttriLen = prWfdCfgSettings->u2WfdSessionInformationIELen +
		    WFD_ATTRI_HDR_LEN;
	} while (FALSE);

	(*pu2Offset) += (UINT_16) u4AttriLen;

	return u4AttriLen;
}
开发者ID:Galland,项目名称:mt6620,代码行数:51,代码来源:p2p_ie.c


示例5: wfdFuncAppendAttriExtCapability

UINT_32
wfdFuncAppendAttriExtCapability(IN P_ADAPTER_T prAdapter,
				IN BOOLEAN fgIsAssocFrame,
				IN PUINT_16 pu2Offset,
				IN PUINT_8 pucBuf, IN UINT_16 u2BufSize)
{
	UINT_32 u4AttriLen = 0;
	PUINT_8 pucBuffer = NULL;
	P_WFD_EXTENDED_CAPABILITY_IE_T prWfdExtCapability =
	    (P_WFD_EXTENDED_CAPABILITY_IE_T) NULL;
	P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (pucBuf != NULL) &&
			     (pu2Offset != NULL));

		prWfdCfgSettings =
		    &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

		ASSERT_BREAK((prWfdCfgSettings != NULL));

		if ((prWfdCfgSettings->ucWfdEnable == 0) ||
		    ((prWfdCfgSettings->u4WfdFlag &
		      WFD_FLAGS_EXT_CAPABILITY_VALID) == 0)) {
			break;
		}

		pucBuffer =
		    (PUINT_8) ((UINT_32) pucBuf + (UINT_32) (*pu2Offset));

		ASSERT_BREAK(pucBuffer != NULL);

		prWfdExtCapability = (P_WFD_EXTENDED_CAPABILITY_IE_T) pucBuffer;

		prWfdExtCapability->ucElemID = WFD_ATTRI_ID_EXT_CAPABILITY;

		WLAN_SET_FIELD_BE16(&prWfdExtCapability->u2Length,
				    WFD_ATTRI_MAX_LEN_EXT_CAPABILITY);

		WLAN_SET_FIELD_BE16(&prWfdExtCapability->u2WfdExtCapabilityBp,
				    prWfdCfgSettings->u2WfdExtendCap);

		u4AttriLen = WFD_ATTRI_MAX_LEN_EXT_CAPABILITY +
		    WFD_ATTRI_HDR_LEN;
	} while (FALSE);

	(*pu2Offset) += (UINT_16) u4AttriLen;

	return u4AttriLen;
}
开发者ID:Galland,项目名称:mt6620,代码行数:50,代码来源:p2p_ie.c


示例6: p2pDevStateAbort_CHNL_ON_HAND

VOID
p2pDevStateAbort_CHNL_ON_HAND(IN P_ADAPTER_T prAdapter,
			      IN P_BSS_INFO_T prP2pBssInfo,
			      IN P_P2P_DEV_FSM_INFO_T prP2pDevFsmInfo,
			      IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo)
{
	do {
		ASSERT_BREAK((prAdapter != NULL) || (prChnlReqInfo != NULL));

		cnmTimerStopTimer(prAdapter, &(prP2pDevFsmInfo->rP2pFsmTimeoutTimer));

		prP2pBssInfo->ucPrimaryChannel = prChnlReqInfo->ucOriChnlNum;
		prP2pBssInfo->eBand = prChnlReqInfo->eOriBand;
		prP2pBssInfo->eBssSCO = prChnlReqInfo->eOriChnlSco;

		kalP2PIndicateChannelExpired(prAdapter->prGlueInfo,
					     prChnlReqInfo->u8Cookie,
					     prChnlReqInfo->ucReqChnlNum,
					     prChnlReqInfo->eBand, prChnlReqInfo->eChnlSco);

		p2pFuncReleaseCh(prAdapter, prP2pDevFsmInfo->ucBssIndex, prChnlReqInfo);
	} while (FALSE);

	return;
}				/* p2pDevStateAbort_CHNL_ON_HAND */
开发者ID:Swapnil133609,项目名称:Zeus_exp,代码行数:25,代码来源:p2p_dev_state.c


示例7: p2pDevStateInit_CHNL_ON_HAND

VOID
p2pDevStateInit_CHNL_ON_HAND(IN P_ADAPTER_T prAdapter,
			     IN P_BSS_INFO_T prP2pBssInfo,
			     IN P_P2P_DEV_FSM_INFO_T prP2pDevFsmInfo,
			     IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo)
{
	do {
		ASSERT_BREAK((prAdapter != NULL) &&
			     (prP2pDevFsmInfo != NULL) && (prChnlReqInfo != NULL));

		ASSERT(prChnlReqInfo->eChnlReqType == CH_REQ_TYPE_P2P_LISTEN);

		prChnlReqInfo->ucOriChnlNum = prP2pBssInfo->ucPrimaryChannel;
		prChnlReqInfo->eOriBand = prP2pBssInfo->eBand;
		prChnlReqInfo->eOriChnlSco = prP2pBssInfo->eBssSCO;

		prP2pBssInfo->ucPrimaryChannel = prChnlReqInfo->ucReqChnlNum;
		prP2pBssInfo->eBand = prChnlReqInfo->eBand;
		prP2pBssInfo->eBssSCO = prChnlReqInfo->eChnlSco;

		cnmTimerStartTimer(prAdapter, &(prP2pDevFsmInfo->rP2pFsmTimeoutTimer),
				   prChnlReqInfo->u4MaxInterval);

		kalP2PIndicateChannelReady(prAdapter->prGlueInfo,
					   prChnlReqInfo->u8Cookie,
					   prChnlReqInfo->ucReqChnlNum,
					   prChnlReqInfo->eBand,
					   prChnlReqInfo->eChnlSco, prChnlReqInfo->u4MaxInterval);
	} while (FALSE);

	return;
}				/* p2pDevStateInit_CHNL_ON_HAND */
开发者ID:Swapnil133609,项目名称:Zeus_exp,代码行数:32,代码来源:p2p_dev_state.c


示例8: p2pStateInit_CHNL_ON_HAND

VOID p2pStateInit_CHNL_ON_HAND(IN P_ADAPTER_T prAdapter, IN P_BSS_INFO_T prP2pBssInfo, IN P_P2P_FSM_INFO_T prP2pFsmInfo)
{
	P_P2P_CHNL_REQ_INFO_T prChnlReqInfo = (P_P2P_CHNL_REQ_INFO_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (prP2pFsmInfo != NULL));

		prChnlReqInfo = &(prP2pFsmInfo->rChnlReqInfo);

		/* Store the original channel info. */
		prChnlReqInfo->ucOriChnlNum = prP2pBssInfo->ucPrimaryChannel;
		prChnlReqInfo->eOriBand = prP2pBssInfo->eBand;
		prChnlReqInfo->eOriChnlSco = prP2pBssInfo->eBssSCO;

		/* RX Probe Request would check primary channel. */
		prP2pBssInfo->ucPrimaryChannel = prChnlReqInfo->ucReqChnlNum;
		prP2pBssInfo->eBand = prChnlReqInfo->eBand;
		prP2pBssInfo->eBssSCO = prChnlReqInfo->eChnlSco;

		DBGLOG(P2P, TRACE, ("start a channel on hand timer.\n"));
		cnmTimerStartTimer(prAdapter, &(prAdapter->rP2pFsmTimeoutTimer), prChnlReqInfo->u4MaxInterval);

		kalP2PIndicateChannelReady(prAdapter->prGlueInfo,
					   prChnlReqInfo->u8Cookie,
					   prChnlReqInfo->ucReqChnlNum,
					   prChnlReqInfo->eBand, prChnlReqInfo->eChnlSco, prChnlReqInfo->u4MaxInterval);

	} while (FALSE);

	return;
}				/* p2pStateInit_CHNL_ON_HAND */
开发者ID:Elnter,项目名称:j608_kernel,代码行数:31,代码来源:p2p_state.c


示例9: p2pDevStateInit_IDLE

BOOLEAN
p2pDevStateInit_IDLE (
    IN P_ADAPTER_T prAdapter,
    IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo,
    OUT P_ENUM_P2P_DEV_STATE_T peNextState
    )
{
    BOOLEAN fgIsTransition = FALSE;

    do {
        ASSERT_BREAK((prAdapter != NULL) && 
                    (prChnlReqInfo) &&
                    (peNextState != NULL));


        if (!LINK_IS_EMPTY(&(prChnlReqInfo->rP2pChnlReqLink))) {
            fgIsTransition = TRUE;
            *peNextState = P2P_DEV_STATE_REQING_CHANNEL;
            break;
        }

        /* Stay in IDLE state. */
        
    } while (FALSE);
   
    return fgIsTransition;
} /* p2pDevStateInit_IDLE */
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:27,代码来源:p2p_dev_state.c


示例10: p2pCalculate_IEForAssocReq

UINT_32
p2pCalculate_IEForAssocReq(IN P_ADAPTER_T prAdapter,
			   IN ENUM_NETWORK_TYPE_INDEX_T eNetTypeIndex, IN P_STA_RECORD_T prStaRec)
{
	P_P2P_FSM_INFO_T prP2pFsmInfo = (P_P2P_FSM_INFO_T) NULL;
	P_P2P_CONNECTION_REQ_INFO_T prConnReqInfo = (P_P2P_CONNECTION_REQ_INFO_T) NULL;
	UINT_32 u4RetValue = 0;

	do {
		ASSERT_BREAK((eNetTypeIndex == NETWORK_TYPE_P2P_INDEX) && (prAdapter != NULL));

		prP2pFsmInfo = prAdapter->rWifiVar.prP2pFsmInfo;

		prConnReqInfo = &(prP2pFsmInfo->rConnReqInfo);

		u4RetValue = prConnReqInfo->u4BufLength;

		/* ADD HT Capability */
		u4RetValue += (ELEM_HDR_LEN + ELEM_MAX_LEN_HT_CAP);

		/* ADD WMM Information Element */
		u4RetValue += (ELEM_HDR_LEN + ELEM_MAX_LEN_WMM_INFO);

	} while (FALSE);

	return u4RetValue;
}				/* p2pCalculate_IEForAssocReq */
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:27,代码来源:p2p_ie.c


示例11: p2pStateAbort_CHNL_ON_HAND

VOID
p2pStateAbort_CHNL_ON_HAND (
    IN P_ADAPTER_T prAdapter,
    IN P_P2P_FSM_INFO_T prP2pFsmInfo,
    IN P_BSS_INFO_T prP2pBssInfo,
    IN ENUM_P2P_STATE_T eNextState
    )
{
    P_P2P_CHNL_REQ_INFO_T prChnlReqInfo = (P_P2P_CHNL_REQ_INFO_T)NULL;


    do {
        ASSERT_BREAK((prAdapter != NULL) && (prP2pFsmInfo != NULL));

        prChnlReqInfo = &(prP2pFsmInfo->rChnlReqInfo);

        cnmTimerStopTimer(prAdapter, &(prP2pFsmInfo->rP2pFsmTimeoutTimer));

        /* Restore the original channel info. */
        prP2pBssInfo->ucPrimaryChannel = prChnlReqInfo->ucOriChnlNum;
        prP2pBssInfo->eBand = prChnlReqInfo->eOriBand;
        prP2pBssInfo->eBssSCO = prChnlReqInfo->eOriChnlSco;

        if (eNextState != P2P_STATE_CHNL_ON_HAND) {
            /* Indicate channel return. */
            kalP2PIndicateChannelExpired(prAdapter->prGlueInfo, &prP2pFsmInfo->rChnlReqInfo);

            // Return Channel.
            p2pFuncReleaseCh(prAdapter, &(prP2pFsmInfo->rChnlReqInfo));
        }

    } while (FALSE);
    return;
} /* p2pStateAbort_CHNL_ON_HAND */
开发者ID:Scorpio92,项目名称:mediatek,代码行数:34,代码来源:p2p_state.c


示例12: wfdFuncCalculateAttriLenSessionInfo

/*----------------------------------------------------------------------------*/
UINT_32
wfdFuncCalculateAttriLenSessionInfo (
    IN P_ADAPTER_T prAdapter,
    IN P_STA_RECORD_T prStaRec
    )
{
    UINT_16 u2AttriLen = 0;
    P_WFD_CFG_SETTINGS_T prWfdCfgSettings = (P_WFD_CFG_SETTINGS_T)NULL;

    do {
        ASSERT_BREAK((prAdapter != NULL) && (prStaRec != NULL));

        prWfdCfgSettings = &(prAdapter->rWifiVar.prP2pFsmInfo->rWfdConfigureSettings);

        if (prWfdCfgSettings->ucWfdEnable == 0) {
            break;
        }

        u2AttriLen = prWfdCfgSettings->u2WfdSessionInformationIELen + WFD_ATTRI_HDR_LEN;

    } while (FALSE);


    return (UINT_32)u2AttriLen;

} /* wfdFuncCalculateAttriLenSessionInfo */
开发者ID:vo-1,项目名称:sprout_cm11_mt6589_kernel,代码行数:27,代码来源:p2p_ie.c


示例13: p2pGenerate_IEForAssocReq

/*----------------------------------------------------------------------------*/
VOID p2pGenerate_IEForAssocReq(IN P_ADAPTER_T prAdapter, IN P_MSDU_INFO_T prMsduInfo)
{
	P_P2P_FSM_INFO_T prP2pFsmInfo = (P_P2P_FSM_INFO_T) NULL;
	P_P2P_CONNECTION_REQ_INFO_T prConnReqInfo = (P_P2P_CONNECTION_REQ_INFO_T) NULL;
	PUINT_8 pucIEBuf = (PUINT_8) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) && (prMsduInfo != NULL));

		prP2pFsmInfo = prAdapter->rWifiVar.prP2pFsmInfo;

		prConnReqInfo = &(prP2pFsmInfo->rConnReqInfo);

		pucIEBuf = (PUINT_8) ((ULONG) prMsduInfo->prPacket + (UINT_32) prMsduInfo->u2FrameLength);

		kalMemCopy(pucIEBuf, prConnReqInfo->aucIEBuf, prConnReqInfo->u4BufLength);

		prMsduInfo->u2FrameLength += prConnReqInfo->u4BufLength;

		rlmReqGenerateHtCapIE(prAdapter, prMsduInfo);
		mqmGenerateWmmInfoIE(prAdapter, prMsduInfo);

	} while (FALSE);

	return;

}				/* p2pGenerate_IEForAssocReq */
开发者ID:P-D-A,项目名称:android_kernel_lge_mt6753,代码行数:28,代码来源:p2p_ie.c


示例14: p2pStateAbort_IDLE

VOID
p2pStateAbort_IDLE (
    IN P_ADAPTER_T prAdapter,
    IN P_P2P_FSM_INFO_T prP2pFsmInfo,
    IN ENUM_P2P_STATE_T eNextState
    )
{

    P_P2P_CHNL_REQ_INFO_T prChnlReqInfo = (P_P2P_CHNL_REQ_INFO_T)NULL;

    do {
        ASSERT_BREAK((prAdapter != NULL) &&
                                    (prP2pFsmInfo != NULL));

        prChnlReqInfo = &prP2pFsmInfo->rChnlReqInfo;


        if (prChnlReqInfo->fgIsChannelRequested) {
            /* Release channel before timeout. */
            p2pFuncReleaseCh(prAdapter, prChnlReqInfo);
        }


        /* Stop timer for leaving this state. */
        cnmTimerStopTimer(prAdapter, &(prP2pFsmInfo->rP2pFsmTimeoutTimer));

    } while (FALSE);

    return;
} /* p2pStateAbort_IDLE */
开发者ID:Scorpio92,项目名称:mediatek,代码行数:30,代码来源:p2p_state.c


示例15: p2pDevStateAbort_OFF_CHNL_TX

VOID
p2pDevStateAbort_OFF_CHNL_TX(IN P_ADAPTER_T prAdapter,
			     IN P_P2P_MGMT_TX_REQ_INFO_T prP2pMgmtTxInfo,
			     IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo,
			     IN ENUM_P2P_DEV_STATE_T eNextState)
{
	P_P2P_OFF_CHNL_TX_REQ_INFO_T prP2pOffChnlTxPkt = (P_P2P_OFF_CHNL_TX_REQ_INFO_T) NULL;

	do {
		ASSERT_BREAK((prAdapter != NULL) &&
			     (prP2pMgmtTxInfo != NULL) && (prChnlReqInfo != NULL));

		if (eNextState != P2P_DEV_STATE_OFF_CHNL_TX) {
			while (!LINK_IS_EMPTY(&(prP2pMgmtTxInfo->rP2pTxReqLink))) {
				LINK_REMOVE_HEAD(&(prP2pMgmtTxInfo->rP2pTxReqLink),
						 prP2pOffChnlTxPkt, P_P2P_OFF_CHNL_TX_REQ_INFO_T);

				kalP2PIndicateMgmtTxStatus(prAdapter->prGlueInfo,
							   prP2pOffChnlTxPkt->prMgmtTxMsdu, FALSE);
			}

			p2pFuncReleaseCh(prAdapter, P2P_DEV_BSS_INDEX, prChnlReqInfo);
		}
	} while (FALSE);

	return;
}				/* p2pDevSateAbort_OFF_CHNL_TX */
开发者ID:Swapnil133609,项目名称:Zeus_exp,代码行数:27,代码来源:p2p_dev_state.c


示例16: p2pStateInit_AP_CHANNEL_DETECT

VOID
p2pStateInit_AP_CHANNEL_DETECT (
    IN P_ADAPTER_T prAdapter,
    IN P_P2P_FSM_INFO_T prP2pFsmInfo
    )
{
    P_P2P_SCAN_REQ_INFO_T prScanReqInfo = (P_P2P_SCAN_REQ_INFO_T)NULL;

    do {
        ASSERT_BREAK((prAdapter != NULL) && (prP2pFsmInfo != NULL));

        prScanReqInfo = &(prP2pFsmInfo->rScanReqInfo);

        prScanReqInfo->eScanType = SCAN_TYPE_PASSIVE_SCAN;
        prScanReqInfo->eChannelSet = SCAN_CHANNEL_2G4;
        prScanReqInfo->u2PassiveDewellTime = 50;    // 50ms for passive channel load detection
        prScanReqInfo->fgIsAbort = TRUE;
        prScanReqInfo->fgIsScanRequest = TRUE;
        prScanReqInfo->ucNumChannelList = 0;
        prScanReqInfo->u4BufLength = 0;
        prScanReqInfo->rSsidStruct.ucSsidLen = 0;

        p2pFuncRequestScan(prAdapter, prScanReqInfo);

    } while (FALSE);

    return;
} /* p2pStateInit_AP_CHANNEL_DETECT */
开发者ID:Scorpio92,项目名称:mediatek,代码行数:28,代码来源:p2p_state.c


示例17: p2pDevStateAbort_REQING_CHANNEL

VOID
p2pDevStateAbort_REQING_CHANNEL(IN P_ADAPTER_T prAdapter,
				IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo,
				IN ENUM_P2P_DEV_STATE_T eNextState)
{

	do {
		ASSERT_BREAK((prAdapter != NULL) &&
			     (prChnlReqInfo != NULL) && (eNextState < P2P_DEV_STATE_NUM));

		switch (eNextState) {
		case P2P_DEV_STATE_IDLE:
			/* Channel abort case. */
			p2pFuncReleaseCh(prAdapter, P2P_DEV_BSS_INDEX, prChnlReqInfo);
			break;
		case P2P_DEV_STATE_CHNL_ON_HAND:
			/* Channel on hand case. */
			break;
		default:
			/* Un-expected state transition. */
			DBGLOG(P2P, ERROR, ("Unexpected State Transition(%d)\n", eNextState));
			ASSERT(FALSE);
			break;
		}
	} while (FALSE);

	return;
}				/* p2pDevStateAbort_REQING_CHANNEL */
开发者ID:Swapnil133609,项目名称:Zeus_exp,代码行数:28,代码来源:p2p_dev_state.c


示例18: while

void DBMainLoop::Run()
{    
    MsgSet msgSet;
    DBThreadPool& dbThreadPool = DBThreadPool::Instance();

    while (continueFlag)
    {
        Time::UpdateTime();
        
        msgSet.Clear();
        
        if (ReceiveIPCMsg(msgSet))
        {
            //这里用sessionID根据线程数量进行取模分配到具体的DB线程
            int modID = msgSet.head().session_id() % threadNum;

            ASSERT_BREAK(msgSet.msg().size() == 1);

            dbThreadPool.InsertDBMsg(modID+1, msgSet);
        }

        Time::MsSleep(10);
    }

    dbThreadPool.Stop();
}
开发者ID:hdzz,项目名称:ChaosServer,代码行数:26,代码来源:DBMainLoop.cpp


示例19: p2pDevStateInit_REQING_CHANNEL

BOOLEAN
p2pDevStateInit_REQING_CHANNEL (
    IN P_ADAPTER_T prAdapter,
    IN UINT_8 ucBssIdx,
    IN P_P2P_CHNL_REQ_INFO_T prChnlReqInfo,
    OUT P_ENUM_P2P_DEV_STATE_T peNextState
    )
{
    BOOLEAN fgIsTransition = FALSE;
    P_MSG_P2P_CHNL_REQUEST_T prP2pMsgChnlReq = (P_MSG_P2P_CHNL_REQUEST_T)NULL;

    do {
        ASSERT_BREAK((prAdapter != NULL) && 
                    (prChnlReqInfo != NULL) &&
                    (peNextState != NULL));

        if (LINK_IS_EMPTY(&(prChnlReqInfo->rP2pChnlReqLink))) {
            /* NO Channel Request Pending. */
            DBGLOG(P2P, ERROR, ("NO Pending Channel Request, but enter Req Channel State\n"));
            fgIsTransition = TRUE;
            *peNextState = P2P_DEV_STATE_IDLE;
            break;
        }


        LINK_REMOVE_HEAD(&(prChnlReqInfo->rP2pChnlReqLink),
                        prP2pMsgChnlReq,
                        P_MSG_P2P_CHNL_REQUEST_T);

        ASSERT(prP2pMsgChnlReq);

        prChnlReqInfo->u4MaxInterval = prP2pMsgChnlReq->u4Duration;
        prChnlReqInfo->ucReqChnlNum = prP2pMsgChnlReq->rChannelInfo.ucChannelNum;
        prChnlReqInfo->eChnlSco = prP2pMsgChnlReq->eChnlSco;
        prChnlReqInfo->eBand = prP2pMsgChnlReq->rChannelInfo.eBand;
        prChnlReqInfo->u8Cookie = prP2pMsgChnlReq->u8Cookie;
        prChnlReqInfo->eChnlReqType = prP2pMsgChnlReq->eChnlReqType;
        prChnlReqInfo->eChannelWidth = CW_20_40MHZ;
        prChnlReqInfo->ucCenterFreqS1 = 0;
        prChnlReqInfo->ucCenterFreqS2 = 0;
        
        p2pFuncAcquireCh(prAdapter,
                    ucBssIdx,
                    prChnlReqInfo);
    } while (FALSE);

    if (prP2pMsgChnlReq) {
        cnmMemFree(prAdapter, prP2pMsgChnlReq);
    }

    return fgIsTransition;
} /* p2pDevStateInit_REQING_CHANNEL */
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:52,代码来源:p2p_dev_state.c


示例20: BREAK_IF

bool ETSocketClient::startClient() {
	bool bRet = false;

	do {
		// init pthread for send
		isRunning_ = true;
		BREAK_IF(bSendStart_);
		ASSERT_BREAK(pthread_create(&sendThread_, NULL, sendThreadCallFunc, this) == 0);
		bSendStart_ = true;
	} while (false);

	return bRet;
}
开发者ID:betallcoffee,项目名称:Cronous,代码行数:13,代码来源:ETSocketClient.cpp



注:本文中的ASSERT_BREAK函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ASSERT_DEBUG函数代码示例发布时间:2022-05-30
下一篇:
C++ ASSERT_ARGS函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap