Home
last modified time | relevance | path

Searched refs:pattrib (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_xmit.c188 struct pkt_attrib *pattrib) in r8712_update_attrib() argument
206 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib()
212 if (pattrib->ether_type == 0x0806) { in r8712_update_attrib()
222 memcpy(pattrib->dst, &etherhdr.h_dest, ETH_ALEN); in r8712_update_attrib()
223 memcpy(pattrib->src, &etherhdr.h_source, ETH_ALEN); in r8712_update_attrib()
224 pattrib->pctrl = 0; in r8712_update_attrib()
227 memcpy(pattrib->ra, pattrib->dst, ETH_ALEN); in r8712_update_attrib()
228 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib()
230 memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib()
231 memcpy(pattrib->ta, pattrib->src, ETH_ALEN); in r8712_update_attrib()
[all …]
Drtl871x_recv.c314 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in sta2sta_data_frame() local
320 sint bmcast = IS_MCAST(pattrib->dst); in sta2sta_data_frame()
325 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
327 if ((memcmp(myhwaddr, pattrib->dst, ETH_ALEN)) && (!bmcast)) in sta2sta_data_frame()
329 if (is_zero_ether_addr(pattrib->bssid) || in sta2sta_data_frame()
331 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) in sta2sta_data_frame()
333 sta_addr = pattrib->src; in sta2sta_data_frame()
338 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) in sta2sta_data_frame()
340 sta_addr = pattrib->bssid; in sta2sta_data_frame()
346 if (!IS_MCAST(pattrib->bssid)) in sta2sta_data_frame()
[all …]
Drtl8712_xmit.c65 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()
237 struct pkt_attrib *pattrib) in r8712_do_queue_select() argument
243 qsel = (unsigned int) pattrib->priority; in r8712_do_queue_select()
245 qsel = (unsigned int) pattrib->priority; in r8712_do_queue_select()
257 pattrib->qsel = qsel; in r8712_do_queue_select()
[all …]
Drtl8712_recv.c158 static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, in update_recvframe_attrib_from_recvstat() argument
168 pattrib->bdecrypted = ((le32_to_cpu(prxstat->rxdw0) & BIT(27)) >> 27) in update_recvframe_attrib_from_recvstat()
170 pattrib->crc_err = (le32_to_cpu(prxstat->rxdw0) & BIT(14)) >> 14; in update_recvframe_attrib_from_recvstat()
175 pattrib->tcpchk_valid = 1; /* valid */ in update_recvframe_attrib_from_recvstat()
177 pattrib->tcp_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat()
179 pattrib->tcp_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat()
181 pattrib->ip_chkrpt = 1; /* correct */ in update_recvframe_attrib_from_recvstat()
183 pattrib->ip_chkrpt = 0; /* incorrect */ in update_recvframe_attrib_from_recvstat()
185 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 …]
Drtl871x_security.c170 struct pkt_attrib *pattrib = &((struct xmit_frame *) in r8712_wep_encrypt() local
179 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt()
182 for (curfragnum = 0; curfragnum < pattrib->nr_frags; in r8712_wep_encrypt()
184 iv = pframe + pattrib->hdrlen; in r8712_wep_encrypt()
189 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in r8712_wep_encrypt()
190 if ((curfragnum + 1) == pattrib->nr_frags) { in r8712_wep_encrypt()
191 length = pattrib->last_txcmdsz - in r8712_wep_encrypt()
192 pattrib->hdrlen - in r8712_wep_encrypt()
193 pattrib->iv_len - in r8712_wep_encrypt()
194 pattrib->icv_len; in r8712_wep_encrypt()
[all …]
Dxmit_linux.c78 void r8712_set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib) in r8712_set_qos() argument
88 if (pattrib->ether_type == 0x0800) { in r8712_set_qos()
98 if (pattrib->ether_type == 0x888e) in r8712_set_qos()
101 pattrib->priority = UserPriority; in r8712_set_qos()
102 pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN; in r8712_set_qos()
103 pattrib->subtype = WIFI_QOS_DATA_TYPE; in r8712_set_qos()
Drecv_linux.c112 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in r8712_recv_indicatepkt() local
122 if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) in r8712_recv_indicatepkt()
/Linux-v4.19/drivers/staging/rtl8188eu/hal/
Drtl8188e_rxdesc.c15 struct rx_pkt_attrib *pattrib = &prframe->attrib; in process_rssi() local
25 signal_stat->total_val += pattrib->phy_info.SignalStrength; in process_rssi()
32 struct rx_pkt_attrib *pattrib; in process_link_qual() local
38 pattrib = &prframe->attrib; in process_link_qual()
48 signal_stat->total_val += pattrib->phy_info.SignalQuality; in process_link_qual()
64 struct rx_pkt_attrib *pattrib; in update_recvframe_attrib_88e() local
74 pattrib = &precvframe->attrib; in update_recvframe_attrib_88e()
75 memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); in update_recvframe_attrib_88e()
77 pattrib->crc_err = (u8)((le32_to_cpu(report.rxdw0) >> 14) & 0x1);/* u8)prxreport->crc32; */ in update_recvframe_attrib_88e()
80 pattrib->pkt_rpt_type = (u8)((le32_to_cpu(report.rxdw3) >> 14) & 0x3);/* prxreport->rpt_sel; */ in update_recvframe_attrib_88e()
[all …]
Drtl8188eu_xmit.c88 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype() argument
90 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype()
91 switch (pattrib->encrypt) { in fill_txdesc_sectype()
114 static void fill_txdesc_vcs(struct pkt_attrib *pattrib, __le32 *pdw) in fill_txdesc_vcs() argument
116 switch (pattrib->vcs_mode) { in fill_txdesc_vcs()
127 if (pattrib->vcs_mode) { in fill_txdesc_vcs()
130 if (pattrib->ht_en) { in fill_txdesc_vcs()
131 *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40) ? cpu_to_le32(BIT(27)) : 0; in fill_txdesc_vcs()
133 if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER) in fill_txdesc_vcs()
135 else if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_UPPER) in fill_txdesc_vcs()
[all …]
Drtl8188e_cmd.c439 struct pkt_attrib *pattrib; in SetFwRsvdPagePkt() local
527 pattrib = &pmgntframe->attrib; in SetFwRsvdPagePkt()
528 update_mgntframe_attrib(adapt, pattrib); in SetFwRsvdPagePkt()
529 pattrib->qsel = 0x10; in SetFwRsvdPagePkt()
530 pattrib->last_txcmdsz = TotalPacketLen - TXDESC_OFFSET; in SetFwRsvdPagePkt()
531 pattrib->pktlen = pattrib->last_txcmdsz; in SetFwRsvdPagePkt()
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_xmit.c247 struct pkt_attrib *pattrib = &pxmitframe->attrib; in update_attrib_vcs_info() local
248 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info()
252 if (pattrib->nr_frags != 1) in update_attrib_vcs_info()
255 sz = pattrib->last_txcmdsz; in update_attrib_vcs_info()
263 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
266 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
268 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info()
270 pattrib->vcs_mode = NONE_VCS; in update_attrib_vcs_info()
275 if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && pattrib->ampdu_en && in update_attrib_vcs_info()
277 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info()
[all …]
Drtw_recv.c430 struct rx_pkt_attrib *pattrib; in portctrl() local
439 pattrib = &pfhdr->attrib; in portctrl()
440 psta_addr = pattrib->ta; in portctrl()
473 if (pattrib->bdecrypted == 0) in portctrl()
474 …RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("%s:prxstat->decrypted=%x\n", __func__, pattrib->bd… in portctrl()
527 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process_pwrbit_data() local
531 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
552 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in process_wmmps_data() local
556 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
570 switch (pattrib->priority) { in process_wmmps_data()
[all …]
Drtw_mlme_ext.c190 void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib) in update_mgntframe_attrib() argument
194 memset((u8 *)(pattrib), 0, sizeof(struct pkt_attrib)); in update_mgntframe_attrib()
196 pattrib->hdrlen = 24; in update_mgntframe_attrib()
197 pattrib->nr_frags = 1; in update_mgntframe_attrib()
198 pattrib->priority = 7; in update_mgntframe_attrib()
199 pattrib->mac_id = 0; in update_mgntframe_attrib()
200 pattrib->qsel = 0x12; in update_mgntframe_attrib()
202 pattrib->pktlen = 0; in update_mgntframe_attrib()
205 pattrib->raid = 6;/* b mode */ in update_mgntframe_attrib()
207 pattrib->raid = 5;/* a/g mode */ in update_mgntframe_attrib()
[all …]
Drtw_security.c138 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt() local
149 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 if (curfragnum + 1 == pattrib->nr_frags) in rtw_wep_encrypt()
172 length = pattrib->last_txcmdsz; in rtw_wep_encrypt()
181 memmove(skb->data + 4, skb->data, pattrib->hdrlen); in rtw_wep_encrypt()
185 if (crypto_ops->encrypt_mpdu(skb, pattrib->hdrlen, crypto_private)) { in rtw_wep_encrypt()
590 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_tkip_encrypt() local
602 if (pattrib->encrypt == _TKIP_) { in rtw_tkip_encrypt()
603 if (pattrib->psta) in rtw_tkip_encrypt()
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_xmit.c371 struct pkt_attrib *pattrib = &pxmitframe->attrib; in update_attrib_vcs_info() local
376 if (pattrib->nr_frags != 1) in update_attrib_vcs_info()
379 sz = pattrib->last_txcmdsz; in update_attrib_vcs_info()
387 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
389 if (pattrib->rtsen) in update_attrib_vcs_info()
390 pattrib->vcs_mode = RTS_CTS; in update_attrib_vcs_info()
391 else if (pattrib->cts2self) in update_attrib_vcs_info()
392 pattrib->vcs_mode = CTS_TO_SELF; in update_attrib_vcs_info()
394 pattrib->vcs_mode = NONE_VCS; in update_attrib_vcs_info()
399 if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && (pattrib->ampdu_en == true) && in update_attrib_vcs_info()
[all …]
Drtw_recv.c555 struct rx_pkt_attrib *pattrib; in portctrl() local
563 pattrib = &pfhdr->attrib; in portctrl()
564 psta_addr = pattrib->ta; in portctrl()
600 if (pattrib->bdecrypted == 0) in portctrl()
601 …RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("portctrl:prxstat->decrypted =%x\n", pattrib->bdecr… in portctrl()
654 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in process_pwrbit_data() local
658 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
689 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in process_wmmps_data() local
693 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
707 switch (pattrib->priority) { in process_wmmps_data()
[all …]
Drtw_mlme_ext.c2178 struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; in OnAction_sa_query() local
2201 printk("pattrib->pktlen = %d =>", pattrib->pkt_len); in OnAction_sa_query()
2202 for (pp = 0; pp < pattrib->pkt_len; pp++) in OnAction_sa_query()
2293 void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib) in update_mgntframe_attrib() argument
2300 pattrib->hdrlen = 24; in update_mgntframe_attrib()
2301 pattrib->nr_frags = 1; in update_mgntframe_attrib()
2302 pattrib->priority = 7; in update_mgntframe_attrib()
2303 pattrib->mac_id = 0; in update_mgntframe_attrib()
2304 pattrib->qsel = 0x12; in update_mgntframe_attrib()
2306 pattrib->pktlen = 0; in update_mgntframe_attrib()
[all …]
Drtw_security.c225 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt() local
236 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt()
239 for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) { in rtw_wep_encrypt()
240 iv = pframe+pattrib->hdrlen; in rtw_wep_encrypt()
243 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt()
245 if ((curfragnum+1) == pattrib->nr_frags) { /* the last fragment */ in rtw_wep_encrypt()
247 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
256 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
267 WEP_SW_ENC_CNT_INC(psecuritypriv, pattrib->ra); in rtw_wep_encrypt()
665 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_tkip_encrypt() local
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/hal/
Drtl8723bs_recv.c27 struct rx_pkt_attrib *pattrib; in update_recvframe_attrib() local
38 pattrib = &precvframe->u.hdr.attrib; in update_recvframe_attrib()
39 memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); in update_recvframe_attrib()
42 pattrib->pkt_rpt_type = prxreport->c2h_ind ? C2H_PACKET : NORMAL_RX; in update_recvframe_attrib()
45 if (pattrib->pkt_rpt_type == NORMAL_RX) { in update_recvframe_attrib()
48 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib()
49 pattrib->drvinfo_sz = (u8)(prxreport->drvinfosize << 3); in update_recvframe_attrib()
50 pattrib->physt = (u8)prxreport->physt; in update_recvframe_attrib()
52 pattrib->crc_err = (u8)prxreport->crc32; in update_recvframe_attrib()
53 pattrib->icv_err = (u8)prxreport->icverr; in update_recvframe_attrib()
[all …]
Drtl8723b_rxdesc.c13 struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; in process_rssi() local
26 signal_stat->total_val += pattrib->phy_info.SignalStrength; in process_rssi()
34 struct rx_pkt_attrib *pattrib; in process_link_qual() local
40 pattrib = &prframe->u.hdr.attrib; in process_link_qual()
52 signal_stat->total_val += pattrib->phy_info.SignalQuality; in process_link_qual()
Drtl8723b_hal_init.c2880 u8 BWMapping_8723B(struct adapter *Adapter, struct pkt_attrib *pattrib) in BWMapping_8723B() argument
2888 if (pattrib->bwmode == CHANNEL_WIDTH_80) in BWMapping_8723B()
2890 else if (pattrib->bwmode == CHANNEL_WIDTH_40) in BWMapping_8723B()
2895 if ((pattrib->bwmode == CHANNEL_WIDTH_40) || (pattrib->bwmode == CHANNEL_WIDTH_80)) in BWMapping_8723B()
2908 u8 SCMapping_8723B(struct adapter *Adapter, struct pkt_attrib *pattrib) in SCMapping_8723B() argument
2916 if (pattrib->bwmode == CHANNEL_WIDTH_80) { in SCMapping_8723B()
2918 } else if (pattrib->bwmode == CHANNEL_WIDTH_40) { in SCMapping_8723B()
2940 if (pattrib->bwmode == CHANNEL_WIDTH_40) { in SCMapping_8723B()
2942 } else if (pattrib->bwmode == CHANNEL_WIDTH_20) { in SCMapping_8723B()
2981 static u8 fill_txdesc_sectype(struct pkt_attrib *pattrib) in fill_txdesc_sectype() argument
[all …]
Drtl8723b_cmd.c1445 struct pkt_attrib *pattrib; in rtl8723b_set_FwRsvdPagePkt() local
1783 pattrib = &pcmdframe->attrib; in rtl8723b_set_FwRsvdPagePkt()
1784 update_mgntframe_attrib(padapter, pattrib); in rtl8723b_set_FwRsvdPagePkt()
1785 pattrib->qsel = 0x10; in rtl8723b_set_FwRsvdPagePkt()
1786 pattrib->pktlen = pattrib->last_txcmdsz = TotalPacketLen - TxDescOffset; in rtl8723b_set_FwRsvdPagePkt()
1831 struct pkt_attrib *pattrib; in rtl8723b_set_AP_FwRsvdPagePkt() local
1916 pattrib = &pcmdframe->attrib; in rtl8723b_set_AP_FwRsvdPagePkt()
1917 update_mgntframe_attrib(padapter, pattrib); in rtl8723b_set_AP_FwRsvdPagePkt()
1918 pattrib->qsel = 0x10; in rtl8723b_set_AP_FwRsvdPagePkt()
1919 pattrib->pktlen = TotalPacketLen - TxDescOffset; in rtl8723b_set_AP_FwRsvdPagePkt()
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c69 struct rx_pkt_attrib *pattrib; in rtw_os_alloc_msdu_pkt() local
71 pattrib = &prframe->u.hdr.attrib; in rtw_os_alloc_msdu_pkt()
103 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
104 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
110 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
111 memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, ETH_ALEN); in rtw_os_alloc_msdu_pkt()
117 void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt_attrib *pattrib) in rtw_os_recv_indicate_pkt() argument
129 int bmcast = IS_MCAST(pattrib->dst); in rtw_os_recv_indicate_pkt()
133 if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)) in rtw_os_recv_indicate_pkt()
142 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c42 struct rx_pkt_attrib *pattrib = NULL; in recvbuf2recvframe() local
71 pattrib = &precvframe->attrib; in recvbuf2recvframe()
73 if ((pattrib->crc_err) || (pattrib->icv_err)) { in recvbuf2recvframe()
74 …DBG_88E("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv… in recvbuf2recvframe()
80 if ((pattrib->physt) && (pattrib->pkt_rpt_type == NORMAL_RX)) in recvbuf2recvframe()
83 pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + pattrib->shift_sz + pattrib->pkt_len; in recvbuf2recvframe()
85 if ((pattrib->pkt_len <= 0) || (pkt_offset > transfer_len)) { in recvbuf2recvframe()
94 if (pattrib->qos) /* Qos data, wireless lan header length is 26 */ in recvbuf2recvframe()
99 skb_len = pattrib->pkt_len; in recvbuf2recvframe()
103 if ((pattrib->mfrag == 1) && (pattrib->frag_num == 0)) { in recvbuf2recvframe()
[all …]
Drecv_linux.c86 struct rx_pkt_attrib *pattrib = &precv_frame->attrib; in rtw_recv_indicatepkt() local
87 bool mcast = is_multicast_ether_addr(pattrib->dst); in rtw_recv_indicatepkt()
89 if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), in rtw_recv_indicatepkt()
95 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()

12