mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Update logging
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d597e07a9e
commit
96adb823b9
54 changed files with 2268 additions and 2272 deletions
File diff suppressed because it is too large
Load diff
1160
os_dep/ioctl_linux.c
1160
os_dep/ioctl_linux.c
File diff suppressed because it is too large
Load diff
|
@ -370,7 +370,7 @@ void rtw_indicate_sta_assoc_event(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
_rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
|
||||
|
||||
DBG_871X("+rtw_indicate_sta_assoc_event\n");
|
||||
DBG_88E("+rtw_indicate_sta_assoc_event\n");
|
||||
|
||||
#ifndef CONFIG_IOCTL_CFG80211
|
||||
wireless_send_event(padapter->pnetdev, IWEVREGISTERED, &wrqu, NULL);
|
||||
|
@ -397,7 +397,7 @@ void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
_rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
|
||||
|
||||
DBG_871X("+rtw_indicate_sta_disassoc_event\n");
|
||||
DBG_88E("+rtw_indicate_sta_disassoc_event\n");
|
||||
|
||||
#ifndef CONFIG_IOCTL_CFG80211
|
||||
wireless_send_event(padapter->pnetdev, IWEVEXPIRED, &wrqu, NULL);
|
||||
|
@ -413,7 +413,7 @@ static int mgnt_xmit_entry(struct sk_buff *skb, struct net_device *pnetdev)
|
|||
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
|
||||
_adapter *padapter = (_adapter *)phostapdpriv->padapter;
|
||||
|
||||
//DBG_871X("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
return rtw_hal_hostap_mgnt_xmit_entry(padapter, skb);
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ static int mgnt_netdev_open(struct net_device *pnetdev)
|
|||
{
|
||||
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
|
||||
|
||||
DBG_871X("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
|
||||
DBG_88E("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
|
||||
|
||||
|
||||
init_usb_anchor(&phostapdpriv->anchored);
|
||||
|
@ -443,7 +443,7 @@ static int mgnt_netdev_close(struct net_device *pnetdev)
|
|||
{
|
||||
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
|
||||
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
usb_kill_anchored_urbs(&phostapdpriv->anchored);
|
||||
|
||||
|
@ -492,7 +492,7 @@ int hostapd_mode_init(_adapter *padapter)
|
|||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
||||
|
||||
DBG_871X("register rtl871x_mgnt_netdev_ops to netdev_ops\n");
|
||||
DBG_88E("register rtl871x_mgnt_netdev_ops to netdev_ops\n");
|
||||
|
||||
pnetdev->netdev_ops = &rtl871x_mgnt_netdev_ops;
|
||||
|
||||
|
@ -524,7 +524,7 @@ int hostapd_mode_init(_adapter *padapter)
|
|||
|
||||
if (dev_alloc_name(pnetdev,"mgnt.wlan%d") < 0)
|
||||
{
|
||||
DBG_871X("hostapd_mode_init(): dev_alloc_name, fail!\n");
|
||||
DBG_88E("hostapd_mode_init(): dev_alloc_name, fail!\n");
|
||||
}
|
||||
|
||||
|
||||
|
@ -547,7 +547,7 @@ int hostapd_mode_init(_adapter *padapter)
|
|||
/* Tell the network stack we exist */
|
||||
if (register_netdev(pnetdev) != 0)
|
||||
{
|
||||
DBG_871X("hostapd_mode_init(): register_netdev fail!\n");
|
||||
DBG_88E("hostapd_mode_init(): register_netdev fail!\n");
|
||||
|
||||
if (pnetdev)
|
||||
{
|
||||
|
|
|
@ -351,13 +351,13 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
|
||||
#endif
|
||||
if (rtw_proc == NULL) {
|
||||
DBG_871X(KERN_ERR "Unable to create rtw_proc directory\n");
|
||||
DBG_88E(KERN_ERR "Unable to create rtw_proc directory\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
}
|
||||
}
|
||||
|
||||
DBG_871X("Unable to create dir_dev directory\n");
|
||||
DBG_88E("Unable to create dir_dev directory\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_write_reg, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_write_reg;
|
||||
|
@ -408,7 +408,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_read_reg, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_read_reg;
|
||||
|
@ -417,7 +417,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_fwstate, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -425,7 +425,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_sec_info, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -433,7 +433,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_mlmext_state, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -441,98 +441,98 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_qos_option, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_ht_option, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rf_info, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_ap_info, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_adapter_state, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_trx_info, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("mac_reg_dump1", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_mac_reg_dump1, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("mac_reg_dump2", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_mac_reg_dump2, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("mac_reg_dump3", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_mac_reg_dump3, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("bb_reg_dump1", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_bb_reg_dump1, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("bb_reg_dump2", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_bb_reg_dump2, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("bb_reg_dump3", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_bb_reg_dump3, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("rf_reg_dump1", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rf_reg_dump1, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("rf_reg_dump2", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rf_reg_dump2, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -541,14 +541,14 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("rf_reg_dump3", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rf_reg_dump3, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
entry = create_proc_read_entry("rf_reg_dump4", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rf_reg_dump4, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -558,7 +558,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_all_sta_info, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -567,7 +567,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("_malloc_cnt", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_malloc_cnt, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -576,7 +576,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_best_channel, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -584,7 +584,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rx_signal, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_rx_signal;
|
||||
|
@ -592,7 +592,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_ht_enable, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_ht_enable;
|
||||
|
@ -600,7 +600,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("cbw40_enable", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_cbw40_enable, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_cbw40_enable;
|
||||
|
@ -608,7 +608,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_ampdu_enable, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_ampdu_enable;
|
||||
|
@ -616,7 +616,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("rx_stbc", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rx_stbc, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_rx_stbc;
|
||||
|
@ -629,7 +629,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_rssi_disp, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_rssi_disp;
|
||||
|
@ -637,7 +637,7 @@ void rtw_proc_init_one(struct net_device *dev)
|
|||
entry = create_proc_read_entry("btcoex_dbg", S_IFREG | S_IRUGO,
|
||||
dir_dev, proc_get_btcoex_dbg, dev);
|
||||
if (!entry) {
|
||||
DBG_871X("Unable to create_proc_read_entry!\n");
|
||||
DBG_88E("Unable to create_proc_read_entry!\n");
|
||||
return;
|
||||
}
|
||||
entry->write_proc = proc_set_btcoex_dbg;
|
||||
|
@ -872,7 +872,7 @@ static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p)
|
|||
|
||||
if (padapter->bup == _FALSE)
|
||||
{
|
||||
//DBG_871X("r8711_net_set_mac_address(), MAC=%x:%x:%x:%x:%x:%x\n", addr->sa_data[0], addr->sa_data[1], addr->sa_data[2], addr->sa_data[3],
|
||||
//DBG_88E("r8711_net_set_mac_address(), MAC=%x:%x:%x:%x:%x:%x\n", addr->sa_data[0], addr->sa_data[1], addr->sa_data[2], addr->sa_data[3],
|
||||
//addr->sa_data[4], addr->sa_data[5]);
|
||||
_rtw_memcpy(padapter->eeprompriv.mac_addr, addr->sa_data, ETH_ALEN);
|
||||
//_rtw_memcpy(pnetdev->dev_addr, addr->sa_data, ETH_ALEN);
|
||||
|
@ -1014,7 +1014,7 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
|
|||
TargetNetdev = dev_get_by_name(devnet, "wlan0");
|
||||
#endif
|
||||
if (TargetNetdev) {
|
||||
DBG_871X("Force onboard module driver disappear !!!\n");
|
||||
DBG_88E("Force onboard module driver disappear !!!\n");
|
||||
TargetAdapter = rtw_netdev_priv(TargetNetdev);
|
||||
TargetAdapter->DriverState = DRIVER_DISAPPEAR;
|
||||
|
||||
|
@ -1069,7 +1069,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
|||
//pnetdev->init = NULL;
|
||||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
||||
DBG_871X("register rtw_netdev_ops to netdev_ops\n");
|
||||
DBG_88E("register rtw_netdev_ops to netdev_ops\n");
|
||||
pnetdev->netdev_ops = &rtw_netdev_ops;
|
||||
#else
|
||||
pnetdev->open = netdev_open;
|
||||
|
@ -1367,7 +1367,7 @@ _func_enter_;
|
|||
#ifdef CONFIG_TDLS
|
||||
if (rtw_init_tdls_info(padapter) == _FAIL)
|
||||
{
|
||||
DBG_871X("Can't rtw_init_tdls_info\n");
|
||||
DBG_88E("Can't rtw_init_tdls_info\n");
|
||||
ret8=_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1375,14 +1375,14 @@ _func_enter_;
|
|||
|
||||
if (_rtw_init_xmit_priv(&padapter->xmitpriv, padapter) == _FAIL)
|
||||
{
|
||||
DBG_871X("Can't _rtw_init_xmit_priv\n");
|
||||
DBG_88E("Can't _rtw_init_xmit_priv\n");
|
||||
ret8=_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (_rtw_init_recv_priv(&padapter->recvpriv, padapter) == _FAIL)
|
||||
{
|
||||
DBG_871X("Can't _rtw_init_recv_priv\n");
|
||||
DBG_88E("Can't _rtw_init_recv_priv\n");
|
||||
ret8=_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1394,7 +1394,7 @@ _func_enter_;
|
|||
|
||||
if (_rtw_init_sta_priv(&padapter->stapriv) == _FAIL)
|
||||
{
|
||||
DBG_871X("Can't _rtw_init_sta_priv\n");
|
||||
DBG_88E("Can't _rtw_init_sta_priv\n");
|
||||
ret8=_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1409,7 +1409,7 @@ _func_enter_;
|
|||
|
||||
#ifdef CONFIG_MP_INCLUDED
|
||||
if (init_mp_priv(padapter) == _FAIL) {
|
||||
DBG_871X("%s: initialize MP private data Fail!\n", __func__);
|
||||
DBG_88E("%s: initialize MP private data Fail!\n", __func__);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1425,7 +1425,7 @@ _func_enter_;
|
|||
#ifdef CONFIG_INTEL_WIDI
|
||||
if (rtw_init_intel_widi(padapter) == _FAIL)
|
||||
{
|
||||
DBG_871X("Can't rtw_init_intel_widi\n");
|
||||
DBG_88E("Can't rtw_init_intel_widi\n");
|
||||
ret8=_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1599,7 +1599,7 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
|
||||
_adapter *primary_padapter = padapter->pbuddy_adapter;
|
||||
|
||||
DBG_871X("+871x_drv - if2_open, bup=%d\n", padapter->bup);
|
||||
DBG_88E("+871x_drv - if2_open, bup=%d\n", padapter->bup);
|
||||
|
||||
if (primary_padapter->bup == _FALSE || primary_padapter->hw_init_completed == _FALSE)
|
||||
{
|
||||
|
@ -1660,7 +1660,7 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
else
|
||||
rtw_netif_wake_queue(pnetdev);
|
||||
|
||||
DBG_871X("-871x_drv - if2_open, bup=%d\n", padapter->bup);
|
||||
DBG_88E("-871x_drv - if2_open, bup=%d\n", padapter->bup);
|
||||
return 0;
|
||||
|
||||
netdev_if2_open_error:
|
||||
|
@ -1741,7 +1741,7 @@ _adapter *rtw_drv_if2_init(_adapter *primary_padapter, char *name,
|
|||
goto error_rtw_drv_if2_init;
|
||||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
||||
DBG_871X("register rtw_netdev_if2_ops to netdev_ops\n");
|
||||
DBG_88E("register rtw_netdev_if2_ops to netdev_ops\n");
|
||||
pnetdev->netdev_ops = &rtw_netdev_if2_ops;
|
||||
#else
|
||||
pnetdev->open = netdev_if2_open;
|
||||
|
@ -1852,7 +1852,7 @@ _adapter *rtw_drv_if2_init(_adapter *primary_padapter, char *name,
|
|||
|
||||
_rtw_memcpy(pnetdev->dev_addr, mac, ETH_ALEN);
|
||||
|
||||
DBG_871X("MAC Address (if2) = "MAC_FMT"\n", MAC_ARG(mac));
|
||||
DBG_88E("MAC Address (if2) = "MAC_FMT"\n", MAC_ARG(mac));
|
||||
|
||||
primary_padapter->pbuddy_adapter = padapter;
|
||||
|
||||
|
@ -2021,7 +2021,7 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
|
||||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+871x_drv - dev_open\n"));
|
||||
DBG_871X("+871x_drv - drv_open, bup=%d\n", padapter->bup);
|
||||
DBG_88E("+871x_drv - drv_open, bup=%d\n", padapter->bup);
|
||||
|
||||
if (pwrctrlpriv->ps_flag == _TRUE){
|
||||
padapter->net_closed = _FALSE;
|
||||
|
@ -2041,7 +2041,7 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
goto netdev_open_error;
|
||||
}
|
||||
|
||||
DBG_871X("MAC Address = "MAC_FMT"\n", MAC_ARG(pnetdev->dev_addr));
|
||||
DBG_88E("MAC Address = "MAC_FMT"\n", MAC_ARG(pnetdev->dev_addr));
|
||||
|
||||
#ifdef CONFIG_RF_GAIN_OFFSET
|
||||
rtw_bb_rf_gain_offset(padapter);
|
||||
|
@ -2050,13 +2050,13 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
status=rtw_start_drv_threads(padapter);
|
||||
if (status ==_FAIL)
|
||||
{
|
||||
DBG_871X("Initialize driver software resource Failed!\n");
|
||||
DBG_88E("Initialize driver software resource Failed!\n");
|
||||
goto netdev_open_error;
|
||||
}
|
||||
|
||||
if (init_hw_mlme_ext(padapter) == _FAIL)
|
||||
{
|
||||
DBG_871X("can't init mlme_ext_priv\n");
|
||||
DBG_88E("can't init mlme_ext_priv\n");
|
||||
goto netdev_open_error;
|
||||
}
|
||||
|
||||
|
@ -2109,7 +2109,7 @@ netdev_open_normal_process:
|
|||
#endif
|
||||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("-871x_drv - dev_open\n"));
|
||||
DBG_871X("-871x_drv - drv_open, bup=%d\n", padapter->bup);
|
||||
DBG_88E("-871x_drv - drv_open, bup=%d\n", padapter->bup);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -2121,7 +2121,7 @@ netdev_open_error:
|
|||
rtw_netif_stop_queue(pnetdev);
|
||||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_err_,("-871x_drv - dev_open, fail!\n"));
|
||||
DBG_871X("-871x_drv - drv_open fail, bup=%d\n", padapter->bup);
|
||||
DBG_88E("-871x_drv - drv_open fail, bup=%d\n", padapter->bup);
|
||||
|
||||
return (-1);
|
||||
|
||||
|
@ -2144,7 +2144,7 @@ int ips_netdrv_open(_adapter *padapter)
|
|||
{
|
||||
int status = _SUCCESS;
|
||||
padapter->net_closed = _FALSE;
|
||||
DBG_871X("===> %s.........\n",__func__);
|
||||
DBG_88E("===> %s.........\n",__func__);
|
||||
|
||||
|
||||
padapter->bDriverStopped = _FALSE;
|
||||
|
@ -2171,7 +2171,7 @@ int ips_netdrv_open(_adapter *padapter)
|
|||
|
||||
netdev_open_error:
|
||||
//padapter->bup = _FALSE;
|
||||
DBG_871X("-ips_netdrv_open - drv_open failure, bup=%d\n", padapter->bup);
|
||||
DBG_88E("-ips_netdrv_open - drv_open failure, bup=%d\n", padapter->bup);
|
||||
|
||||
return _FAIL;
|
||||
}
|
||||
|
@ -2181,14 +2181,14 @@ int rtw_ips_pwr_up(_adapter *padapter)
|
|||
{
|
||||
int result;
|
||||
u32 start_time = rtw_get_current_time();
|
||||
DBG_871X("===> rtw_ips_pwr_up..............\n");
|
||||
DBG_88E("===> rtw_ips_pwr_up..............\n");
|
||||
rtw_reset_drv_sw(padapter);
|
||||
|
||||
result = ips_netdrv_open(padapter);
|
||||
|
||||
rtw_led_control(padapter, LED_CTL_NO_LINK);
|
||||
|
||||
DBG_871X("<=== rtw_ips_pwr_up.............. in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
DBG_88E("<=== rtw_ips_pwr_up.............. in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
return result;
|
||||
|
||||
}
|
||||
|
@ -2196,7 +2196,7 @@ int rtw_ips_pwr_up(_adapter *padapter)
|
|||
void rtw_ips_pwr_down(_adapter *padapter)
|
||||
{
|
||||
u32 start_time = rtw_get_current_time();
|
||||
DBG_871X("===> rtw_ips_pwr_down...................\n");
|
||||
DBG_88E("===> rtw_ips_pwr_down...................\n");
|
||||
|
||||
padapter->bCardDisableWOHSM = _TRUE;
|
||||
padapter->net_closed = _TRUE;
|
||||
|
@ -2205,14 +2205,14 @@ void rtw_ips_pwr_down(_adapter *padapter)
|
|||
|
||||
rtw_ips_dev_unload(padapter);
|
||||
padapter->bCardDisableWOHSM = _FALSE;
|
||||
DBG_871X("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
DBG_88E("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
}
|
||||
#endif
|
||||
void rtw_ips_dev_unload(_adapter *padapter)
|
||||
{
|
||||
struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
|
||||
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
|
||||
DBG_871X("====> %s...\n",__func__);
|
||||
DBG_88E("====> %s...\n",__func__);
|
||||
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_FIFO_CLEARN_UP, 0);
|
||||
|
||||
|
@ -2236,16 +2236,16 @@ void rtw_bb_rf_gain_offset(_adapter *padapter)
|
|||
u8 tmp = 0x3e;
|
||||
u32 res;
|
||||
|
||||
DBG_871X("+%s value: 0x%02x+\n", __func__, value);
|
||||
DBG_88E("+%s value: 0x%02x+\n", __func__, value);
|
||||
|
||||
if (!(value & 0x01)) {
|
||||
DBG_871X("Offset RF Gain.\n");
|
||||
DBG_88E("Offset RF Gain.\n");
|
||||
res = rtw_hal_read_rfreg(padapter, RF_PATH_A, REG_RF_BB_GAIN_OFFSET, 0xffffffff);
|
||||
value &= tmp;
|
||||
res = value << 14;
|
||||
rtw_hal_write_rfreg(padapter, RF_PATH_A, REG_RF_BB_GAIN_OFFSET, RF_GAIN_OFFSET_MASK, res);
|
||||
} else {
|
||||
DBG_871X("Using the default RF gain.\n");
|
||||
DBG_88E("Using the default RF gain.\n");
|
||||
}
|
||||
}
|
||||
#endif //CONFIG_RF_GAIN_OFFSET
|
||||
|
@ -2281,7 +2281,7 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
|
||||
/* if (!padapter->hw_init_completed)
|
||||
{
|
||||
DBG_871X("(1)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
|
||||
DBG_88E("(1)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
|
||||
|
||||
padapter->bDriverStopped = _TRUE;
|
||||
|
||||
|
@ -2289,7 +2289,7 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
}
|
||||
else*/
|
||||
if (padapter->pwrctrlpriv.rf_pwrstate == rf_on){
|
||||
DBG_871X("(2)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
|
||||
DBG_88E("(2)871x_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
|
||||
|
||||
//s1.
|
||||
if (pnetdev)
|
||||
|
@ -2340,7 +2340,7 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
#endif
|
||||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("-871x_drv - drv_close\n"));
|
||||
DBG_871X("-871x_drv - drv_close, bup=%d\n", padapter->bup);
|
||||
DBG_88E("-871x_drv - drv_close, bup=%d\n", padapter->bup);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ void rtw_dump_mem_stat (void)
|
|||
rx_peak=ATOMIC_READ(&rtw_dbg_mem_stat.rx_peak);
|
||||
rx_alloc_err=ATOMIC_READ(&rtw_dbg_mem_stat.rx_alloc_err);
|
||||
|
||||
DBG_871X( "vir_alloc:%d, vir_peak:%d, vir_alloc_err:%d\n"
|
||||
DBG_88E( "vir_alloc:%d, vir_peak:%d, vir_alloc_err:%d\n"
|
||||
"phy_alloc:%d, phy_peak:%d, phy_alloc_err:%d\n"
|
||||
"tx_alloc:%d, tx_peak:%d, tx_alloc_err:%d\n"
|
||||
"rx_alloc:%d, rx_peak:%d, rx_alloc_err:%d\n"
|
||||
|
@ -390,7 +390,7 @@ void rtw_update_mem_stat(u8 flag, u32 sz)
|
|||
inline u8* dbg_rtw_vmalloc(u32 sz, const char *func, int line)
|
||||
{
|
||||
u8 *p;
|
||||
//DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
//DBG_88E("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p=_rtw_vmalloc((sz));
|
||||
|
||||
|
@ -405,7 +405,7 @@ inline u8* dbg_rtw_vmalloc(u32 sz, const char *func, int line)
|
|||
inline u8* dbg_rtw_zvmalloc(u32 sz, const char *func, int line)
|
||||
{
|
||||
u8 *p;
|
||||
//DBG_871X("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
//DBG_88E("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p=_rtw_zvmalloc((sz));
|
||||
|
||||
|
@ -419,7 +419,7 @@ inline u8* dbg_rtw_zvmalloc(u32 sz, const char *func, int line)
|
|||
|
||||
inline void dbg_rtw_vmfree(u8 *pbuf, u32 sz, const char *func, int line)
|
||||
{
|
||||
//DBG_871X("DBG_MEM_ALLOC %s:%d %s(%p,%d)\n", func, line, __func__, (pbuf), (sz));
|
||||
//DBG_88E("DBG_MEM_ALLOC %s:%d %s(%p,%d)\n", func, line, __func__, (pbuf), (sz));
|
||||
|
||||
_rtw_vmfree((pbuf), (sz));
|
||||
|
||||
|
@ -435,7 +435,7 @@ inline u8* dbg_rtw_malloc(u32 sz, const char *func, int line)
|
|||
u8 *p;
|
||||
|
||||
if ((sz)>4096)
|
||||
DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
DBG_88E("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p=_rtw_malloc((sz));
|
||||
|
||||
|
@ -452,7 +452,7 @@ inline u8* dbg_rtw_zmalloc(u32 sz, const char *func, int line)
|
|||
u8 *p;
|
||||
|
||||
if ((sz)>4096)
|
||||
DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
DBG_88E("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_zmalloc((sz));
|
||||
|
||||
|
@ -468,7 +468,7 @@ inline u8* dbg_rtw_zmalloc(u32 sz, const char *func, int line)
|
|||
inline void dbg_rtw_mfree(u8 *pbuf, u32 sz, const char *func, int line)
|
||||
{
|
||||
if ((sz)>4096)
|
||||
DBG_871X("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%p,%d)\n", func, line, __func__, (pbuf), (sz));
|
||||
DBG_88E("DBG_MEM_ALLOC !!!!!!!!!!!!!! %s:%d %s(%p,%d)\n", func, line, __func__, (pbuf), (sz));
|
||||
|
||||
_rtw_mfree((pbuf), (sz));
|
||||
|
||||
|
@ -486,7 +486,7 @@ void* rtw_malloc2d(int h, int w, int size)
|
|||
void **a = (void **) rtw_zmalloc( h*sizeof(void *) + h*w*size );
|
||||
if (a == NULL)
|
||||
{
|
||||
DBG_871X("%s: alloc memory fail!\n", __func__);
|
||||
DBG_88E("%s: alloc memory fail!\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1166,7 +1166,7 @@ void rtw_usleep_os(int us)
|
|||
#ifdef DBG_DELAY_OS
|
||||
void _rtw_mdelay_os(int ms, const char *func, const int line)
|
||||
{
|
||||
DBG_871X("%s:%d %s(%d)\n", func, line, __func__, ms);
|
||||
DBG_88E("%s:%d %s(%d)\n", func, line, __func__, ms);
|
||||
|
||||
#if defined(PLATFORM_LINUX)
|
||||
|
||||
|
@ -1182,7 +1182,7 @@ void _rtw_mdelay_os(int ms, const char *func, const int line)
|
|||
}
|
||||
void _rtw_udelay_os(int us, const char *func, const int line)
|
||||
{
|
||||
DBG_871X("%s:%d %s(%d)\n", func, line, __func__, us);
|
||||
DBG_88E("%s:%d %s(%d)\n", func, line, __func__, us);
|
||||
|
||||
|
||||
#if defined(PLATFORM_LINUX)
|
||||
|
@ -1289,7 +1289,7 @@ inline void rtw_lock_suspend()
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
//DBG_871X("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
//DBG_88E("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1302,7 +1302,7 @@ inline void rtw_unlock_suspend()
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
//DBG_871X("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
//DBG_88E("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1551,20 +1551,20 @@ static int retriveFromFile(char *path, u8* buf, u32 sz)
|
|||
|
||||
if (path && buf) {
|
||||
if ( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){
|
||||
DBG_871X("%s openFile path:%s fp=%p\n",__func__, path ,fp);
|
||||
DBG_88E("%s openFile path:%s fp=%p\n",__func__, path ,fp);
|
||||
|
||||
oldfs = get_fs(); set_fs(get_ds());
|
||||
ret=readFile(fp, buf, sz);
|
||||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
||||
DBG_871X("%s readFile, ret:%d\n",__func__, ret);
|
||||
DBG_88E("%s readFile, ret:%d\n",__func__, ret);
|
||||
|
||||
} else {
|
||||
DBG_871X("%s openFile path:%s Fail, ret:%d\n",__func__, path, ret);
|
||||
DBG_88E("%s openFile path:%s Fail, ret:%d\n",__func__, path, ret);
|
||||
}
|
||||
} else {
|
||||
DBG_871X("%s NULL pointer\n",__func__);
|
||||
DBG_88E("%s NULL pointer\n",__func__);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
return ret;
|
||||
|
@ -1585,20 +1585,20 @@ static int storeToFile(char *path, u8* buf, u32 sz)
|
|||
|
||||
if (path && buf) {
|
||||
if ( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) {
|
||||
DBG_871X("%s openFile path:%s fp=%p\n",__func__, path ,fp);
|
||||
DBG_88E("%s openFile path:%s fp=%p\n",__func__, path ,fp);
|
||||
|
||||
oldfs = get_fs(); set_fs(get_ds());
|
||||
ret=writeFile(fp, buf, sz);
|
||||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
||||
DBG_871X("%s writeFile, ret:%d\n",__func__, ret);
|
||||
DBG_88E("%s writeFile, ret:%d\n",__func__, ret);
|
||||
|
||||
} else {
|
||||
DBG_871X("%s openFile path:%s Fail, ret:%d\n",__func__, path, ret);
|
||||
DBG_88E("%s openFile path:%s Fail, ret:%d\n",__func__, path, ret);
|
||||
}
|
||||
} else {
|
||||
DBG_871X("%s NULL pointer\n",__func__);
|
||||
DBG_88E("%s NULL pointer\n",__func__);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
return ret;
|
||||
|
@ -1983,7 +1983,7 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
|
|||
return _FAIL;
|
||||
|
||||
if (0)
|
||||
DBG_871X("%s on %u\n", __func__, cbuf->write);
|
||||
DBG_88E("%s on %u\n", __func__, cbuf->write);
|
||||
cbuf->bufs[cbuf->write] = buf;
|
||||
cbuf->write = (cbuf->write+1)%cbuf->size;
|
||||
|
||||
|
@ -2004,7 +2004,7 @@ void *rtw_cbuf_pop(struct rtw_cbuf *cbuf)
|
|||
return NULL;
|
||||
|
||||
if (0)
|
||||
DBG_871X("%s on %u\n", __func__, cbuf->read);
|
||||
DBG_88E("%s on %u\n", __func__, cbuf->read);
|
||||
buf = cbuf->bufs[cbuf->read];
|
||||
cbuf->read = (cbuf->read+1)%cbuf->size;
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame)
|
|||
//skb->protocol = __constant_htons(0x0019); /*ETH_P_80211_RAW*/
|
||||
skb->protocol = __constant_htons(0x0003); /*ETH_P_80211_RAW*/
|
||||
|
||||
//DBG_871X("(1)data=0x%x, head=0x%x, tail=0x%x, mac_header=0x%x, len=%d\n", skb->data, skb->head, skb->tail, skb->mac_header, skb->len);
|
||||
//DBG_88E("(1)data=0x%x, head=0x%x, tail=0x%x, mac_header=0x%x, len=%d\n", skb->data, skb->head, skb->tail, skb->mac_header, skb->len);
|
||||
|
||||
//skb->mac.raw = skb->data;
|
||||
skb_reset_mac_header(skb);
|
||||
|
@ -302,7 +302,7 @@ _func_enter_;
|
|||
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
|
||||
int bmcast = IS_MCAST(pattrib->dst);
|
||||
|
||||
//DBG_871X("bmcast=%d\n", bmcast);
|
||||
//DBG_88E("bmcast=%d\n", bmcast);
|
||||
|
||||
if (_rtw_memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)==_FALSE) {
|
||||
if (bmcast) {
|
||||
|
@ -316,7 +316,7 @@ _func_enter_;
|
|||
{
|
||||
struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
|
||||
|
||||
//DBG_871X("directly forwarding to the rtw_xmit_entry\n");
|
||||
//DBG_88E("directly forwarding to the rtw_xmit_entry\n");
|
||||
|
||||
//skb->ip_summed = CHECKSUM_NONE;
|
||||
skb->dev = pnetdev;
|
||||
|
@ -336,7 +336,7 @@ _func_enter_;
|
|||
}
|
||||
else// to APself
|
||||
{
|
||||
//DBG_871X("to APSelf\n");
|
||||
//DBG_88E("to APSelf\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -372,10 +372,10 @@ _func_enter_;
|
|||
#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
|
||||
if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) {
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
//DBG_871X("CHECKSUM_UNNECESSARY\n");
|
||||
//DBG_88E("CHECKSUM_UNNECESSARY\n");
|
||||
} else {
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
//DBG_871X("CHECKSUM_NONE(%d, %d)\n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt);
|
||||
//DBG_88E("CHECKSUM_NONE(%d, %d)\n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt);
|
||||
}
|
||||
#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
|
|||
DHD_INFO(("%s: command=%s, len=%d\n", __func__, command, total_len));
|
||||
|
||||
if (total_len < (strlen(CMD_PNOSETUP_SET) + sizeof(cmd_tlv_t))) {
|
||||
DBG_871X("%s argument=%d less min size\n", __func__, total_len);
|
||||
DBG_88E("%s argument=%d less min size\n", __func__, total_len);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
||||
|
@ -183,11 +183,11 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
|
|||
|
||||
if ((nssid = wl_iw_parse_ssid_list_tlv(&str_ptr, ssids_local,
|
||||
MAX_PFN_LIST_COUNT, &tlv_size_left)) <= 0) {
|
||||
DBG_871X("SSID is not presented or corrupted ret=%d\n", nssid);
|
||||
DBG_88E("SSID is not presented or corrupted ret=%d\n", nssid);
|
||||
goto exit_proc;
|
||||
} else {
|
||||
if ((str_ptr[0] != PNO_TLV_TYPE_TIME) || (tlv_size_left <= 1)) {
|
||||
DBG_871X("%s scan duration corrupted field size %d\n",
|
||||
DBG_88E("%s scan duration corrupted field size %d\n",
|
||||
__func__, tlv_size_left);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
|
|||
|
||||
if (str_ptr[0] != 0) {
|
||||
if ((str_ptr[0] != PNO_TLV_FREQ_REPEAT)) {
|
||||
DBG_871X("%s pno repeat : corrupted field\n",
|
||||
DBG_88E("%s pno repeat : corrupted field\n",
|
||||
__func__);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
|
|||
pno_repeat = simple_strtoul(str_ptr, &str_ptr, 16);
|
||||
DHD_INFO(("%s :got pno_repeat=%d\n", __func__, pno_repeat));
|
||||
if (str_ptr[0] != PNO_TLV_FREQ_EXPO_MAX) {
|
||||
DBG_871X("%s FREQ_EXPO_MAX corrupted field size\n",
|
||||
DBG_88E("%s FREQ_EXPO_MAX corrupted field size\n",
|
||||
__func__);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ static int wl_android_set_pno_setup(struct net_device *dev, char *command, int t
|
|||
}
|
||||
}
|
||||
} else {
|
||||
DBG_871X("%s get wrong TLV command\n", __func__);
|
||||
DBG_88E("%s get wrong TLV command\n", __func__);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
||||
|
@ -346,17 +346,17 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
//DBG_871X("%s priv_cmd.buf=%p priv_cmd.total_len=%d priv_cmd.used_len=%d\n",__func__,priv_cmd.buf,priv_cmd.total_len,priv_cmd.used_len);
|
||||
//DBG_88E("%s priv_cmd.buf=%p priv_cmd.total_len=%d priv_cmd.used_len=%d\n",__func__,priv_cmd.buf,priv_cmd.total_len,priv_cmd.used_len);
|
||||
command = kmalloc(priv_cmd.total_len, GFP_KERNEL);
|
||||
if (!command)
|
||||
{
|
||||
DBG_871X("%s: failed to allocate memory\n", __func__);
|
||||
DBG_88E("%s: failed to allocate memory\n", __func__);
|
||||
ret = -ENOMEM;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){
|
||||
DBG_871X("%s: failed to access memory\n", __func__);
|
||||
DBG_88E("%s: failed to access memory\n", __func__);
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
DBG_871X("%s: Android private cmd \"%s\" on %s\n"
|
||||
DBG_88E("%s: Android private cmd \"%s\" on %s\n"
|
||||
, __func__, command, ifr->ifr_name);
|
||||
|
||||
cmd_num = rtw_android_cmdstr_to_num(command);
|
||||
|
@ -379,7 +379,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
}
|
||||
|
||||
if (!g_wifi_on) {
|
||||
DBG_871X("%s: Ignore private cmd \"%s\" - iface %s is down\n"
|
||||
DBG_88E("%s: Ignore private cmd \"%s\" - iface %s is down\n"
|
||||
,__func__, command, ifr->ifr_name);
|
||||
ret = 0;
|
||||
goto exit;
|
||||
|
@ -548,7 +548,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
}
|
||||
#endif
|
||||
default:
|
||||
DBG_871X("Unknown PRIVATE command %s - ignored\n", command);
|
||||
DBG_88E("Unknown PRIVATE command %s - ignored\n", command);
|
||||
snprintf(command, 3, "OK");
|
||||
bytes_written = strlen("OK");
|
||||
}
|
||||
|
@ -558,14 +558,14 @@ response:
|
|||
if ((bytes_written == 0) && (priv_cmd.total_len > 0))
|
||||
command[0] = '\0';
|
||||
if (bytes_written >= priv_cmd.total_len) {
|
||||
DBG_871X("%s: bytes_written = %d\n", __func__, bytes_written);
|
||||
DBG_88E("%s: bytes_written = %d\n", __func__, bytes_written);
|
||||
bytes_written = priv_cmd.total_len;
|
||||
} else {
|
||||
bytes_written++;
|
||||
}
|
||||
priv_cmd.used_len = bytes_written;
|
||||
if (copy_to_user((void *)priv_cmd.buf, command, bytes_written)) {
|
||||
DBG_871X("%s: failed to copy data to user buffer\n", __func__);
|
||||
DBG_88E("%s: failed to copy data to user buffer\n", __func__);
|
||||
ret = -EFAULT;
|
||||
}
|
||||
}
|
||||
|
@ -603,7 +603,7 @@ int rtw_android_wifictrl_func_add(void)
|
|||
|
||||
ret = wifi_add_dev();
|
||||
if (ret) {
|
||||
DBG_871X("%s: platform_driver_register failed\n", __func__);
|
||||
DBG_88E("%s: platform_driver_register failed\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
g_wifidev_registered = 1;
|
||||
|
@ -611,7 +611,7 @@ int rtw_android_wifictrl_func_add(void)
|
|||
/* Waiting callback after platform_driver_register is done or exit with error */
|
||||
if (down_timeout(&wifi_control_sem, msecs_to_jiffies(1000)) != 0) {
|
||||
ret = -EINVAL;
|
||||
DBG_871X("%s: platform_driver_register timeout\n", __func__);
|
||||
DBG_88E("%s: platform_driver_register timeout\n", __func__);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -632,14 +632,14 @@ void *wl_android_prealloc(int section, unsigned long size)
|
|||
if (wifi_control_data && wifi_control_data->mem_prealloc) {
|
||||
alloc_ptr = wifi_control_data->mem_prealloc(section, size);
|
||||
if (alloc_ptr) {
|
||||
DBG_871X("success alloc section %d\n", section);
|
||||
DBG_88E("success alloc section %d\n", section);
|
||||
if (size != 0L)
|
||||
memset(alloc_ptr, 0, size);
|
||||
return alloc_ptr;
|
||||
}
|
||||
}
|
||||
|
||||
DBG_871X("can't alloc section %d\n", section);
|
||||
DBG_88E("can't alloc section %d\n", section);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -658,7 +658,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr)
|
|||
|
||||
int wifi_set_power(int on, unsigned long msec)
|
||||
{
|
||||
DBG_871X("%s = %d\n", __func__, on);
|
||||
DBG_88E("%s = %d\n", __func__, on);
|
||||
if (wifi_control_data && wifi_control_data->set_power) {
|
||||
wifi_control_data->set_power(on);
|
||||
}
|
||||
|
@ -670,7 +670,7 @@ int wifi_set_power(int on, unsigned long msec)
|
|||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
|
||||
int wifi_get_mac_addr(unsigned char *buf)
|
||||
{
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
if (!buf)
|
||||
return -EINVAL;
|
||||
if (wifi_control_data && wifi_control_data->get_mac_addr) {
|
||||
|
@ -683,7 +683,7 @@ int wifi_get_mac_addr(unsigned char *buf)
|
|||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
void *wifi_get_country_code(char *ccode)
|
||||
{
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
if (!ccode)
|
||||
return NULL;
|
||||
if (wifi_control_data && wifi_control_data->get_country_code) {
|
||||
|
@ -695,7 +695,7 @@ void *wifi_get_country_code(char *ccode)
|
|||
|
||||
static int wifi_set_carddetect(int on)
|
||||
{
|
||||
DBG_871X("%s = %d\n", __func__, on);
|
||||
DBG_88E("%s = %d\n", __func__, on);
|
||||
if (wifi_control_data && wifi_control_data->set_carddetect) {
|
||||
wifi_control_data->set_carddetect(on);
|
||||
}
|
||||
|
@ -707,7 +707,7 @@ static int wifi_probe(struct platform_device *pdev)
|
|||
struct wifi_platform_data *wifi_ctrl =
|
||||
(struct wifi_platform_data *)(pdev->dev.platform_data);
|
||||
|
||||
DBG_871X("## %s\n", __func__);
|
||||
DBG_88E("## %s\n", __func__);
|
||||
wifi_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "bcmdhd_wlan_irq");
|
||||
if (wifi_irqres == NULL)
|
||||
wifi_irqres = platform_get_resource_byname(pdev,
|
||||
|
@ -726,7 +726,7 @@ static int wifi_remove(struct platform_device *pdev)
|
|||
struct wifi_platform_data *wifi_ctrl =
|
||||
(struct wifi_platform_data *)(pdev->dev.platform_data);
|
||||
|
||||
DBG_871X("## %s\n", __func__);
|
||||
DBG_88E("## %s\n", __func__);
|
||||
wifi_control_data = wifi_ctrl;
|
||||
|
||||
wifi_set_power(0, 0); /* Power Off */
|
||||
|
@ -738,7 +738,7 @@ static int wifi_remove(struct platform_device *pdev)
|
|||
|
||||
static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
DBG_871X("##> %s\n", __func__);
|
||||
DBG_88E("##> %s\n", __func__);
|
||||
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
|
||||
bcmsdh_oob_intr_set(0);
|
||||
#endif
|
||||
|
@ -747,7 +747,7 @@ static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
|
|||
|
||||
static int wifi_resume(struct platform_device *pdev)
|
||||
{
|
||||
DBG_871X("##> %s\n", __func__);
|
||||
DBG_88E("##> %s\n", __func__);
|
||||
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
|
||||
if (dhd_os_check_if_up(bcmsdh_get_drvdata()))
|
||||
bcmsdh_oob_intr_set(1);
|
||||
|
@ -778,7 +778,7 @@ static struct platform_driver wifi_device_legacy = {
|
|||
|
||||
static int wifi_add_dev(void)
|
||||
{
|
||||
DBG_871X("## Calling platform_driver_register\n");
|
||||
DBG_88E("## Calling platform_driver_register\n");
|
||||
platform_driver_register(&wifi_device);
|
||||
platform_driver_register(&wifi_device_legacy);
|
||||
return 0;
|
||||
|
@ -786,7 +786,7 @@ static int wifi_add_dev(void)
|
|||
|
||||
static void wifi_del_dev(void)
|
||||
{
|
||||
DBG_871X("## Unregister platform_driver_register\n");
|
||||
DBG_88E("## Unregister platform_driver_register\n");
|
||||
platform_driver_unregister(&wifi_device);
|
||||
platform_driver_unregister(&wifi_device_legacy);
|
||||
}
|
||||
|
|
|
@ -452,7 +452,7 @@ static u8 rtw_init_intf_priv(struct dvobj_priv *dvobj)
|
|||
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
|
||||
dvobj->usb_alloc_vendor_req_buf = rtw_zmalloc(MAX_USB_IO_CTL_SIZE);
|
||||
if (dvobj->usb_alloc_vendor_req_buf == NULL) {
|
||||
DBG_871X("alloc usb_vendor_req_buf failed... /n");
|
||||
DBG_88E("alloc usb_vendor_req_buf failed... /n");
|
||||
rst = _FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -528,27 +528,27 @@ _func_enter_;
|
|||
{
|
||||
pendp_desc = &phost_endp->desc;
|
||||
|
||||
DBG_871X("\nusb_endpoint_descriptor(%d):\n", i);
|
||||
DBG_871X("bLength=%x\n",pendp_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n",pendp_desc->bDescriptorType);
|
||||
DBG_871X("bEndpointAddress=%x\n",pendp_desc->bEndpointAddress);
|
||||
DBG_871X("wMaxPacketSize=%d\n",le16_to_cpu(pendp_desc->wMaxPacketSize));
|
||||
DBG_871X("bInterval=%x\n",pendp_desc->bInterval);
|
||||
DBG_88E("\nusb_endpoint_descriptor(%d):\n", i);
|
||||
DBG_88E("bLength=%x\n",pendp_desc->bLength);
|
||||
DBG_88E("bDescriptorType=%x\n",pendp_desc->bDescriptorType);
|
||||
DBG_88E("bEndpointAddress=%x\n",pendp_desc->bEndpointAddress);
|
||||
DBG_88E("wMaxPacketSize=%d\n",le16_to_cpu(pendp_desc->wMaxPacketSize));
|
||||
DBG_88E("bInterval=%x\n",pendp_desc->bInterval);
|
||||
|
||||
if (RT_usb_endpoint_is_bulk_in(pendp_desc)) {
|
||||
DBG_871X("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(pendp_desc));
|
||||
DBG_88E("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(pendp_desc));
|
||||
pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = RT_usb_endpoint_num(pendp_desc);
|
||||
pdvobjpriv->RtNumInPipes++;
|
||||
}
|
||||
else if (RT_usb_endpoint_is_int_in(pendp_desc))
|
||||
{
|
||||
DBG_871X("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(pendp_desc),pendp_desc->bInterval);
|
||||
DBG_88E("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(pendp_desc),pendp_desc->bInterval);
|
||||
pdvobjpriv->RtInPipe[pdvobjpriv->RtNumInPipes] = RT_usb_endpoint_num(pendp_desc);
|
||||
pdvobjpriv->RtNumInPipes++;
|
||||
}
|
||||
else if (RT_usb_endpoint_is_bulk_out(pendp_desc))
|
||||
{
|
||||
DBG_871X("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(pendp_desc));
|
||||
DBG_88E("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(pendp_desc));
|
||||
pdvobjpriv->RtOutPipe[pdvobjpriv->RtNumOutPipes] = RT_usb_endpoint_num(pendp_desc);
|
||||
pdvobjpriv->RtNumOutPipes++;
|
||||
}
|
||||
|
@ -556,14 +556,14 @@ _func_enter_;
|
|||
}
|
||||
}
|
||||
|
||||
DBG_871X("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
|
||||
DBG_88E("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
|
||||
|
||||
if (pusbd->speed == USB_SPEED_HIGH) {
|
||||
pdvobjpriv->ishighspeed = _TRUE;
|
||||
DBG_871X("USB_SPEED_HIGH\n");
|
||||
DBG_88E("USB_SPEED_HIGH\n");
|
||||
} else {
|
||||
pdvobjpriv->ishighspeed = _FALSE;
|
||||
DBG_871X("NON USB_SPEED_HIGH\n");
|
||||
DBG_88E("NON USB_SPEED_HIGH\n");
|
||||
}
|
||||
|
||||
if (rtw_init_intf_priv(pdvobjpriv) == _FAIL) {
|
||||
|
@ -604,7 +604,7 @@ _func_enter_;
|
|||
if (interface_to_usbdev(usb_intf)->state != USB_STATE_NOTATTACHED) {
|
||||
//If we didn't unplug usb dongle and remove/insert modlue, driver fails on sitesurvey for the first time when device is up .
|
||||
//Reset usb port for sitesurvey fail issue. 2009.8.13, by Thomas
|
||||
DBG_871X("usb attached..., try to reset usb device\n");
|
||||
DBG_88E("usb attached..., try to reset usb device\n");
|
||||
usb_reset_device(interface_to_usbdev(usb_intf));
|
||||
}
|
||||
}
|
||||
|
@ -612,7 +612,7 @@ _func_enter_;
|
|||
rtw_mfree((u8*)dvobj, sizeof(*dvobj));
|
||||
}
|
||||
|
||||
//DBG_871X("%s %d\n", __func__, ATOMIC_READ(&usb_intf->dev.kobj.kref.refcount));
|
||||
//DBG_88E("%s %d\n", __func__, ATOMIC_READ(&usb_intf->dev.kobj.kref.refcount));
|
||||
usb_put_dev(interface_to_usbdev(usb_intf));
|
||||
|
||||
_func_exit_;
|
||||
|
@ -668,7 +668,7 @@ static void rtw_dev_unload(_adapter *padapter)
|
|||
|
||||
if (padapter->bup == _TRUE)
|
||||
{
|
||||
DBG_871X("===> rtw_dev_unload\n");
|
||||
DBG_88E("===> rtw_dev_unload\n");
|
||||
|
||||
padapter->bDriverStopped = _TRUE;
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
|
@ -690,10 +690,10 @@ static void rtw_dev_unload(_adapter *padapter)
|
|||
//s5.
|
||||
if (padapter->bSurpriseRemoved == _FALSE)
|
||||
{
|
||||
//DBG_871X("r871x_dev_unload()->rtl871x_hal_deinit()\n");
|
||||
//DBG_88E("r871x_dev_unload()->rtl871x_hal_deinit()\n");
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if ((padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE)&&(padapter->pwrctrlpriv.wowlan_mode==_TRUE)){
|
||||
DBG_871X("%s bSupportWakeOnWlan==_TRUE do not run rtw_hal_deinit()\n",__func__);
|
||||
DBG_88E("%s bSupportWakeOnWlan==_TRUE do not run rtw_hal_deinit()\n",__func__);
|
||||
}
|
||||
else
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
@ -713,7 +713,7 @@ static void rtw_dev_unload(_adapter *padapter)
|
|||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == _FALSE\n" ));
|
||||
}
|
||||
|
||||
DBG_871X("<=== rtw_dev_unload\n");
|
||||
DBG_88E("<=== rtw_dev_unload\n");
|
||||
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-rtw_dev_unload\n"));
|
||||
|
||||
|
@ -748,7 +748,7 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
{
|
||||
extern char* ifname;
|
||||
strncpy(ifname, "wlan10", 6);
|
||||
//DBG_871X("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __func__, __LINE__, ifname, vid, pid);
|
||||
//DBG_88E("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __func__, __LINE__, ifname, vid, pid);
|
||||
}
|
||||
#endif /* RTK_DMP_PLATFORM */
|
||||
|
||||
|
@ -766,7 +766,7 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
|
||||
if ((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
|
||||
{
|
||||
DBG_871X("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
|
||||
DBG_88E("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
|
||||
padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
|
||||
goto error_exit;
|
||||
}
|
||||
|
@ -775,7 +775,7 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
{
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
|
||||
DBG_871X("==> rtw_hw_suspend\n");
|
||||
DBG_88E("==> rtw_hw_suspend\n");
|
||||
_enter_pwrlock(&pwrpriv->lock);
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
//padapter->net_closed = _TRUE;
|
||||
|
@ -829,7 +829,7 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
return 0;
|
||||
|
||||
error_exit:
|
||||
DBG_871X("%s, failed\n",__func__);
|
||||
DBG_88E("%s, failed\n",__func__);
|
||||
return (-1);
|
||||
|
||||
}
|
||||
|
@ -844,7 +844,7 @@ int rtw_hw_resume(_adapter *padapter)
|
|||
|
||||
if (padapter)//system resume
|
||||
{
|
||||
DBG_871X("==> rtw_hw_resume\n");
|
||||
DBG_88E("==> rtw_hw_resume\n");
|
||||
_enter_pwrlock(&pwrpriv->lock);
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
rtw_reset_drv_sw(padapter);
|
||||
|
@ -880,7 +880,7 @@ int rtw_hw_resume(_adapter *padapter)
|
|||
|
||||
return 0;
|
||||
error_exit:
|
||||
DBG_871X("%s, Open net dev failed\n",__func__);
|
||||
DBG_88E("%s, Open net dev failed\n",__func__);
|
||||
return (-1);
|
||||
}
|
||||
#endif
|
||||
|
@ -902,7 +902,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
|
||||
_func_enter_;
|
||||
|
||||
DBG_871X("==> %s (%s:%d)\n",__func__, current->comm, current->pid);
|
||||
DBG_88E("==> %s (%s:%d)\n",__func__, current->comm, current->pid);
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED))
|
||||
|
@ -913,7 +913,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
|
||||
if ((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
|
||||
{
|
||||
DBG_871X("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
|
||||
DBG_88E("padapter->bup=%d bDriverStopped=%d bSurpriseRemoved = %d\n",
|
||||
padapter->bup, padapter->bDriverStopped,padapter->bSurpriseRemoved);
|
||||
goto exit;
|
||||
}
|
||||
|
@ -962,8 +962,8 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
#ifdef CONFIG_LAYER2_ROAMING_RESUME
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED) )
|
||||
{
|
||||
//DBG_871X("%s:%d assoc_ssid:%s\n", __func__, __LINE__, pmlmepriv->assoc_ssid.Ssid);
|
||||
DBG_871X("%s:%d %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n",__func__, __LINE__,
|
||||
//DBG_88E("%s:%d assoc_ssid:%s\n", __func__, __LINE__, pmlmepriv->assoc_ssid.Ssid);
|
||||
DBG_88E("%s:%d %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n",__func__, __LINE__,
|
||||
pmlmepriv->cur_network.network.Ssid.Ssid,
|
||||
MAC_ARG(pmlmepriv->cur_network.network.MacAddress),
|
||||
pmlmepriv->cur_network.network.Ssid.SsidLength,
|
||||
|
@ -996,7 +996,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
rtw_indicate_disconnect(padapter);
|
||||
|
||||
exit:
|
||||
DBG_871X("<=== %s return %d.............. in %dms\n", __func__
|
||||
DBG_88E("<=== %s return %d.............. in %dms\n", __func__
|
||||
, ret, rtw_get_passing_time_ms(start_time));
|
||||
|
||||
_func_exit_;
|
||||
|
@ -1048,7 +1048,7 @@ int rtw_resume_process(_adapter *padapter)
|
|||
#endif //#ifdef CONFIG_BT_COEXIST
|
||||
_func_enter_;
|
||||
|
||||
DBG_871X("==> %s (%s:%d)\n",__func__, current->comm, current->pid);
|
||||
DBG_88E("==> %s (%s:%d)\n",__func__, current->comm, current->pid);
|
||||
|
||||
if (padapter) {
|
||||
pnetdev= padapter->pnetdev;
|
||||
|
@ -1061,18 +1061,18 @@ int rtw_resume_process(_adapter *padapter)
|
|||
#ifdef CONFIG_BT_COEXIST
|
||||
#ifdef CONFIG_AUTOSUSPEND
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
|
||||
DBG_871X("%s...pm_usage_cnt(%d) pwrpriv->bAutoResume=%x. ....\n",__func__,atomic_read(&(adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt)),pwrpriv->bAutoResume);
|
||||
DBG_88E("%s...pm_usage_cnt(%d) pwrpriv->bAutoResume=%x. ....\n",__func__,atomic_read(&(adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt)),pwrpriv->bAutoResume);
|
||||
pm_cnt=atomic_read(&(adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt));
|
||||
#else
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt);
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt);
|
||||
pm_cnt = adapter_to_dvobj(padapter)->pusbintf->pm_usage_cnt;
|
||||
#endif
|
||||
|
||||
DBG_871X("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
DBG_88E("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
if ( _TRUE == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = _FALSE;
|
||||
pwrpriv->bAutoResume=_FALSE;
|
||||
DBG_871X("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
DBG_88E("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
|
||||
}
|
||||
#endif //#ifdef CONFIG_AUTOSUSPEND
|
||||
|
@ -1080,7 +1080,7 @@ int rtw_resume_process(_adapter *padapter)
|
|||
rtw_reset_drv_sw(padapter);
|
||||
pwrpriv->bkeepfwalive = _FALSE;
|
||||
|
||||
DBG_871X("bkeepfwalive(%x)\n",pwrpriv->bkeepfwalive);
|
||||
DBG_88E("bkeepfwalive(%x)\n",pwrpriv->bkeepfwalive);
|
||||
if (pm_netdev_open(pnetdev,_TRUE) != 0)
|
||||
goto exit;
|
||||
|
||||
|
@ -1102,11 +1102,11 @@ int rtw_resume_process(_adapter *padapter)
|
|||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
DBG_871X("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
DBG_88E("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
if ( _TRUE == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = _FALSE;
|
||||
pwrpriv->bAutoResume=_FALSE;
|
||||
DBG_871X("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
DBG_88E("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
}
|
||||
|
||||
#else //#ifdef CONFIG_BT_COEXIST
|
||||
|
@ -1114,7 +1114,7 @@ int rtw_resume_process(_adapter *padapter)
|
|||
#endif //#ifdef CONFIG_BT_COEXIST
|
||||
pwrpriv->brfoffbyhw = _FALSE;
|
||||
{
|
||||
DBG_871X("enc_algorithm(%x),wepkeymask(%x)\n",
|
||||
DBG_88E("enc_algorithm(%x),wepkeymask(%x)\n",
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm,pwrpriv->wepkeymask);
|
||||
if ( (_WEP40_ == padapter->securitypriv.dot11PrivacyAlgrthm) ||
|
||||
(_WEP104_ == padapter->securitypriv.dot11PrivacyAlgrthm))
|
||||
|
@ -1136,7 +1136,7 @@ int rtw_resume_process(_adapter *padapter)
|
|||
_exit_pwrlock(&pwrpriv->lock);
|
||||
|
||||
if ( padapter->pid[1]!=0) {
|
||||
DBG_871X("pid[1]:%d\n",padapter->pid[1]);
|
||||
DBG_88E("pid[1]:%d\n",padapter->pid[1]);
|
||||
rtw_signal_process(padapter->pid[1], SIGUSR2);
|
||||
}
|
||||
|
||||
|
@ -1151,7 +1151,7 @@ exit:
|
|||
#endif //CONFIG_RESUME_IN_WORKQUEUE
|
||||
|
||||
pwrpriv->bInSuspend = _FALSE;
|
||||
DBG_871X("<=== %s return %d.............. in %dms\n", __func__
|
||||
DBG_88E("<=== %s return %d.............. in %dms\n", __func__
|
||||
, ret, rtw_get_passing_time_ms(start_time));
|
||||
|
||||
_func_exit_;
|
||||
|
@ -1165,7 +1165,7 @@ void autosuspend_enter(_adapter* padapter)
|
|||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
|
||||
DBG_871X("==>autosuspend_enter...........\n");
|
||||
DBG_88E("==>autosuspend_enter...........\n");
|
||||
|
||||
pwrpriv->bInternalAutoSuspend = _TRUE;
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
|
@ -1204,14 +1204,14 @@ void autosuspend_enter(_adapter* padapter)
|
|||
pwrpriv->autopm_cnt --;
|
||||
}
|
||||
else
|
||||
DBG_871X("0!=pwrpriv->autopm_cnt[%d] didn't usb_autopm_put_interface\n", pwrpriv->autopm_cnt);
|
||||
DBG_88E("0!=pwrpriv->autopm_cnt[%d] didn't usb_autopm_put_interface\n", pwrpriv->autopm_cnt);
|
||||
|
||||
#endif //#ifndef CONFIG_BT_COEXIST
|
||||
}
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
#else
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -1224,7 +1224,7 @@ int autoresume_enter(_adapter* padapter)
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
|
||||
DBG_871X("====> autoresume_enter\n");
|
||||
DBG_88E("====> autoresume_enter\n");
|
||||
|
||||
if (rf_off == pwrpriv->rf_pwrstate )
|
||||
{
|
||||
|
@ -1233,7 +1233,7 @@ int autoresume_enter(_adapter* padapter)
|
|||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
|
||||
if (usb_autopm_get_interface(dvobj->pusbintf) < 0)
|
||||
{
|
||||
DBG_871X( "can't get autopm: %d\n", result);
|
||||
DBG_88E( "can't get autopm: %d\n", result);
|
||||
result = _FAIL;
|
||||
goto error_exit;
|
||||
}
|
||||
|
@ -1244,9 +1244,9 @@ int autoresume_enter(_adapter* padapter)
|
|||
#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
#else
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
#endif
|
||||
#else //#ifndef CONFIG_BT_COEXIST
|
||||
pwrpriv->bAutoResume=_TRUE;
|
||||
|
@ -1254,7 +1254,7 @@ int autoresume_enter(_adapter* padapter)
|
|||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
|
||||
if (usb_autopm_get_interface(dvobj->pusbintf) < 0)
|
||||
{
|
||||
DBG_871X( "can't get autopm: %d\n", result);
|
||||
DBG_88E( "can't get autopm: %d\n", result);
|
||||
result = _FAIL;
|
||||
goto error_exit;
|
||||
}
|
||||
|
@ -1264,17 +1264,17 @@ int autoresume_enter(_adapter* padapter)
|
|||
usb_autoresume_device(dvobj->pusbdev, 1);
|
||||
#endif
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
#else
|
||||
DBG_871X("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
DBG_88E("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
#endif
|
||||
pwrpriv->autopm_cnt++;
|
||||
}
|
||||
else
|
||||
DBG_871X("0!=pwrpriv->autopm_cnt[%d] didn't usb_autopm_get_interface\n",pwrpriv->autopm_cnt);
|
||||
DBG_88E("0!=pwrpriv->autopm_cnt[%d] didn't usb_autopm_get_interface\n",pwrpriv->autopm_cnt);
|
||||
#endif //#ifndef CONFIG_BT_COEXIST
|
||||
}
|
||||
DBG_871X("<==== autoresume_enter\n");
|
||||
DBG_88E("<==== autoresume_enter\n");
|
||||
error_exit:
|
||||
|
||||
return result;
|
||||
|
@ -1388,8 +1388,8 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
dvobj->pusbdev->do_remote_wakeup=1;
|
||||
pusb_intf->needs_remote_wakeup = 1;
|
||||
device_init_wakeup(&pusb_intf->dev, 1);
|
||||
DBG_871X("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~~~~\n");
|
||||
DBG_871X("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~[%d]~~~\n",device_may_wakeup(&pusb_intf->dev));
|
||||
DBG_88E("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~~~~\n");
|
||||
DBG_88E("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~[%d]~~~\n",device_may_wakeup(&pusb_intf->dev));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1414,9 +1414,9 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
//usb_autopm_get_interface(adapter_to_dvobj(padapter)->pusbintf );//init pm_usage_cnt ,let it start from 1
|
||||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,32))
|
||||
DBG_871X("%s...pm_usage_cnt(%d).....\n",__func__,atomic_read(&(dvobj->pusbintf ->pm_usage_cnt)));
|
||||
DBG_88E("%s...pm_usage_cnt(%d).....\n",__func__,atomic_read(&(dvobj->pusbintf ->pm_usage_cnt)));
|
||||
#else
|
||||
DBG_871X("%s...pm_usage_cnt(%d).....\n",__func__,dvobj->pusbintf ->pm_usage_cnt);
|
||||
DBG_88E("%s...pm_usage_cnt(%d).....\n",__func__,dvobj->pusbintf ->pm_usage_cnt);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -1425,7 +1425,7 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
|
||||
if (usb_autopm_get_interface(pusb_intf) < 0)
|
||||
{
|
||||
DBG_871X( "can't get autopm:\n");
|
||||
DBG_88E( "can't get autopm:\n");
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
|
@ -1437,14 +1437,14 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
rtw_macaddr_cfg(padapter->eeprompriv.mac_addr);
|
||||
rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr, padapter->eeprompriv.mac_addr);
|
||||
_rtw_memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
|
||||
DBG_871X("MAC Address from pnetdev->dev_addr= " MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
|
||||
DBG_88E("MAC Address from pnetdev->dev_addr= " MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
|
||||
|
||||
#ifdef CONFIG_HOSTAPD_MLME
|
||||
hostapd_mode_init(padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
DBG_871X("wlan link up\n");
|
||||
DBG_88E("wlan link up\n");
|
||||
rtd2885_wlan_netlink_sendMsg("linkup", "8712");
|
||||
#endif
|
||||
|
||||
|
@ -1458,7 +1458,7 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
rtw_proc_init_one(pnetdev);
|
||||
#endif
|
||||
|
||||
DBG_871X("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
|
||||
DBG_88E("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
|
||||
, padapter->bDriverStopped
|
||||
, padapter->bSurpriseRemoved
|
||||
, padapter->bup
|
||||
|
@ -1523,7 +1523,7 @@ static void rtw_usb_if1_deinit(_adapter *if1)
|
|||
|
||||
rtw_dev_unload(if1);
|
||||
|
||||
DBG_871X("+r871xu_dev_remove, hw_init_completed=%d\n", if1->hw_init_completed);
|
||||
DBG_88E("+r871xu_dev_remove, hw_init_completed=%d\n", if1->hw_init_completed);
|
||||
|
||||
rtw_handle_dualmac(if1, 0);
|
||||
|
||||
|
@ -1551,7 +1551,7 @@ static void rtw_usb_if1_deinit(_adapter *if1)
|
|||
rtw_free_netdev(pnetdev);
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
DBG_871X("wlan link down\n");
|
||||
DBG_88E("wlan link down\n");
|
||||
rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
|
||||
#endif
|
||||
|
||||
|
@ -1574,58 +1574,58 @@ static void dump_usb_interface(struct usb_interface *usb_intf)
|
|||
struct usb_endpoint_descriptor *endp_desc;
|
||||
|
||||
#if 1 /* The usb device this usb interface belongs to */
|
||||
DBG_871X("usb_interface:%p, usb_device:%p(num:%d, path:%s), usb_device_descriptor:%p\n", usb_intf, udev, udev->devnum, udev->devpath, dev_desc);
|
||||
DBG_871X("bLength:%u\n", dev_desc->bLength);
|
||||
DBG_871X("bDescriptorType:0x%02x\n", dev_desc->bDescriptorType);
|
||||
DBG_871X("bcdUSB:0x%04x\n", le16_to_cpu(dev_desc->bcdUSB));
|
||||
DBG_871X("bDeviceClass:0x%02x\n", dev_desc->bDeviceClass);
|
||||
DBG_871X("bDeviceSubClass:0x%02x\n", dev_desc->bDeviceSubClass);
|
||||
DBG_871X("bDeviceProtocol:0x%02x\n", dev_desc->bDeviceProtocol);
|
||||
DBG_871X("bMaxPacketSize0:%u\n", dev_desc->bMaxPacketSize0);
|
||||
DBG_871X("idVendor:0x%04x\n", le16_to_cpu(dev_desc->idVendor));
|
||||
DBG_871X("idProduct:0x%04x\n", le16_to_cpu(dev_desc->idProduct));
|
||||
DBG_871X("bcdDevice:0x%04x\n", le16_to_cpu(dev_desc->bcdDevice));
|
||||
DBG_871X("iManufacturer:0x02%x\n", dev_desc->iManufacturer);
|
||||
DBG_871X("iProduct:0x%02x\n", dev_desc->iProduct);
|
||||
DBG_871X("iSerialNumber:0x%02x\n", dev_desc->iSerialNumber);
|
||||
DBG_871X("bNumConfigurations:%u\n", dev_desc->bNumConfigurations);
|
||||
DBG_88E("usb_interface:%p, usb_device:%p(num:%d, path:%s), usb_device_descriptor:%p\n", usb_intf, udev, udev->devnum, udev->devpath, dev_desc);
|
||||
DBG_88E("bLength:%u\n", dev_desc->bLength);
|
||||
DBG_88E("bDescriptorType:0x%02x\n", dev_desc->bDescriptorType);
|
||||
DBG_88E("bcdUSB:0x%04x\n", le16_to_cpu(dev_desc->bcdUSB));
|
||||
DBG_88E("bDeviceClass:0x%02x\n", dev_desc->bDeviceClass);
|
||||
DBG_88E("bDeviceSubClass:0x%02x\n", dev_desc->bDeviceSubClass);
|
||||
DBG_88E("bDeviceProtocol:0x%02x\n", dev_desc->bDeviceProtocol);
|
||||
DBG_88E("bMaxPacketSize0:%u\n", dev_desc->bMaxPacketSize0);
|
||||
DBG_88E("idVendor:0x%04x\n", le16_to_cpu(dev_desc->idVendor));
|
||||
DBG_88E("idProduct:0x%04x\n", le16_to_cpu(dev_desc->idProduct));
|
||||
DBG_88E("bcdDevice:0x%04x\n", le16_to_cpu(dev_desc->bcdDevice));
|
||||
DBG_88E("iManufacturer:0x02%x\n", dev_desc->iManufacturer);
|
||||
DBG_88E("iProduct:0x%02x\n", dev_desc->iProduct);
|
||||
DBG_88E("iSerialNumber:0x%02x\n", dev_desc->iSerialNumber);
|
||||
DBG_88E("bNumConfigurations:%u\n", dev_desc->bNumConfigurations);
|
||||
#endif
|
||||
|
||||
|
||||
#if 1 /* The acting usb_config_descriptor */
|
||||
DBG_871X("\nact_conf_desc:%p\n", act_conf_desc);
|
||||
DBG_871X("bLength:%u\n", act_conf_desc->bLength);
|
||||
DBG_871X("bDescriptorType:0x%02x\n", act_conf_desc->bDescriptorType);
|
||||
DBG_871X("wTotalLength:%u\n", le16_to_cpu(act_conf_desc->wTotalLength));
|
||||
DBG_871X("bNumInterfaces:%u\n", act_conf_desc->bNumInterfaces);
|
||||
DBG_871X("bConfigurationValue:0x%02x\n", act_conf_desc->bConfigurationValue);
|
||||
DBG_871X("iConfiguration:0x%02x\n", act_conf_desc->iConfiguration);
|
||||
DBG_871X("bmAttributes:0x%02x\n", act_conf_desc->bmAttributes);
|
||||
DBG_871X("bMaxPower=%u\n", act_conf_desc->bMaxPower);
|
||||
DBG_88E("\nact_conf_desc:%p\n", act_conf_desc);
|
||||
DBG_88E("bLength:%u\n", act_conf_desc->bLength);
|
||||
DBG_88E("bDescriptorType:0x%02x\n", act_conf_desc->bDescriptorType);
|
||||
DBG_88E("wTotalLength:%u\n", le16_to_cpu(act_conf_desc->wTotalLength));
|
||||
DBG_88E("bNumInterfaces:%u\n", act_conf_desc->bNumInterfaces);
|
||||
DBG_88E("bConfigurationValue:0x%02x\n", act_conf_desc->bConfigurationValue);
|
||||
DBG_88E("iConfiguration:0x%02x\n", act_conf_desc->iConfiguration);
|
||||
DBG_88E("bmAttributes:0x%02x\n", act_conf_desc->bmAttributes);
|
||||
DBG_88E("bMaxPower=%u\n", act_conf_desc->bMaxPower);
|
||||
#endif
|
||||
|
||||
|
||||
DBG_871X("****** num of altsetting = (%d) ******/\n", usb_intf->num_altsetting);
|
||||
DBG_88E("****** num of altsetting = (%d) ******/\n", usb_intf->num_altsetting);
|
||||
/* Get he host side alternate setting (the current alternate setting) for this interface*/
|
||||
host_iface = usb_intf->cur_altsetting;
|
||||
iface_desc = &host_iface->desc;
|
||||
|
||||
#if 1 /* The current alternate setting*/
|
||||
DBG_871X("\nusb_interface_descriptor:%p:\n", iface_desc);
|
||||
DBG_871X("bLength:%u\n", iface_desc->bLength);
|
||||
DBG_871X("bDescriptorType:0x%02x\n", iface_desc->bDescriptorType);
|
||||
DBG_871X("bInterfaceNumber:0x%02x\n", iface_desc->bInterfaceNumber);
|
||||
DBG_871X("bAlternateSetting=%x\n", iface_desc->bAlternateSetting);
|
||||
DBG_871X("bNumEndpoints=%x\n", iface_desc->bNumEndpoints);
|
||||
DBG_871X("bInterfaceClass=%x\n", iface_desc->bInterfaceClass);
|
||||
DBG_871X("bInterfaceSubClass=%x\n", iface_desc->bInterfaceSubClass);
|
||||
DBG_871X("bInterfaceProtocol=%x\n", iface_desc->bInterfaceProtocol);
|
||||
DBG_871X("iInterface=%x\n", iface_desc->iInterface);
|
||||
DBG_88E("\nusb_interface_descriptor:%p:\n", iface_desc);
|
||||
DBG_88E("bLength:%u\n", iface_desc->bLength);
|
||||
DBG_88E("bDescriptorType:0x%02x\n", iface_desc->bDescriptorType);
|
||||
DBG_88E("bInterfaceNumber:0x%02x\n", iface_desc->bInterfaceNumber);
|
||||
DBG_88E("bAlternateSetting=%x\n", iface_desc->bAlternateSetting);
|
||||
DBG_88E("bNumEndpoints=%x\n", iface_desc->bNumEndpoints);
|
||||
DBG_88E("bInterfaceClass=%x\n", iface_desc->bInterfaceClass);
|
||||
DBG_88E("bInterfaceSubClass=%x\n", iface_desc->bInterfaceSubClass);
|
||||
DBG_88E("bInterfaceProtocol=%x\n", iface_desc->bInterfaceProtocol);
|
||||
DBG_88E("iInterface=%x\n", iface_desc->iInterface);
|
||||
#endif
|
||||
|
||||
|
||||
#if 1
|
||||
//DBG_871X("\ndump usb_endpoint_descriptor:\n");
|
||||
//DBG_88E("\ndump usb_endpoint_descriptor:\n");
|
||||
|
||||
for (i = 0; i < iface_desc->bNumEndpoints; i++)
|
||||
{
|
||||
|
@ -1634,43 +1634,43 @@ static void dump_usb_interface(struct usb_interface *usb_intf)
|
|||
{
|
||||
endp_desc = &host_endp->desc;
|
||||
|
||||
DBG_871X("\nusb_endpoint_descriptor(%d):\n", i);
|
||||
DBG_871X("bLength=%x\n",endp_desc->bLength);
|
||||
DBG_871X("bDescriptorType=%x\n",endp_desc->bDescriptorType);
|
||||
DBG_871X("bEndpointAddress=%x\n",endp_desc->bEndpointAddress);
|
||||
DBG_871X("bmAttributes=%x\n",endp_desc->bmAttributes);
|
||||
DBG_871X("wMaxPacketSize=%x\n",endp_desc->wMaxPacketSize);
|
||||
DBG_871X("wMaxPacketSize=%x\n",le16_to_cpu(endp_desc->wMaxPacketSize));
|
||||
DBG_871X("bInterval=%x\n",endp_desc->bInterval);
|
||||
//DBG_871X("bRefresh=%x\n",pendp_desc->bRefresh);
|
||||
//DBG_871X("bSynchAddress=%x\n",pendp_desc->bSynchAddress);
|
||||
DBG_88E("\nusb_endpoint_descriptor(%d):\n", i);
|
||||
DBG_88E("bLength=%x\n",endp_desc->bLength);
|
||||
DBG_88E("bDescriptorType=%x\n",endp_desc->bDescriptorType);
|
||||
DBG_88E("bEndpointAddress=%x\n",endp_desc->bEndpointAddress);
|
||||
DBG_88E("bmAttributes=%x\n",endp_desc->bmAttributes);
|
||||
DBG_88E("wMaxPacketSize=%x\n",endp_desc->wMaxPacketSize);
|
||||
DBG_88E("wMaxPacketSize=%x\n",le16_to_cpu(endp_desc->wMaxPacketSize));
|
||||
DBG_88E("bInterval=%x\n",endp_desc->bInterval);
|
||||
//DBG_88E("bRefresh=%x\n",pendp_desc->bRefresh);
|
||||
//DBG_88E("bSynchAddress=%x\n",pendp_desc->bSynchAddress);
|
||||
|
||||
if (RT_usb_endpoint_is_bulk_in(endp_desc))
|
||||
{
|
||||
DBG_871X("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(endp_desc));
|
||||
DBG_88E("RT_usb_endpoint_is_bulk_in = %x\n", RT_usb_endpoint_num(endp_desc));
|
||||
//pdvobjpriv->RtNumInPipes++;
|
||||
}
|
||||
else if (RT_usb_endpoint_is_int_in(endp_desc))
|
||||
{
|
||||
DBG_871X("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(endp_desc),endp_desc->bInterval);
|
||||
DBG_88E("RT_usb_endpoint_is_int_in = %x, Interval = %x\n", RT_usb_endpoint_num(endp_desc),endp_desc->bInterval);
|
||||
//pdvobjpriv->RtNumInPipes++;
|
||||
}
|
||||
else if (RT_usb_endpoint_is_bulk_out(endp_desc))
|
||||
{
|
||||
DBG_871X("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(endp_desc));
|
||||
DBG_88E("RT_usb_endpoint_is_bulk_out = %x\n", RT_usb_endpoint_num(endp_desc));
|
||||
//pdvobjpriv->RtNumOutPipes++;
|
||||
}
|
||||
//pdvobjpriv->ep_num[i] = RT_usb_endpoint_num(pendp_desc);
|
||||
}
|
||||
}
|
||||
|
||||
//DBG_871X("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
|
||||
//DBG_88E("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
|
||||
#endif
|
||||
|
||||
if (udev->speed == USB_SPEED_HIGH)
|
||||
DBG_871X("USB_SPEED_HIGH\n");
|
||||
DBG_88E("USB_SPEED_HIGH\n");
|
||||
else
|
||||
DBG_871X("NON USB_SPEED_HIGH\n");
|
||||
DBG_88E("NON USB_SPEED_HIGH\n");
|
||||
|
||||
}
|
||||
|
||||
|
@ -1683,7 +1683,7 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
|
|||
struct dvobj_priv *dvobj;
|
||||
|
||||
RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_init\n"));
|
||||
//DBG_871X("+rtw_drv_init\n");
|
||||
//DBG_88E("+rtw_drv_init\n");
|
||||
|
||||
//step 0.
|
||||
process_spec_devid(pdid);
|
||||
|
@ -1699,7 +1699,7 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
|
|||
#endif
|
||||
|
||||
if ((if1 = rtw_usb_if1_init(dvobj, pusb_intf, pdid)) == NULL) {
|
||||
DBG_871X("rtw_init_primary_adapter Failed!\n");
|
||||
DBG_88E("rtw_init_primary_adapter Failed!\n");
|
||||
goto free_dvobj;
|
||||
}
|
||||
|
||||
|
@ -1715,7 +1715,7 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
|
|||
|
||||
#ifdef CONFIG_GLOBAL_UI_PID
|
||||
if (ui_pid[1]!=0) {
|
||||
DBG_871X("ui_pid[1]:%d\n",ui_pid[1]);
|
||||
DBG_88E("ui_pid[1]:%d\n",ui_pid[1]);
|
||||
rtw_signal_process(ui_pid[1], SIGUSR2);
|
||||
}
|
||||
#endif
|
||||
|
@ -1748,17 +1748,17 @@ static void rtw_dev_remove(struct usb_interface *pusb_intf)
|
|||
|
||||
_func_enter_;
|
||||
|
||||
DBG_871X("+rtw_dev_remove\n");
|
||||
DBG_88E("+rtw_dev_remove\n");
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+dev_remove()\n"));
|
||||
|
||||
if (usb_drv->drv_registered == _TRUE)
|
||||
{
|
||||
//DBG_871X("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
|
||||
//DBG_88E("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
}
|
||||
/*else
|
||||
{
|
||||
//DBG_871X("r871xu_dev_remove():module removed\n");
|
||||
//DBG_88E("r871xu_dev_remove():module removed\n");
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
}*/
|
||||
|
||||
|
@ -1784,7 +1784,7 @@ _func_enter_;
|
|||
usb_dvobj_deinit(pusb_intf);
|
||||
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("-dev_remove()\n"));
|
||||
DBG_871X("-r871xu_dev_remove, done\n");
|
||||
DBG_88E("-r871xu_dev_remove, done\n");
|
||||
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
|
@ -1818,11 +1818,11 @@ static int __init rtw_drv_entry(void)
|
|||
/* ----------get usb_wifi_usbc_num------------- */
|
||||
ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&usb_wifi_host, 64);
|
||||
if (ret != 0){
|
||||
DBG_8192C("ERR: script_parser_fetch usb_wifi_usbc_num failed\n");
|
||||
DBG_88E("ERR: script_parser_fetch usb_wifi_usbc_num failed\n");
|
||||
ret = -ENOMEM;
|
||||
return ret;
|
||||
}
|
||||
DBG_8192C("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
DBG_88E("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
sw_usb_enable_hcd(usb_wifi_host);
|
||||
#endif //CONFIG_RTL8723A
|
||||
#endif //CONFIG_PLATFORM_ARM_SUNxI
|
||||
|
@ -1830,8 +1830,8 @@ static int __init rtw_drv_entry(void)
|
|||
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_entry\n"));
|
||||
|
||||
DBG_871X(DRV_NAME " driver version=%s\n", DRIVERVERSION);
|
||||
DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
|
||||
DBG_88E(DRV_NAME " driver version=%s\n", DRIVERVERSION);
|
||||
DBG_88E("build time: %s %s\n", __DATE__, __TIME__);
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
|
||||
//console_suspend_enabled=0;
|
||||
|
@ -1854,7 +1854,7 @@ static int __init rtw_drv_entry(void)
|
|||
static void __exit rtw_drv_halt(void)
|
||||
{
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_halt\n"));
|
||||
DBG_871X("+rtw_drv_halt\n");
|
||||
DBG_88E("+rtw_drv_halt\n");
|
||||
|
||||
rtw_suspend_lock_uninit();
|
||||
|
||||
|
@ -1869,12 +1869,12 @@ static void __exit rtw_drv_halt(void)
|
|||
#endif
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUNxI
|
||||
#ifndef CONFIG_RTL8723A
|
||||
DBG_8192C("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
DBG_88E("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
sw_usb_disable_hcd(usb_wifi_host);
|
||||
#endif //ifndef CONFIG_RTL8723A
|
||||
#endif //CONFIG_PLATFORM_ARM_SUNxI
|
||||
|
||||
DBG_871X("-rtw_drv_halt\n");
|
||||
DBG_88E("-rtw_drv_halt\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ static void usb_bulkout_zero_complete(struct urb *purb, struct pt_regs *regs)
|
|||
{
|
||||
struct zero_bulkout_context *pcontext = (struct zero_bulkout_context *)purb->context;
|
||||
|
||||
//DBG_8192C("+usb_bulkout_zero_complete\n");
|
||||
//DBG_88E("+usb_bulkout_zero_complete\n");
|
||||
|
||||
if (pcontext)
|
||||
{
|
||||
|
@ -220,7 +220,7 @@ static u32 usb_bulkout_zero(struct intf_hdl *pintfhdl, u32 addr)
|
|||
struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
|
||||
struct usb_device *pusbd = pdvobj->pusbdev;
|
||||
|
||||
//DBG_871X("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
|
||||
if ((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx))
|
||||
|
@ -284,7 +284,7 @@ void usb_read_port_cancel(struct intf_hdl *pintfhdl)
|
|||
_adapter *padapter = pintfhdl->padapter;
|
||||
precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf;
|
||||
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
padapter->bReadPortCancel = _TRUE;
|
||||
|
||||
|
@ -292,7 +292,7 @@ void usb_read_port_cancel(struct intf_hdl *pintfhdl)
|
|||
|
||||
precvbuf->reuse = _TRUE;
|
||||
if (precvbuf->purb) {
|
||||
//DBG_8192C("usb_read_port_cancel : usb_kill_urb\n");
|
||||
//DBG_88E("usb_read_port_cancel : usb_kill_urb\n");
|
||||
usb_kill_urb(precvbuf->purb);
|
||||
}
|
||||
precvbuf++;
|
||||
|
@ -350,23 +350,23 @@ _func_enter_;
|
|||
case 1:
|
||||
case 2:
|
||||
pxmitpriv->bkq_cnt--;
|
||||
//DBG_8192C("pxmitpriv->bkq_cnt=%d\n", pxmitpriv->bkq_cnt);
|
||||
//DBG_88E("pxmitpriv->bkq_cnt=%d\n", pxmitpriv->bkq_cnt);
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
pxmitpriv->viq_cnt--;
|
||||
//DBG_8192C("pxmitpriv->viq_cnt=%d\n", pxmitpriv->viq_cnt);
|
||||
//DBG_88E("pxmitpriv->viq_cnt=%d\n", pxmitpriv->viq_cnt);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
pxmitpriv->voq_cnt--;
|
||||
//DBG_8192C("pxmitpriv->voq_cnt=%d\n", pxmitpriv->voq_cnt);
|
||||
//DBG_88E("pxmitpriv->voq_cnt=%d\n", pxmitpriv->voq_cnt);
|
||||
break;
|
||||
case 0:
|
||||
case 3:
|
||||
default:
|
||||
pxmitpriv->beq_cnt--;
|
||||
//DBG_8192C("pxmitpriv->beq_cnt=%d\n", pxmitpriv->beq_cnt);
|
||||
//DBG_88E("pxmitpriv->beq_cnt=%d\n", pxmitpriv->beq_cnt);
|
||||
break;
|
||||
|
||||
}
|
||||
|
@ -385,7 +385,7 @@ _func_enter_;
|
|||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||padapter->bWritePortCancel)
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved));
|
||||
DBG_8192C("%s(): TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bWritePortCancel(%d) pxmitbuf->ext_tag(%x)\n",
|
||||
DBG_88E("%s(): TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bWritePortCancel(%d) pxmitbuf->ext_tag(%x)\n",
|
||||
__func__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel,pxmitbuf->ext_tag);
|
||||
|
||||
goto check_completion;
|
||||
|
@ -396,7 +396,7 @@ _func_enter_;
|
|||
|
||||
} else {
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete : purb->status(%d) != 0\n", purb->status));
|
||||
DBG_871X("###=> urb_write_port_complete status(%d)\n",purb->status);
|
||||
DBG_88E("###=> urb_write_port_complete status(%d)\n",purb->status);
|
||||
if ((purb->status==-EPIPE)||(purb->status==-EPROTO))
|
||||
{
|
||||
//usb_clear_halt(pusbdev, purb->pipe);
|
||||
|
@ -407,11 +407,11 @@ _func_enter_;
|
|||
goto check_completion;
|
||||
|
||||
} else if (purb->status == -ENOENT) {
|
||||
DBG_871X("%s: -ENOENT\n", __func__);
|
||||
DBG_88E("%s: -ENOENT\n", __func__);
|
||||
goto check_completion;
|
||||
|
||||
} else if (purb->status == -ECONNRESET) {
|
||||
DBG_871X("%s: -ECONNRESET\n", __func__);
|
||||
DBG_88E("%s: -ECONNRESET\n", __func__);
|
||||
goto check_completion;
|
||||
|
||||
} else if (purb->status == -ESHUTDOWN) {
|
||||
|
@ -424,7 +424,7 @@ _func_enter_;
|
|||
else
|
||||
{
|
||||
padapter->bSurpriseRemoved=_TRUE;
|
||||
DBG_8192C("bSurpriseRemoved=TRUE\n");
|
||||
DBG_88E("bSurpriseRemoved=TRUE\n");
|
||||
//rtl8192cu_trigger_gpio_0(padapter);
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=TRUE\n"));
|
||||
|
||||
|
@ -475,7 +475,7 @@ _func_enter_;
|
|||
|
||||
if ((padapter->bDriverStopped) || (padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)) {
|
||||
#ifdef DBG_TX
|
||||
DBG_871X(" DBG_TX %s:%d bDriverStopped%d, bSurpriseRemoved:%d, pnp_bstop_trx:%d\n",__func__, __LINE__
|
||||
DBG_88E(" DBG_TX %s:%d bDriverStopped%d, bSurpriseRemoved:%d, pnp_bstop_trx:%d\n",__func__, __LINE__
|
||||
,padapter->bDriverStopped, padapter->bSurpriseRemoved, padapter->pwrctrlpriv.pnp_bstop_trx );
|
||||
#endif
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port:( padapter->bDriverStopped ||padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
|
||||
|
@ -551,7 +551,7 @@ _func_enter_;
|
|||
#endif
|
||||
} else {
|
||||
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_WRITE_PORT_ERR);
|
||||
DBG_871X("usb_write_port, status=%d\n", status);
|
||||
DBG_88E("usb_write_port, status=%d\n", status);
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port(): usb_submit_urb, status=%x\n", status));
|
||||
|
||||
switch (status) {
|
||||
|
@ -591,7 +591,7 @@ void usb_write_port_cancel(struct intf_hdl *pintfhdl)
|
|||
_adapter *padapter = pintfhdl->padapter;
|
||||
struct xmit_buf *pxmitbuf = (struct xmit_buf *)padapter->xmitpriv.pxmitbuf;
|
||||
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
padapter->bWritePortCancel = _TRUE;
|
||||
|
||||
|
|
|
@ -96,11 +96,11 @@ void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
|||
const struct iphdr *ip = ip_hdr(skb);
|
||||
if (ip->protocol == IPPROTO_TCP) {
|
||||
// TCP checksum offload by HW
|
||||
DBG_871X("CHECKSUM_PARTIAL TCP\n");
|
||||
DBG_88E("CHECKSUM_PARTIAL TCP\n");
|
||||
pattrib->hw_tcp_csum = 1;
|
||||
//skb_checksum_help(skb);
|
||||
} else if (ip->protocol == IPPROTO_UDP) {
|
||||
//DBG_871X("CHECKSUM_PARTIAL UDP\n");
|
||||
//DBG_88E("CHECKSUM_PARTIAL UDP\n");
|
||||
#if 1
|
||||
skb_checksum_help(skb);
|
||||
#else
|
||||
|
@ -109,12 +109,12 @@ void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
|||
udp->check = 0;
|
||||
#endif
|
||||
} else {
|
||||
DBG_871X("%s-%d TCP CSUM offload Error!!\n", __func__, __LINE__);
|
||||
DBG_88E("%s-%d TCP CSUM offload Error!!\n", __func__, __LINE__);
|
||||
WARN_ON(1); /* we need a WARN() */
|
||||
}
|
||||
}
|
||||
else { // IP fragmentation case
|
||||
DBG_871X("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __func__, __LINE__);
|
||||
DBG_88E("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __func__, __LINE__);
|
||||
skb_checksum_help(skb);
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ int rtw_os_xmit_resource_alloc(_adapter *padapter, struct xmit_buf *pxmitbuf,u32
|
|||
pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (pxmitbuf->pxmit_urb[i] == NULL)
|
||||
{
|
||||
DBG_871X("pxmitbuf->pxmit_urb[i]==NULL");
|
||||
DBG_88E("pxmitbuf->pxmit_urb[i]==NULL");
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
|
@ -292,7 +292,7 @@ static void rtw_check_xmit_resource(_adapter *padapter, _pkt *pkt)
|
|||
if (padapter->registrypriv.wifi_spec) {
|
||||
/* No free space for Tx, tx_worker is too slow */
|
||||
if (pxmitpriv->hwxmits[queue].accnt > WMM_XMIT_THRESHOLD) {
|
||||
//DBG_871X("%s(): stop netif_subqueue[%d]\n", __func__, queue);
|
||||
//DBG_88E("%s(): stop netif_subqueue[%d]\n", __func__, queue);
|
||||
netif_stop_subqueue(padapter->pnetdev, queue);
|
||||
}
|
||||
} else {
|
||||
|
@ -342,13 +342,13 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
|
|||
memcpy(newskb->data, psta->hwaddr, 6);
|
||||
res = rtw_xmit(padapter, &newskb);
|
||||
if (res < 0) {
|
||||
DBG_871X("%s()-%d: rtw_xmit() return error!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: rtw_xmit() return error!\n", __func__, __LINE__);
|
||||
pxmitpriv->tx_drop++;
|
||||
dev_kfree_skb_any(newskb);
|
||||
} else
|
||||
pxmitpriv->tx_pkts++;
|
||||
} else {
|
||||
DBG_871X("%s-%d: skb_copy() failed!\n", __func__, __LINE__);
|
||||
DBG_88E("%s-%d: skb_copy() failed!\n", __func__, __LINE__);
|
||||
pxmitpriv->tx_drop++;
|
||||
|
||||
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
|
@ -384,7 +384,7 @@ _func_enter_;
|
|||
if (rtw_if_up(padapter) == _FALSE) {
|
||||
RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("rtw_xmit_entry: rtw_if_up fail\n"));
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
DBG_871X("DBG_TX_DROP_FRAME %s if_up fail\n", __func__);
|
||||
DBG_88E("DBG_TX_DROP_FRAME %s if_up fail\n", __func__);
|
||||
#endif
|
||||
goto drop_packet;
|
||||
}
|
||||
|
@ -405,8 +405,8 @@ _func_enter_;
|
|||
goto exit;
|
||||
}
|
||||
} else {
|
||||
//DBG_871X("Stop M2U(%d, %d)! ", pxmitpriv->free_xmitframe_cnt, pxmitpriv->free_xmitbuf_cnt);
|
||||
//DBG_871X("!m2u );
|
||||
//DBG_88E("Stop M2U(%d, %d)! ", pxmitpriv->free_xmitframe_cnt, pxmitpriv->free_xmitbuf_cnt);
|
||||
//DBG_88E("!m2u );
|
||||
}
|
||||
}
|
||||
#endif // CONFIG_TX_MCAST2UNI
|
||||
|
@ -414,7 +414,7 @@ _func_enter_;
|
|||
res = rtw_xmit(padapter, &pkt);
|
||||
if (res < 0) {
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
DBG_871X("DBG_TX_DROP_FRAME %s rtw_xmit fail\n", __func__);
|
||||
DBG_88E("DBG_TX_DROP_FRAME %s rtw_xmit fail\n", __func__);
|
||||
#endif
|
||||
goto drop_packet;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue