本文整理汇总了C++中MTWF_LOG函数的典型用法代码示例。如果您正苦于以下问题:C++ MTWF_LOG函数的具体用法?C++ MTWF_LOG怎么用?C++ MTWF_LOG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MTWF_LOG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ApCliAuthTimeout
/*
==========================================================================
Description:
function to be executed at timer thread when auth timer expires
==========================================================================
*/
static VOID ApCliAuthTimeout(
IN PVOID SystemSpecific1,
IN PVOID FunctionContext,
IN PVOID SystemSpecific2,
IN PVOID SystemSpecific3)
{
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)FunctionContext;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s():AuthTimeout\n", __FUNCTION__));
MlmeEnqueue(pAd, APCLI_AUTH_STATE_MACHINE, APCLI_MT2_AUTH_TIMEOUT, 0, NULL, 0);
RTMP_MLME_HANDLER(pAd);
return;
}
示例2: RxSensitivityTuning
static VOID RxSensitivityTuning(RTMP_ADAPTER *pAd)
{
UCHAR R66 = 0x26 + pAd->hw_cfg.lan_gain;
#ifdef CONFIG_ATE
if (ATE_ON(pAd))
{
ATE_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R66, R66);
}
else
#endif /* CONFIG_ATE */
{
bbp_set_agc(pAd, R66, RX_CHAIN_ALL);
}
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE,("turn off R17 tuning, restore to 0x%02x\n", R66));
}
示例3: PMF_PeerAction
VOID PMF_PeerAction(
IN PRTMP_ADAPTER pAd,
IN MLME_QUEUE_ELEM *Elem)
{
UCHAR Action = Elem->Msg[LENGTH_802_11+1];
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_WARN, ("[PMF]%s : PMF_PeerAction Action=%d\n", __FUNCTION__, Action));
switch (Action) {
case ACTION_SAQ_REQUEST:
PMF_PeerSAQueryReqAction(pAd, Elem);
break;
case ACTION_SAQ_RESPONSE:
PMF_PeerSAQueryRspAction(pAd, Elem);
break;
}
}
示例4: bbp_set_bw
INT bbp_set_bw(struct _RTMP_ADAPTER *pAd, UINT8 bw)
{
INT result = FALSE;
if (pAd->phy_op && pAd->phy_op->bbp_set_bw)
result = pAd->phy_op->bbp_set_bw(pAd, bw);
if (result == TRUE)
{
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s(): Set PhyBW as %sHz.l\n",
__FUNCTION__, get_bw_str(bw)));
}
#ifdef MT7615
if (IS_MT7615(pAd))
{
DBGPRINT(RT_DEBUG_OFF, ("%s():NotSupportYet!\n", __FUNCTION__));
return FALSE;
}
#endif /* MT7615 */
// TODO: shiang-7603, revise following code
#ifdef MT_MAC
if (pAd->chipCap.hif_type == HIF_MT) {
UINT32 val;
RTMP_IO_READ32(pAd, AGG_BWCR, &val);
val &= (~0x0c);
switch (bw)
{
case BW_20:
val |= (0);
break;
case BW_40:
val |= (0x1 << 2);
break;
case BW_80:
val |= (0x2 << 2);
break;
}
RTMP_IO_WRITE32(pAd, AGG_BWCR, val);
}
#endif /* MT_MAC */
return result;
}
示例5: WdsVirtualIF_open
INT WdsVirtualIF_open(PNET_DEV dev)
{
VOID *pAd;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s: ===> VirtualIF_open\n", RTMP_OS_NETDEV_GET_DEVNAME(dev)));
pAd = RTMP_OS_NETDEV_GET_PRIV(dev);
if (VIRTUAL_IF_UP(pAd) != 0)
return -1;
/* increase MODULE use count */
RT_MOD_INC_USE_COUNT();
RTMP_OS_NETDEV_START_QUEUE(dev);
return 0;
}
示例6: rt_pci_init_module
/*
Driver module load/unload function
*/
int __init rt_pci_init_module(void)
{
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_ERROR, ("register %s\n", RTMP_DRV_NAME));
/*
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_ERROR, ("DriverVersion: 2.7.0.2-Beta-121007\n"
"\tBBP:120824\n"
"\tRF :120813\n"));
*/
/*add for initial hook callback function linking list*/
RTMP_OS_TXRXHOOK_INIT();
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
return pci_register_driver(&rt_pci_driver);
#else
return pci_module_init(&rt_pci_driver);
#endif
}
示例7: AndesIncErrorCount
VOID AndesIncErrorCount(struct MCU_CTRL *ctl, enum cmd_msg_error_type type)
{
if (OS_TEST_BIT(MCU_INIT, &ctl->flags)) {
switch (type) {
case error_tx_kickout_fail:
ctl->tx_kickout_fail_count++;
break;
case error_tx_timeout_fail:
ctl->tx_timeout_fail_count++;
break;
case error_rx_receive_fail:
ctl->rx_receive_fail_count++;
break;
default:
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_ERROR, ("%s:unknown cmd_msg_error_type(%d)\n", __FUNCTION__, type));
}
}
}
示例8: WdsVirtualIF_close
INT WdsVirtualIF_close(PNET_DEV dev)
{
VOID *pAd;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s: ===> VirtualIF_close\n", RTMP_OS_NETDEV_GET_DEVNAME(dev)));
pAd = RTMP_OS_NETDEV_GET_PRIV(dev);
//RTMP_OS_NETDEV_CARRIER_OFF(dev);
RTMP_OS_NETDEV_STOP_QUEUE(dev);
VIRTUAL_IF_DOWN(pAd);
RT_MOD_DEC_USE_COUNT();
return 0;
}
示例9: rtmp_read_igmp_snoop_from_file
void rtmp_read_igmp_snoop_from_file(
IN PRTMP_ADAPTER pAd,
RTMP_STRING *tmpbuf,
RTMP_STRING *buffer)
{
/*IgmpSnEnable */
if(RTMPGetKeyParameter("IgmpSnEnable", tmpbuf, 128, buffer, TRUE))
{
if ((strncmp(tmpbuf, "0", 1) == 0))
pAd->ApCfg.IgmpSnoopEnable = FALSE;
else if ((strncmp(tmpbuf, "1", 1) == 0))
pAd->ApCfg.IgmpSnoopEnable = TRUE;
else
pAd->ApCfg.IgmpSnoopEnable = FALSE;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, (" IGMP Snooping Enable=%d\n", pAd->ApCfg.IgmpSnoopEnable));
}
}
示例10: blockNetIf
BOOLEAN blockNetIf(BLOCK_QUEUE_ENTRY *pBlockQueueEntry, PNET_DEV pNetDev)
{
NETIF_ENTRY *pNetIfEntry = NULL;
if ((pNetIfEntry = (NETIF_ENTRY *)removeHeadList(&freeNetIfEntryList)) != NULL)
{
RTMP_OS_NETDEV_STOP_QUEUE(pNetDev);
pNetIfEntry->pNetDev = pNetDev;
insertTailList(&pBlockQueueEntry->NetIfList, (RT_LIST_ENTRY *)pNetIfEntry);
pBlockQueueEntry->SwTxQueueBlockFlag = TRUE;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("RTMP_OS_NETDEV_STOP_QUEUE(%s)\n", RTMP_OS_NETDEV_GET_DEVNAME(pNetDev)));
}
else
return FALSE;
return TRUE;
}
示例11: RTMP_CFG80211_RemoveVifEntry
VOID RTMP_CFG80211_RemoveVifEntry(VOID *pAdSrc, PNET_DEV pNewNetDev)
{
PRTMP_ADAPTER pAd = (PRTMP_ADAPTER)pAdSrc;
RT_LIST_ENTRY *pListEntry = NULL;
pListEntry = (RT_LIST_ENTRY *)RTMP_CFG80211_FindVifEntry_ByMac(pAd, pNewNetDev);
if (pListEntry)
{
delEntryList(&pAd->cfg80211_ctrl.Cfg80211VifDevSet.vifDevList, pListEntry);
os_free_mem(NULL, pListEntry);
pListEntry = NULL;
}
else
{
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_ERROR, ("Error in RTMP_CFG80211_RemoveVifEntry.\n"));
}
}
示例12: CFG80211_DummyP2pIf_Ioctl
static INT CFG80211_DummyP2pIf_Ioctl(
IN PNET_DEV dev_p,
IN OUT VOID *rq_p,
IN INT cmd)
{
RTMP_ADAPTER *pAd;
pAd = RTMP_OS_NETDEV_GET_PRIV(dev_p);
ASSERT(pAd);
if (!RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_INTERRUPT_IN_USE))
return -ENETDOWN;
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s --->\n", __FUNCTION__));
return rt28xx_ioctl(dev_p, rq_p, cmd);
}
示例13: ChannelSwitchingCountDownProc
/*
========================================================================
Routine Description:
Channel switching count down process upon radar detection
Arguments:
pAd Pointer to our adapter
========================================================================
*/
VOID ChannelSwitchingCountDownProc(
IN PRTMP_ADAPTER pAd)
{
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s():Channel Switching...(%d/%d)\n",
__FUNCTION__, pAd->Dot11_H.CSCount, pAd->Dot11_H.CSPeriod));
pAd->Dot11_H.CSCount++;
if (pAd->Dot11_H.CSCount >= pAd->Dot11_H.CSPeriod)
{
#ifdef DFS_SUPPORT
pAd->CommonCfg.RadarDetect.DFSAPRestart = 1;
schedule_dfs_task(pAd);
#else
APStop(pAd);
APStartUp(pAd);
#endif /* !DFS_SUPPORT */
}
}
示例14: ApCli_VirtualIF_Close
/*
========================================================================
Routine Description:
Close a virtual network interface.
Arguments:
dev_p which WLAN network interface
Return Value:
0: close successfully
otherwise: close fail
Note:
========================================================================
*/
INT ApCli_VirtualIF_Close(PNET_DEV dev_p)
{
VOID *pAd;
pAd = RTMP_OS_NETDEV_GET_PRIV(dev_p);
ASSERT(pAd);
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("%s: ===> %s\n", __FUNCTION__, RTMP_OS_NETDEV_GET_DEVNAME(dev_p)));
RTMP_AP_IoctlHandle(pAd, NULL, CMD_RTPRIV_IOCTL_APC_CLOSE, 0, dev_p, 0);
VIRTUAL_IF_DOWN(pAd);
RT_MOD_DEC_USE_COUNT();
return 0;
}
示例15: RT28xx_WDS_Init
/* Register WDS interface */
VOID RT28xx_WDS_Init(VOID *pAd, PNET_DEV net_dev)
{
RTMP_OS_NETDEV_OP_HOOK netDevOpHook;
NdisZeroMemory((PUCHAR)&netDevOpHook, sizeof(RTMP_OS_NETDEV_OP_HOOK));
netDevOpHook.open = WdsVirtualIF_open;
netDevOpHook.stop = WdsVirtualIF_close;
netDevOpHook.xmit = rt28xx_send_packets;
netDevOpHook.ioctl = rt28xx_ioctl;
netDevOpHook.get_stats = RT28xx_get_wds_ether_stats;
NdisMoveMemory(&netDevOpHook.devAddr[0], RTMP_OS_NETDEV_GET_PHYADDR(net_dev), MAC_ADDR_LEN);
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_TRACE, ("The new WDS interface MAC = %02X:%02X:%02X:%02X:%02X:%02X\n",
PRINT_MAC(netDevOpHook.devAddr)));
RTMP_AP_IoctlHandle(pAd, NULL, CMD_RTPRIV_IOCTL_WDS_INIT,
0, &netDevOpHook, 0);
}