list_del_init(&psta->auth_list);
pstapriv->auth_list_cnt--;
- netdev_dbg(padapter->pnetdev,
- "auth expire %6ph\n",
- psta->hwaddr);
-
spin_unlock_bh(&pstapriv->auth_list_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
list_del_init(&psta->asoc_list);
pstapriv->asoc_list_cnt--;
- netdev_dbg(padapter->pnetdev,
- "asoc expire %pM, state = 0x%x\n",
- (psta->hwaddr), psta->state);
updated = ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVING);
} else {
/* TODO: Aging mechanism to digest frames in sleep_q to avoid running out of xmitframe */
if (psta->sleepq_len > (NR_XMITFRAME / pstapriv->asoc_list_cnt) &&
padapter->xmitpriv.free_xmitframe_cnt < (NR_XMITFRAME / pstapriv->asoc_list_cnt / 2)) {
- netdev_dbg(padapter->pnetdev,
- "sta:%pM, sleepq_len:%u, free_xmitframe_cnt:%u, asoc_list_cnt:%u, clear sleep_q\n",
- (psta->hwaddr), psta->sleepq_len,
- padapter->xmitpriv.free_xmitframe_cnt,
- pstapriv->asoc_list_cnt);
wakeup_sta_to_xmit(padapter, psta);
}
}
psta->keep_alive_trycnt++;
if (ret == _SUCCESS) {
- netdev_dbg(padapter->pnetdev,
- "asoc check, sta(%pM) is alive\n",
- (psta->hwaddr));
psta->expire_to = pstapriv->expire_to;
psta->keep_alive_trycnt = 0;
continue;
} else if (psta->keep_alive_trycnt <= 3) {
- netdev_dbg(padapter->pnetdev,
- "ack check for asoc expire, keep_alive_trycnt =%d\n",
- psta->keep_alive_trycnt);
psta->expire_to = 1;
continue;
}
psta->keep_alive_trycnt = 0;
- netdev_dbg(padapter->pnetdev,
- "asoc expire %pM, state = 0x%x\n",
- (psta->hwaddr), psta->state);
spin_lock_bh(&pstapriv->asoc_list_lock);
list_del_init(&psta->asoc_list);
pstapriv->asoc_list_cnt--;
tx_ra_bitmap |= ((raid << 28) & 0xf0000000);
- netdev_dbg(padapter->pnetdev,
- "mac_id:%d, raid:%d, bitmap = 0x%x, arg = 0x%x\n",
- psta->mac_id, raid, tx_ra_bitmap, arg);
-
/* bitmap[0:27] = tx_rate_bitmap */
/* bitmap[28:31]= Rate Adaptive id */
/* arg[0:4] = macid */
psta->init_rate = init_rate;
} else {
- netdev_dbg(padapter->pnetdev,
- "station aid %d exceed the max number\n",
- psta->aid);
}
}
arg = psta->mac_id & 0x1f;
arg |= BIT(7);
tx_ra_bitmap |= ((raid << 28) & 0xf0000000);
- netdev_dbg(padapter->pnetdev,
- "mask = 0x%x, arg = 0x%x\n",
- tx_ra_bitmap, arg);
/* bitmap[0:27] = tx_rate_bitmap */
/* bitmap[28:31]= Rate Adaptive id */
spin_unlock_bh(&psta->lock);
} else {
- netdev_dbg(padapter->pnetdev, "add_RATid_bmc_sta error!\n");
}
}
unsigned char *p, *ie = pnetwork->IEs;
u32 len = 0;
- netdev_dbg(padapter->pnetdev, "ERP_enable = %d\n", pmlmeinfo->ERP_enable);
-
if (!pmlmeinfo->ERP_enable)
return;
update_bcn_wps_ie(padapter);
else if (!memcmp(P2P_OUI, oui, 4))
update_bcn_p2p_ie(padapter);
- else
- netdev_dbg(padapter->pnetdev, "unknown/unused OUI type!\n");
}
void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
if (pmlmepriv->htpriv.ht_option)
return 0;
- netdev_dbg(padapter->pnetdev,
- "current operation mode = 0x%X\n",
- pmlmepriv->ht_op_mode);
-
if (!(pmlmepriv->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) &&
pmlmepriv->num_sta_ht_no_gf) {
pmlmepriv->ht_op_mode |=
op_mode_changes++;
}
- netdev_dbg(padapter->pnetdev,
- "new operation mode = 0x%X changes = %d\n",
- pmlmepriv->ht_op_mode, op_mode_changes);
-
return op_mode_changes;
}
if (psta->flags & WLAN_STA_HT) {
u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
- netdev_dbg(padapter->pnetdev,
- "HT: STA %pM HT Capabilities Info: 0x%04x\n",
- (psta->hwaddr), ht_capab);
-
if (psta->no_ht_set) {
psta->no_ht_set = 0;
pmlmepriv->num_sta_no_ht--;
psta->no_ht_gf_set = 1;
pmlmepriv->num_sta_ht_no_gf++;
}
- netdev_dbg(padapter->pnetdev,
- "STA %pM - no greenfield, num of non-gf stations %d\n",
- (psta->hwaddr), pmlmepriv->num_sta_ht_no_gf);
}
if ((ht_capab & IEEE80211_HT_CAP_SUP_WIDTH_20_40) == 0) {
psta->ht_20mhz_set = 1;
pmlmepriv->num_sta_ht_20mhz++;
}
- netdev_dbg(padapter->pnetdev,
- "STA %pM - 20 MHz HT, num of 20MHz HT STAs %d\n",
- (psta->hwaddr), pmlmepriv->num_sta_ht_20mhz);
}
} else {
if (!psta->no_ht_set) {
pmlmepriv->num_sta_no_ht++;
}
if (pmlmepriv->htpriv.ht_option) {
- netdev_dbg(padapter->pnetdev,
- "STA %pM - no HT, num of non-HT stations %d\n",
- (psta->hwaddr), pmlmepriv->num_sta_no_ht);
}
}
/* update associated stations cap. */
associated_clients_update(padapter, beacon_updated);
-
- netdev_dbg(padapter->pnetdev, "updated = %d\n", beacon_updated);
}
u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
/* update associated stations cap. */
- netdev_dbg(padapter->pnetdev, "updated = %d\n", beacon_updated);
-
return beacon_updated;
}
}
spin_unlock_bh(&pacl_node_q->lock);
- netdev_dbg(padapter->pnetdev,
- "free acl_node_queue, num = %d\n",
- pacl_list->num);
-
rtw_sta_flush(padapter);
/* free_assoc_sta_resources */
_next:
if (padapter->bDriverStopped ||
padapter->bSurpriseRemoved) {
- netdev_dbg(padapter->pnetdev,
- "DriverStopped(%d) SurpriseRemoved(%d) break\n",
- padapter->bDriverStopped, padapter->bSurpriseRemoved);
break;
}
else
padapter->pwrctrlpriv.smart_ps = padapter->registrypriv.smart_ps;
- netdev_dbg(padapter->pnetdev, "smart_ps = %d\n", padapter->pwrctrlpriv.smart_ps);
-
pcmd->cmdsz = get_wlan_bssid_ex_sz(psecnetwork);/* get cmdsz before endian conversion */
INIT_LIST_HEAD(&pcmd->list);
txdma_status = rtw_read32(padapter, REG_TXDMA_STATUS);
if (txdma_status != 0x00) {
- netdev_dbg(padapter->pnetdev,
- "REG_TXDMA_STATUS: 0x%08x\n",
- txdma_status);
rtw_write32(padapter, REG_TXDMA_STATUS, txdma_status);
}
/* total xmit irp = 4 */
* sub-type. */
if (elen < 4) {
if (show_errors) {
- pr_debug("short vendor specific information element ignored (len=%lu)\n",
- (unsigned long)elen);
}
return -1;
}
break;
case WME_OUI_TYPE: /* this is a Wi-Fi WME info. element */
if (elen < 5) {
- pr_debug("short WME information element ignored (len=%lu)\n",
- (unsigned long)elen);
return -1;
}
switch (pos[4]) {
elems->wme_tspec_len = elen;
break;
default:
- pr_debug("unknown WME information element ignored (subtype=%d len=%lu)\n",
- pos[4], (unsigned long)elen);
return -1;
}
break;
elems->wps_ie_len = elen;
break;
default:
- pr_debug("Unknown Microsoft information element ignored (type=%d len=%lu)\n",
- pos[3], (unsigned long)elen);
return -1;
}
break;
elems->vendor_ht_cap_len = elen;
break;
default:
- pr_debug("Unknown Broadcom information element ignored (type=%d len=%lu)\n",
- pos[3], (unsigned long)elen);
return -1;
}
break;
default:
- pr_debug("unknown vendor specific information element ignored (vendor OUI %02x:%02x:%02x len=%lu)\n",
- pos[0], pos[1], pos[2], (unsigned long)elen);
return -1;
}
return 0;
if (elen > left) {
if (show_errors) {
- pr_debug("IEEE 802.11 element parse failed (id=%d elen=%d left=%lu)\n",
- id, elen, (unsigned long)left);
}
return ParseFailed;
}
unknown++;
if (!show_errors)
break;
- pr_debug("IEEE 802.11 element parse ignored unknown element (id=%d elen=%d)\n",
- id, elen);
break;
}
left -= elen;
if (is_broadcast_ether_addr(mac) || is_zero_ether_addr(mac)) {
eth_random_addr(mac_addr);
- pr_debug("MAC Address from efuse error, assign random one !!!\n");
}
-
- pr_debug("MAC Address = %pM\n", mac_addr);
}
/**
spin_lock_bh(&pmlmepriv->lock);
- netdev_dbg(padapter->pnetdev, "Set BSSID under fw_state = 0x%08x\n",
- get_fwstate(pmlmepriv));
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
goto handle_tkip_countermeasure;
else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
spin_lock_bh(&pmlmepriv->lock);
- netdev_dbg(padapter->pnetdev, "Set SSID under fw_state = 0x%08x\n",
- get_fwstate(pmlmepriv));
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
goto handle_tkip_countermeasure;
} else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) {
res = true;
} else {
if (rtw_is_scan_deny(padapter)) {
- netdev_dbg(padapter->pnetdev, "scan deny\n");
indicate_wx_scan_complete_event(padapter);
return _SUCCESS;
}
xmit_frame = rtw_alloc_xmitframe(pxmitpriv);
if (!xmit_frame) {
- netdev_dbg(adapter->pnetdev,
- "rtw_alloc_xmitframe return null\n");
return NULL;
}
xmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
if (!xmitbuf) {
- netdev_dbg(adapter->pnetdev,
- "rtw_alloc_xmitbuf return null\n");
rtw_free_xmitframe(pxmitpriv, xmit_frame);
return NULL;
}
/* check if the io_buf can accommodate new cmds */
if (ori_len + cmd_len + 8 > MAX_XMITBUF_SZ) {
- pr_debug("%u is larger than MAX_XMITBUF_SZ:%u, can't accommodate new cmds\n",
- ori_len + cmd_len + 8, MAX_XMITBUF_SZ);
return _FAIL;
}
}
if ((desired_encmode != Ndis802_11EncryptionDisabled) && (privacy == 0)) {
- netdev_dbg(adapter->pnetdev,
- "desired_encmode: %d, privacy: %d\n",
- desired_encmode, privacy);
bselected = false;
}
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
rtw_indicate_connect(adapter);
} else {
- netdev_dbg(adapter->pnetdev,
- "try_to_join, but select scanning queue fail, to_roaming:%d\n",
- pmlmepriv->to_roaming);
if (rtw_to_roaming(adapter) != 0) {
if (--pmlmepriv->to_roaming == 0 ||
_SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)) {
else
mac_id = pstadel->mac_id;
- netdev_dbg(adapter->pnetdev,
- "(mac_id=%d)=%pM\n",
- mac_id, pstadel->macaddr);
-
if (mac_id >= 0) {
u16 media_status;
media_status = (mac_id << 8) | 0; /* MACID|OPMODE:0 means disconnect */
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
int do_join_r;
- netdev_dbg(adapter->pnetdev, "fw_state=%x\n", get_fwstate(pmlmepriv));
-
if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
return;
while (1) {
pmlmepriv->to_roaming--;
if (rtw_to_roaming(adapter) != 0) { /* try another */
- netdev_dbg(adapter->pnetdev,
- "try another roaming\n");
do_join_r = rtw_do_join(adapter);
if (_SUCCESS != do_join_r) {
- netdev_dbg(adapter->pnetdev,
- "roaming do_join return %d\n",
- do_join_r);
continue;
}
break;
} else {
- netdev_dbg(adapter->pnetdev,
- "We've tried roaming but failed\n");
rtw_indicate_disconnect(adapter);
break;
}
{
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
- netdev_dbg(adapter->pnetdev, "fw_state=%x\n", get_fwstate(pmlmepriv));
spin_lock_bh(&pmlmepriv->lock);
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
spin_unlock_bh(&pmlmepriv->lock);
updated = true;
}
if (updated) {
- netdev_dbg(adapter->pnetdev,
- "[by_bssid:%u][assoc_ssid:%s]new candidate: %s(%pM rssi:%d\n",
- pmlmepriv->assoc_by_bssid,
- pmlmepriv->assoc_ssid.Ssid,
- (*candidate)->network.Ssid.Ssid,
- (*candidate)->network.MacAddress,
- (int)(*candidate)->network.Rssi);
- netdev_dbg(adapter->pnetdev,
- "[to_roaming:%u]\n", rtw_to_roaming(adapter));
}
exit:
rtw_check_join_candidate(pmlmepriv, &candidate, pnetwork);
}
if (!candidate) {
- netdev_dbg(adapter->pnetdev,
- "return _FAIL(candidate==NULL)\n");
ret = _FAIL;
goto exit;
} else {
- netdev_dbg(adapter->pnetdev, "candidate: %s(%pM ch:%u)\n",
- candidate->network.Ssid.Ssid, candidate->network.MacAddress,
- candidate->network.Configuration.DSConfig);
}
/* check for situation of _FW_LINKED */
if (check_fwstate(pmlmepriv, _FW_LINKED)) {
- netdev_dbg(adapter->pnetdev,
- "_FW_LINKED while ask_for_joinbss!!!\n");
-
rtw_disassoc_cmd(adapter, 0, true);
rtw_indicate_disconnect(adapter);
rtw_free_assoc_resources(adapter, 0);
if (supp_ant_div) {
u8 cur_ant;
GetHalDefVar8188EUsb(adapter, HAL_DEF_CURRENT_ANTENNA, &cur_ant);
- netdev_dbg(adapter->pnetdev, "Opt_Ant_(%s), cur_Ant(%s)\n",
- (candidate->network.PhyInfo.Optimum_antenna == 2) ? "A" : "B",
- (cur_ant == 2) ? "A" : "B");
}
ret = rtw_joinbss_cmd(adapter, candidate);
psetkeyparm->keyid = (u8)keyid;/* 0~3 */
psetkeyparm->set_tx = set_tx;
pmlmepriv->key_mask |= BIT(psetkeyparm->keyid);
- netdev_dbg(adapter->pnetdev,
- "algorithm(%x), keyid(%x), key_mask(%x)\n",
- psetkeyparm->algorithm, psetkeyparm->keyid,
- pmlmepriv->key_mask);
switch (psetkeyparm->algorithm) {
case _WEP40_:
/* Config SM Power Save setting */
pmlmeinfo->SM_PS = (le16_to_cpu(pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info) & 0x0C) >> 2;
if (pmlmeinfo->SM_PS == WLAN_HT_CAP_SM_PS_STATIC)
- netdev_dbg(padapter->pnetdev, "WLAN_HT_CAP_SM_PS_STATIC\n");
+ ;
/* Config current HT Protection mode. */
pmlmeinfo->HT_protection = pmlmeinfo->HT_info.infos[1] & 0x3;
issued |= (phtpriv->candidate_tid_bitmap >> priority) & 0x1;
if (0 == issued) {
- netdev_dbg(padapter->pnetdev, "p=%d\n", priority);
psta->htpriv.candidate_tid_bitmap |= BIT((u8)priority);
rtw_addbareq_cmd(padapter, (u8)priority, pattrib->ra);
}
pnetwork = &pmlmepriv->cur_network;
if (0 < rtw_to_roaming(padapter)) {
- netdev_dbg(padapter->pnetdev,
- "roaming from %s(%pM length:%d\n",
- pnetwork->network.Ssid.Ssid,
- pnetwork->network.MacAddress,
- pnetwork->network.Ssid.SsidLength);
memcpy(&pmlmepriv->assoc_ssid, &pnetwork->network.Ssid, sizeof(struct ndis_802_11_ssid));
pmlmepriv->assoc_by_bssid = false;
if (_SUCCESS == do_join_r) {
break;
} else {
- netdev_dbg(padapter->pnetdev,
- "roaming do_join return %d\n",
- do_join_r);
pmlmepriv->to_roaming--;
if (0 < pmlmepriv->to_roaming) {
continue;
} else {
- netdev_dbg(padapter->pnetdev,
- "-to roaming fail, indicate_disconnect\n");
rtw_indicate_disconnect(padapter);
break;
}
if (is_multicast_ether_addr(prxattrib->ra)) {
if (!psecuritypriv->binstallGrpkey) {
res = _FAIL;
- netdev_dbg(padapter->pnetdev,
- "rx bc/mc packets, but didn't install group key!\n");
goto exit;
}
prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey;
/* compare the mic */
for (i = 0; i < 8; i++) {
if (pframe[hdrlen + 8 + plen - 8 + i] != message[hdrlen + 8 + plen - 8 + i]) {
- netdev_dbg(padapter->pnetdev,
- "mic check error mic[%d]: pframe(%x)!=message(%x)\n",
- i, pframe[hdrlen + 8 + plen - 8 + i],
- message[hdrlen + 8 + plen - 8 + i]);
res = _FAIL;
}
}
/* in concurrent we should use sw descrypt in group key, so we remove this message */
if (!psecuritypriv->binstallGrpkey) {
res = _FAIL;
- netdev_dbg(padapter->pnetdev,
- "rx bc/mc packets, but didn't install group key!\n");
goto exit;
}
prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey;
if (psecuritypriv->dot118021XGrpKeyid != prxattrib->key_index) {
- netdev_dbg(padapter->pnetdev,
- "not match packet_index=%d, install_index=%d\n",
- prxattrib->key_index,
- psecuritypriv->dot118021XGrpKeyid);
res = _FAIL;
goto exit;
}
int offset = (((u8 *)sta) - stapriv->pstainfo_buf) / sizeof(struct sta_info);
if (!stainfo_offset_valid(offset))
- pr_debug("invalid offset(%d), out of range!!!", offset);
+ ;
return offset;
}
inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int offset)
{
if (!stainfo_offset_valid(offset))
- pr_debug("invalid offset(%d), out of range!!!", offset);
+ ;
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
}
change_priority = 5;
break;
default:
- pr_debug("invalid pattrib->priority: %d!!!\n", priority);
break;
}
return _FAIL;
if (!pxmitframe->buf_addr) {
- netdev_dbg(padapter->pnetdev, "buf_addr == NULL\n");
return _FAIL;
}
mem_start = pbuf_start + hw_hdr_offset;
if (rtw_make_wlanhdr(padapter, mem_start, pattrib) == _FAIL) {
- netdev_dbg(padapter->pnetdev,
- "rtw_make_wlanhdr fail; drop pkt\n");
res = _FAIL;
goto exit;
}
}
if (xmitframe_addmic(padapter, pxmitframe) == _FAIL) {
- netdev_dbg(padapter->pnetdev,
- "xmitframe_addmic(padapter, pxmitframe) == _FAIL\n");
res = _FAIL;
goto exit;
}
/* pxmitbuf->ext_tag = true; */
if (pxmitbuf->sctx) {
- pr_debug("pxmitbuf->sctx is not NULL\n");
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
}
}
pxmitpriv->free_xmitbuf_cnt--;
pxmitbuf->priv_data = NULL;
if (pxmitbuf->sctx) {
- pr_debug("pxmitbuf->sctx is not NULL\n");
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_ALLOC);
}
}
return _FAIL;
if (pxmitbuf->sctx) {
- pr_debug("pxmitbuf->sctx is not NULL\n");
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_BUF_FREE);
}
if (!psta) {
res = _FAIL;
- netdev_dbg(padapter->pnetdev, "psta == NULL\n");
goto exit;
}
pxmitframe = rtw_alloc_xmitframe(pxmitpriv);
if (!pxmitframe) {
- netdev_dbg(padapter->pnetdev,
- "DBG_TX_DROP_FRAME no more pxmitframe\n");
return -1;
}
if (!wait_for_completion_timeout(&sctx->done, expire)) {
/* timeout, do something?? */
status = RTW_SCTX_DONE_TIMEOUT;
- pr_debug("timeout\n");
} else {
status = sctx->status;
}
{
if (*sctx) {
if (rtw_sctx_chk_waring_status(status))
- pr_debug("status:%d\n", status);
+ ;
(*sctx)->status = status;
complete(&((*sctx)->done));
*sctx = NULL;
if (pxmitpriv->ack_tx)
rtw_sctx_done_err(&pack_tx_ops, status);
- else
- pr_debug("ack_tx not set\n");
}
if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||
padapter->bWritePortCancel) {
- netdev_dbg(padapter->pnetdev,
- "TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d)\n",
- padapter->bDriverStopped, padapter->bSurpriseRemoved);
- netdev_dbg(padapter->pnetdev,
- "TX Warning! bWritePortCancel(%d) pxmitbuf->ext_tag(%x)\n",
- padapter->bReadPortCancel, pxmitbuf->ext_tag);
-
goto check_completion;
}
if (purb->status) {
- netdev_dbg(padapter->pnetdev, "status(%d)\n", purb->status);
if (purb->status == -EINPROGRESS) {
goto check_completion;
} else if (purb->status == -ENOENT) {
- netdev_dbg(padapter->pnetdev, "-ENOENT\n");
goto check_completion;
} else if (purb->status == -ECONNRESET) {
- netdev_dbg(padapter->pnetdev, "-ECONNRESET\n");
goto check_completion;
} else if (purb->status == -ESHUTDOWN) {
padapter->bDriverStopped = true;
goto check_completion;
} else if ((purb->status != -EPIPE) && (purb->status != -EPROTO)) {
padapter->bSurpriseRemoved = true;
- netdev_dbg(padapter->pnetdev, "bSurpriseRemoved = true\n");
goto check_completion;
}
status = usb_submit_urb(purb, GFP_ATOMIC);
if (status) {
rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_WRITE_PORT_ERR);
- netdev_dbg(padapter->pnetdev, "usb_write_port, status = %d\n", status);
switch (status) {
case -ENODEV:
for (i = 0; i < 8; i++) {
pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
if (!pxmitbuf->pxmit_urb[i]) {
- netdev_dbg(padapter->pnetdev, "pxmitbuf->pxmit_urb[i]==NULL");
return _FAIL;
}
}
memcpy(newskb->data, psta->hwaddr, 6);
res = rtw_xmit(padapter, &newskb);
if (res < 0) {
- netdev_dbg(padapter->pnetdev, "rtw_xmit() return error!\n");
pxmitpriv->tx_drop++;
dev_kfree_skb_any(newskb);
} else {
pxmitpriv->tx_pkts++;
}
} else {
- netdev_dbg(padapter->pnetdev, "skb_copy() failed!\n");
pxmitpriv->tx_drop++;
spin_unlock_bh(&pstapriv->asoc_list_lock);