Home
last modified time | relevance | path

Searched refs:pstapriv (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_sta_mgt.c54 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
59 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA+4); in _rtw_init_sta_priv()
61 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
64 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
65 ((SIZE_PTR)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
67 _rtw_init_queue(&pstapriv->free_sta_queue); in _rtw_init_sta_priv()
69 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv()
72 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv()
73 _rtw_init_queue(&pstapriv->sleep_q); in _rtw_init_sta_priv()
74 _rtw_init_queue(&pstapriv->wakeup_q); in _rtw_init_sta_priv()
[all …]
Drtw_ap.c21 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local
22 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info()
61 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
77 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM()
147 if ((pstapriv->tim_bitmap&0xff00) && (pstapriv->tim_bitmap&0x00fe)) in update_BCNTIM()
157 if (pstapriv->tim_bitmap&BIT(0))/* for bc/mc frames */ in update_BCNTIM()
166 if (pstapriv->tim_bitmap&0xff00) in update_BCNTIM()
167 pvb = cpu_to_le16(pstapriv->tim_bitmap >> 8); in update_BCNTIM()
221 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local
227 spin_lock_bh(&pstapriv->auth_list_lock); in expire_timeout_chk()
[all …]
Drtw_mlme_ext.c636 struct sta_priv *pstapriv = &padapter->stapriv; in OnProbeReq() local
659 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
663 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
670 spin_lock_bh(&pstapriv->asoc_list_lock); in OnProbeReq()
672 psta->expire_to = pstapriv->expire_to; in OnProbeReq()
673 list_add_tail(&psta->asoc_list, &pstapriv->asoc_list); in OnProbeReq()
674 pstapriv->asoc_list_cnt++; in OnProbeReq()
676 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnProbeReq()
693 if (pstapriv->sta_aid[psta->aid - 1] == NULL) in OnProbeReq()
696 if (psta->aid > pstapriv->max_num_sta) { in OnProbeReq()
[all …]
Drtw_recv.c551 struct sta_priv *pstapriv; in portctrl() local
557 pstapriv = &adapter->stapriv; in portctrl()
568 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
655 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
658 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
690 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
693 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
785 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
860 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
884 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_xmit.c684 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
774 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
2384 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
2439 if (pstapriv->sta_dz_bitmap) { /* if anyone sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
2450 if (!(pstapriv->tim_bitmap & BIT(0))) in xmitframe_enqueue_for_sleeping_sta()
2453 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta()
2454 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
2484 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
2517 if (!(pstapriv->tim_bitmap & BIT(psta->aid))) in xmitframe_enqueue_for_sleeping_sta()
2520 pstapriv->tim_bitmap |= BIT(psta->aid); in xmitframe_enqueue_for_sleeping_sta()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_sta_mgt.c58 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
63 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA + 4); in _rtw_init_sta_priv()
65 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
68 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
69 ((size_t)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
71 _rtw_init_queue(&pstapriv->free_sta_queue); in _rtw_init_sta_priv()
73 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv()
75 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv()
76 _rtw_init_queue(&pstapriv->sleep_q); in _rtw_init_sta_priv()
77 _rtw_init_queue(&pstapriv->wakeup_q); in _rtw_init_sta_priv()
[all …]
Drtw_ap.c22 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local
23 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info()
36 struct sta_priv *pstapriv = &padapter->stapriv; in free_mlme_ap_info() local
53 spin_lock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
55 spin_unlock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
60 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
114 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fc)) in update_BCNTIM()
124 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM()
130 *dst_ie++ = pstapriv->tim_bitmap & 0xff; in update_BCNTIM()
132 put_unaligned_le16(pstapriv->tim_bitmap, dst_ie); in update_BCNTIM()
[all …]
Drtw_recv.c426 struct sta_priv *pstapriv; in portctrl() local
433 pstapriv = &adapter->stapriv; in portctrl()
441 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
528 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
531 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
553 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
556 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
646 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
706 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
726 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_xmit.c403 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
469 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
1477 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit_classifier() local
1484 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in rtw_xmit_classifier()
1632 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
1643 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta()
1657 if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
1664 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta()
1665 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
1682 if (pstapriv->sta_dz_bitmap&BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
[all …]
Drtw_mlme_ext.c1560 struct sta_priv *pstapriv = &padapter->stapriv; in issue_action_BA() local
1614 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1826 struct sta_priv *pstapriv = &padapter->stapriv; in send_delba() local
1837 psta = rtw_get_stainfo(pstapriv, addr); in send_delba()
2575 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
2612 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
2626 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
2669 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
2708 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
2712 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
[all …]
Drtw_mlme.c731 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources_locked() local
744 spin_lock_bh(&(pstapriv->sta_hash_lock)); in rtw_free_assoc_resources_locked()
746 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked()
755 spin_lock_bh(&(pstapriv->sta_hash_lock)); in rtw_free_assoc_resources_locked()
757 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked()
859 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local
861 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
863 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
983 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local
1023 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle()
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_sta_mgt.c49 u32 _r8712_init_sta_priv(struct sta_priv *pstapriv) in _r8712_init_sta_priv() argument
54 pstapriv->pallocated_stainfo_buf = kmalloc(sizeof(struct sta_info) * in _r8712_init_sta_priv()
56 if (!pstapriv->pallocated_stainfo_buf) in _r8712_init_sta_priv()
58 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _r8712_init_sta_priv()
59 ((addr_t)(pstapriv->pallocated_stainfo_buf) & 3); in _r8712_init_sta_priv()
60 _init_queue(&pstapriv->free_sta_queue); in _r8712_init_sta_priv()
61 spin_lock_init(&pstapriv->sta_hash_lock); in _r8712_init_sta_priv()
62 pstapriv->asoc_sta_count = 0; in _r8712_init_sta_priv()
63 _init_queue(&pstapriv->sleep_q); in _r8712_init_sta_priv()
64 _init_queue(&pstapriv->wakeup_q); in _r8712_init_sta_priv()
[all …]
Dsta_info.h134 u32 _r8712_init_sta_priv(struct sta_priv *pstapriv);
135 u32 _r8712_free_sta_priv(struct sta_priv *pstapriv);
136 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
140 struct sta_info *r8712_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
Drtl871x_recv.c247 struct sta_priv *pstapriv; in r8712_portctrl() local
251 pstapriv = &adapter->stapriv; in r8712_portctrl()
255 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
315 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
369 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
384 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
419 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
430 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
444 struct sta_priv *pstapriv = &adapter->stapriv; in sta2ap_data_frame() local
455 *psta = r8712_get_stainfo(pstapriv, pattrib->src); in sta2ap_data_frame()
Drtl871x_mlme.c618 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_free_assoc_resources() local
630 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
632 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
697 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_joinbss_event_callback() local
771 pcur_sta = r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
773 spin_lock_irqsave(&pstapriv-> in r8712_joinbss_event_callback()
776 spin_unlock_irqrestore(&(pstapriv-> in r8712_joinbss_event_callback()
807 r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
811 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
815 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dxmit_linux.c112 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
119 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
120 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
149 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
154 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
Dmlme_linux.c133 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_assoc_event() local
141 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
156 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_disassoc_event() local
164 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_disassoc_event()
Drecv_linux.c85 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt() local
95 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
Dioctl_linux.c433 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local
436 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
2199 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local
2214 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption()
2424 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local
2432 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon()
2434 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon()
2435 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon()
2462 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local
2472 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta()
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c129 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
144 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
145 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
154 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst()
159 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
162 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst()
Dioctl_linux.c532 struct sta_priv * pstapriv = &padapter->stapriv; in wpa_set_encryption() local
535 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
2699 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_dbg_port() local
2821 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_dbg_port()
2871 …DBG_871X("sta_dz_bitmap = 0x%x, tim_bitmap = 0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitma… in rtw_dbg_port()
2873 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_dbg_port()
2876 phead = &(pstapriv->sta_hash[i]); in rtw_dbg_port()
2911 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_dbg_port()
3468 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local
3490 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/hal/
Dhal_intf.c56 struct sta_priv *pstapriv = &adapt->stapriv; in rtw_hal_update_ra_mask() local
59 psta = pstapriv->sta_aid[mac_id - 2]; in rtw_hal_update_ra_mask()
Drtl8188e_rxdesc.c138 struct sta_priv *pstapriv; in update_recvframe_phyinfo_88e() local
167 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo_88e()
169 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
/Linux-v4.19/drivers/staging/rtl8723bs/hal/
Drtl8723b_dm.c206 struct sta_priv *pstapriv = &padapter->stapriv; in rtl8723b_hal_dm_in_lps() local
216 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps()
233 struct sta_priv *pstapriv = &Adapter->stapriv; in rtl8723b_HalDmWatchDog_in_LPS() local
256 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Dsta_info.h369 extern u32 _rtw_init_sta_priv(struct sta_priv *pstapriv);
370 extern u32 _rtw_free_sta_priv(struct sta_priv *pstapriv);
376 extern struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
379 extern struct sta_info *rtw_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);

12