/drivers/staging/rtl8712/ |
D | rtl871x_xmit.c | 185 struct pkt_attrib *pattrib) in r8712_update_attrib() argument 204 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib() 210 if (pattrib->ether_type == 0x0806) { in r8712_update_attrib() 219 memcpy(pattrib->dst, ðerhdr.h_dest, ETH_ALEN); in r8712_update_attrib() 220 memcpy(pattrib->src, ðerhdr.h_source, ETH_ALEN); in r8712_update_attrib() 221 pattrib->pctrl = 0; in r8712_update_attrib() 224 memcpy(pattrib->ra, pattrib->dst, ETH_ALEN); in r8712_update_attrib() 225 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib() 227 memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib() 228 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib() [all …]
|
D | rtl871x_recv.c | 319 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in sta2sta_data_frame() local 325 sint bmcast = IS_MCAST(pattrib->dst); in sta2sta_data_frame() 330 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in sta2sta_data_frame() 332 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in sta2sta_data_frame() 334 if (is_zero_ether_addr(pattrib->bssid) || in sta2sta_data_frame() 336 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in sta2sta_data_frame() 338 sta_addr = pattrib->src; in sta2sta_data_frame() 342 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) in sta2sta_data_frame() 344 sta_addr = pattrib->bssid; in sta2sta_data_frame() 349 if (!IS_MCAST(pattrib->bssid)) in sta2sta_data_frame() [all …]
|
D | rtl8712_xmit.c | 65 struct pkt_attrib *pattrib) in r8712_txframes_sta_ac_pending() argument 69 int priority = pattrib->priority; in r8712_txframes_sta_ac_pending() 71 psta = pattrib->psta; in r8712_txframes_sta_ac_pending() 97 struct pkt_attrib *pattrib = &pxmitframe->attrib; in get_ff_hwaddr() local 106 switch (pattrib->priority) { in get_ff_hwaddr() 134 switch (pattrib->qsel) { in get_ff_hwaddr() 241 struct pkt_attrib *pattrib) in r8712_do_queue_select() argument 247 qsel = (unsigned int) pattrib->priority; in r8712_do_queue_select() 249 qsel = (unsigned int) pattrib->priority; in r8712_do_queue_select() 261 pattrib->qsel = qsel; in r8712_do_queue_select() [all …]
|
D | rtl8712_recv.c | 158 static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, in update_recvframe_attrib_from_recvstat() argument 169 pattrib->bdecrypted = ((le32_to_cpu(prxstat->rxdw0) & BIT(27)) >> 27) in update_recvframe_attrib_from_recvstat() 171 pattrib->crc_err = ((le32_to_cpu(prxstat->rxdw0) & BIT(14)) >> 14); in update_recvframe_attrib_from_recvstat() 176 pattrib->tcpchk_valid = 1; /* valid */ in update_recvframe_attrib_from_recvstat() 178 pattrib->tcp_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat() 180 pattrib->tcp_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat() 182 pattrib->ip_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat() 184 pattrib->ip_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat() 186 pattrib->tcpchk_valid = 0; /* invalid */ in update_recvframe_attrib_from_recvstat() 187 pattrib->mcs_rate = (u8)((le32_to_cpu(prxstat->rxdw3)) & 0x3f); in update_recvframe_attrib_from_recvstat() [all …]
|
D | rtl871x_security.c | 174 struct pkt_attrib *pattrib = &((struct xmit_frame *) in r8712_wep_encrypt() local 183 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt() 186 for (curfragnum = 0; curfragnum < pattrib->nr_frags; in r8712_wep_encrypt() 188 iv = pframe+pattrib->hdrlen; in r8712_wep_encrypt() 193 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in r8712_wep_encrypt() 194 if ((curfragnum + 1) == pattrib->nr_frags) { in r8712_wep_encrypt() 195 length = pattrib->last_txcmdsz-pattrib-> in r8712_wep_encrypt() 196 hdrlen-pattrib->iv_len - in r8712_wep_encrypt() 197 pattrib->icv_len; in r8712_wep_encrypt() 206 length = pxmitpriv->frag_len-pattrib->hdrlen - in r8712_wep_encrypt() [all …]
|
D | xmit_linux.c | 80 void r8712_set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib) in r8712_set_qos() argument 91 if (pattrib->ether_type == 0x0800) { in r8712_set_qos() 101 if (pattrib->ether_type == 0x888e) in r8712_set_qos() 104 pattrib->priority = UserPriority; in r8712_set_qos() 105 pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN; in r8712_set_qos() 106 pattrib->subtype = WIFI_QOS_DATA_TYPE; in r8712_set_qos()
|
/drivers/staging/rtl8723au/core/ |
D | rtw_xmit.c | 252 struct pkt_attrib *pattrib = &pxmitframe->attrib; in update_attrib_vcs_info() local 253 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() 257 if (pattrib->psta) { in update_attrib_vcs_info() 258 psta = pattrib->psta; in update_attrib_vcs_info() 261 psta = rtw_get_stainfo23a(&padapter->stapriv, &pattrib->ra[0]); in update_attrib_vcs_info() 274 if (pattrib->nr_frags != 1) in update_attrib_vcs_info() 277 sz = pattrib->last_txcmdsz; in update_attrib_vcs_info() 285 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info() 288 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info() 290 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info() [all …]
|
D | rtw_recv.c | 552 struct rx_pkt_attrib *pattrib; in portctrl() local 559 pattrib = &pfhdr->attrib; in portctrl() 560 psta_addr = pattrib->ta; in portctrl() 597 if (pattrib->bdecrypted == 0) { in portctrl() 600 pattrib->bdecrypted)); in portctrl() 672 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process23a_pwrbit_data() local 676 psta = rtw_get_stainfo23a(pstapriv, pattrib->src); in process23a_pwrbit_data() 699 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process_wmmps_data() local 703 psta = rtw_get_stainfo23a(pstapriv, pattrib->src); in process_wmmps_data() 718 switch (pattrib->priority) { in process_wmmps_data() [all …]
|
D | rtw_security.c | 161 struct pkt_attrib *pattrib = &pxmitframe->attrib; in rtw_wep_encrypt23a() local 173 if (pattrib->encrypt != WLAN_CIPHER_SUITE_WEP40 && in rtw_wep_encrypt23a() 174 pattrib->encrypt != WLAN_CIPHER_SUITE_WEP104) in rtw_wep_encrypt23a() 180 for (curfragnum = 0; curfragnum < pattrib->nr_frags ; curfragnum++) { in rtw_wep_encrypt23a() 181 iv = pframe + pattrib->hdrlen; in rtw_wep_encrypt23a() 185 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_wep_encrypt23a() 187 if ((curfragnum + 1) == pattrib->nr_frags) { in rtw_wep_encrypt23a() 189 length = pattrib->last_txcmdsz - pattrib->hdrlen - in rtw_wep_encrypt23a() 190 pattrib->iv_len- pattrib->icv_len; in rtw_wep_encrypt23a() 198 length = pxmitpriv->frag_len - pattrib->hdrlen - in rtw_wep_encrypt23a() [all …]
|
D | rtw_mlme_ext.c | 2229 struct pkt_attrib *pattrib) in update_mgntframe_attrib23a() argument 2233 memset((u8 *)pattrib, 0, sizeof(struct pkt_attrib)); in update_mgntframe_attrib23a() 2235 pattrib->hdrlen = 24; in update_mgntframe_attrib23a() 2236 pattrib->nr_frags = 1; in update_mgntframe_attrib23a() 2237 pattrib->priority = 7; in update_mgntframe_attrib23a() 2238 pattrib->mac_id = 0; in update_mgntframe_attrib23a() 2239 pattrib->qsel = 0x12; in update_mgntframe_attrib23a() 2241 pattrib->pktlen = 0; in update_mgntframe_attrib23a() 2244 pattrib->raid = 6;/* b mode */ in update_mgntframe_attrib23a() 2246 pattrib->raid = 5;/* a/g mode */ in update_mgntframe_attrib23a() [all …]
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_xmit.c | 274 struct pkt_attrib *pattrib = &pxmitframe->attrib; in update_attrib_vcs_info() local 275 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() 279 if (pattrib->nr_frags != 1) in update_attrib_vcs_info() 282 sz = pattrib->last_txcmdsz; in update_attrib_vcs_info() 290 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info() 293 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info() 295 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info() 297 pattrib->vcs_mode = NONE_VCS; in update_attrib_vcs_info() 302 if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && pattrib->ampdu_en && in update_attrib_vcs_info() 304 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info() [all …]
|
D | rtw_recv.c | 498 struct rx_pkt_attrib *pattrib; in portctrl() local 508 pattrib = &pfhdr->attrib; in portctrl() 509 psta_addr = pattrib->ta; in portctrl() 542 if (pattrib->bdecrypted == 0) in portctrl() 543 …RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("portctrl:prxstat->decrypted=%x\n", pattrib->bdecry… in portctrl() 599 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process_pwrbit_data() local 603 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 624 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process_wmmps_data() local 628 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data() 642 switch (pattrib->priority) { in process_wmmps_data() [all …]
|
D | rtw_mlme_ext.c | 1866 void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib) in update_mgntframe_attrib() argument 1870 memset((u8 *)(pattrib), 0, sizeof(struct pkt_attrib)); in update_mgntframe_attrib() 1872 pattrib->hdrlen = 24; in update_mgntframe_attrib() 1873 pattrib->nr_frags = 1; in update_mgntframe_attrib() 1874 pattrib->priority = 7; in update_mgntframe_attrib() 1875 pattrib->mac_id = 0; in update_mgntframe_attrib() 1876 pattrib->qsel = 0x12; in update_mgntframe_attrib() 1878 pattrib->pktlen = 0; in update_mgntframe_attrib() 1881 pattrib->raid = 6;/* b mode */ in update_mgntframe_attrib() 1883 pattrib->raid = 5;/* a/g mode */ in update_mgntframe_attrib() [all …]
|
D | rtw_security.c | 153 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt() local 167 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt() 170 for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) { in rtw_wep_encrypt() 171 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt() 174 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt() 176 if ((curfragnum+1) == pattrib->nr_frags) { /* the last fragment */ in rtw_wep_encrypt() 177 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 185 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 576 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_tkip_encrypt() local 588 if (pattrib->encrypt == _TKIP_) { in rtw_tkip_encrypt() [all …]
|
/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_rxdesc.c | 28 struct rx_pkt_attrib *pattrib = &prframe->attrib; in process_rssi() local 38 signal_stat->total_val += pattrib->phy_info.SignalStrength; in process_rssi() 45 struct rx_pkt_attrib *pattrib; in process_link_qual() local 51 pattrib = &prframe->attrib; in process_link_qual() 61 signal_stat->total_val += pattrib->phy_info.SignalQuality; in process_link_qual() 78 struct rx_pkt_attrib *pattrib; in update_recvframe_attrib_88e() local 88 pattrib = &precvframe->attrib; in update_recvframe_attrib_88e() 89 memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); in update_recvframe_attrib_88e() 91 pattrib->crc_err = (u8)((le32_to_cpu(report.rxdw0) >> 14) & 0x1);/* u8)prxreport->crc32; */ in update_recvframe_attrib_88e() 94 pattrib->pkt_rpt_type = (u8)((le32_to_cpu(report.rxdw3) >> 14) & 0x3);/* prxreport->rpt_sel; */ in update_recvframe_attrib_88e() [all …]
|
D | rtl8188eu_xmit.c | 102 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype() argument 104 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype() 105 switch (pattrib->encrypt) { in fill_txdesc_sectype() 128 static void fill_txdesc_vcs(struct pkt_attrib *pattrib, __le32 *pdw) in fill_txdesc_vcs() argument 130 switch (pattrib->vcs_mode) { in fill_txdesc_vcs() 141 if (pattrib->vcs_mode) { in fill_txdesc_vcs() 144 if (pattrib->ht_en) { in fill_txdesc_vcs() 145 *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40) ? cpu_to_le32(BIT(27)) : 0; in fill_txdesc_vcs() 147 if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER) in fill_txdesc_vcs() 149 else if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER) in fill_txdesc_vcs() [all …]
|
/drivers/staging/rtl8723au/hal/ |
D | rtl8723au_xmit.c | 24 static void do_queue_select(struct rtw_adapter *padapter, struct pkt_attrib *pattrib) in do_queue_select() argument 28 qsel = pattrib->priority; in do_queue_select() 31 pattrib->priority, qsel)); in do_queue_select() 33 pattrib->qsel = qsel; in do_queue_select() 71 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype() argument 73 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype() 74 switch (pattrib->encrypt) { in fill_txdesc_sectype() 94 static void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw) in fill_txdesc_vcs() argument 98 switch (pattrib->vcs_mode) { in fill_txdesc_vcs() 110 if (pattrib->vcs_mode) { in fill_txdesc_vcs() [all …]
|
D | rtl8723au_recv.c | 140 struct rx_pkt_attrib *pattrib; in update_recvframe_attrib() local 153 pattrib = &precvframe->attrib; in update_recvframe_attrib() 154 memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); in update_recvframe_attrib() 157 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib() 158 pattrib->drvinfo_sz = (u8)(prxreport->drvinfosize << 3); in update_recvframe_attrib() 159 pattrib->physt = (u8)prxreport->physt; in update_recvframe_attrib() 161 pattrib->crc_err = (u8)prxreport->crc32; in update_recvframe_attrib() 162 pattrib->icv_err = (u8)prxreport->icverr; in update_recvframe_attrib() 164 pattrib->bdecrypted = (u8)(prxreport->swdec ? 0 : 1); in update_recvframe_attrib() 165 pattrib->encrypt = (u8)prxreport->security; in update_recvframe_attrib() [all …]
|
D | rtl8723a_rxdesc.c | 24 struct rx_pkt_attrib *pattrib = &prframe->attrib; in process_rssi() local 34 signal_stat->total_val += pattrib->phy_info.SignalStrength; in process_rssi() 41 struct rx_pkt_attrib *pattrib; in process_link_qual() local 47 pattrib = &prframe->attrib; in process_link_qual() 57 signal_stat->total_val += pattrib->phy_info.SignalQuality; in process_link_qual()
|
D | usb_ops_linux.c | 358 struct rx_pkt_attrib *pattrib; in recvbuf2recvframe() local 389 pattrib = &precvframe->attrib; in recvbuf2recvframe() 391 if (pattrib->crc_err) { in recvbuf2recvframe() 398 pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + in recvbuf2recvframe() 399 pattrib->shift_sz + pattrib->pkt_len; in recvbuf2recvframe() 401 if (pattrib->pkt_len <= 0 || pkt_offset > transfer_len) { in recvbuf2recvframe() 413 if (pattrib->qos) in recvbuf2recvframe() 418 skb_len = pattrib->pkt_len; in recvbuf2recvframe() 424 if (pattrib->mfrag == 1 && pattrib->frag_num == 0) { in recvbuf2recvframe() 447 memcpy(pkt_copy->data, pbuf + pattrib->shift_sz + in recvbuf2recvframe() [all …]
|
D | rtl8723a_hal_init.c | 1984 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, in fill_txdesc_sectype() argument 1987 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype() 1988 switch (pattrib->encrypt) { in fill_txdesc_sectype() 2007 static void fill_txdesc_vcs(struct pkt_attrib *pattrib, in fill_txdesc_vcs() argument 2012 switch (pattrib->vcs_mode) { in fill_txdesc_vcs() 2026 if (pattrib->vcs_mode) { in fill_txdesc_vcs() 2030 if (pattrib->ht_en) { in fill_txdesc_vcs() 2031 if (pattrib->bwmode & HT_CHANNEL_WIDTH_40) in fill_txdesc_vcs() 2034 switch (pattrib->ch_offset) { in fill_txdesc_vcs() 2055 static void fill_txdesc_phy(struct pkt_attrib *pattrib, in fill_txdesc_phy() argument [all …]
|
D | rtl8723a_cmd.c | 453 struct pkt_attrib *pattrib; in SetFwRsvdPagePkt() local 568 pattrib = &pmgntframe->attrib; in SetFwRsvdPagePkt() 569 update_mgntframe_attrib23a(padapter, pattrib); in SetFwRsvdPagePkt() 570 pattrib->qsel = 0x10; in SetFwRsvdPagePkt() 571 pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TXDESC_OFFSET; in SetFwRsvdPagePkt() 660 struct pkt_attrib *pattrib; in SetFwRsvdPagePkt_BTCoex() local 730 pattrib = &pmgntframe->attrib; in SetFwRsvdPagePkt_BTCoex() 731 update_mgntframe_attrib23a(padapter, pattrib); in SetFwRsvdPagePkt_BTCoex() 732 pattrib->qsel = 0x10; in SetFwRsvdPagePkt_BTCoex() 733 pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TXDESC_OFFSET; in SetFwRsvdPagePkt_BTCoex()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | usb_ops_linux.c | 54 struct rx_pkt_attrib *pattrib = NULL; in recvbuf2recvframe() local 84 pattrib = &precvframe->attrib; in recvbuf2recvframe() 86 if ((pattrib->crc_err) || (pattrib->icv_err)) { in recvbuf2recvframe() 87 …DBG_88E("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv… in recvbuf2recvframe() 93 if ((pattrib->physt) && (pattrib->pkt_rpt_type == NORMAL_RX)) in recvbuf2recvframe() 96 pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + pattrib->shift_sz + pattrib->pkt_len; in recvbuf2recvframe() 98 if ((pattrib->pkt_len <= 0) || (pkt_offset > transfer_len)) { in recvbuf2recvframe() 107 if (pattrib->qos) /* Qos data, wireless lan header length is 26 */ in recvbuf2recvframe() 112 skb_len = pattrib->pkt_len; in recvbuf2recvframe() 116 if ((pattrib->mfrag == 1) && (pattrib->frag_num == 0)) { in recvbuf2recvframe() [all …]
|
D | recv_linux.c | 134 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in rtw_recv_indicatepkt() local 135 int bmcast = IS_MCAST(pattrib->dst); in rtw_recv_indicatepkt() 137 if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), in rtw_recv_indicatepkt() 143 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
|
/drivers/staging/rtl8723au/os_dep/ |
D | recv_linux.c | 102 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in rtw_recv_indicatepkt23a() local 103 int bmcast = is_multicast_ether_addr(pattrib->dst); in rtw_recv_indicatepkt23a() 107 if (!ether_addr_equal(pattrib->dst, in rtw_recv_indicatepkt23a() 114 psta = rtw_get_stainfo23a(pstapriv, pattrib->dst); in rtw_recv_indicatepkt23a()
|