Home
last modified time | relevance | path

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

12

/drivers/staging/rtl8723bs/core/
Drtw_sta_mgt.c52 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
57 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA+4); in _rtw_init_sta_priv()
59 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
62 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
63 ((SIZE_PTR)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
65 _rtw_init_queue(&pstapriv->free_sta_queue); in _rtw_init_sta_priv()
67 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv()
70 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv()
71 _rtw_init_queue(&pstapriv->sleep_q); in _rtw_init_sta_priv()
72 _rtw_init_queue(&pstapriv->wakeup_q); in _rtw_init_sta_priv()
[all …]
Drtw_ap.c15 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local
16 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info()
54 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
65 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM()
125 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fe)) in update_BCNTIM()
135 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM()
143 if (pstapriv->tim_bitmap & 0xff00) in update_BCNTIM()
144 pvb = cpu_to_le16(pstapriv->tim_bitmap >> 8); in update_BCNTIM()
178 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local
183 spin_lock_bh(&pstapriv->auth_list_lock); in expire_timeout_chk()
[all …]
Drtw_recv.c454 struct sta_priv *pstapriv; in portctrl() local
460 pstapriv = &adapter->stapriv; in portctrl()
471 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
540 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
543 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
571 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
574 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
656 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
727 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
744 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_mlme_ext.c577 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
630 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
648 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
690 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
744 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
748 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
761 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth()
764 pstapriv->asoc_list_cnt--; in OnAuth()
769 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth()
776 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth()
[all …]
Drtw_xmit.c618 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
692 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
2008 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
2036 if (pstapriv->sta_dz_bitmap) { /* if anyone sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
2045 if (!(pstapriv->tim_bitmap & BIT(0))) in xmitframe_enqueue_for_sleeping_sta()
2048 pstapriv->tim_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
2049 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
2069 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
2100 if (!(pstapriv->tim_bitmap & BIT(psta->aid))) in xmitframe_enqueue_for_sleeping_sta()
2103 pstapriv->tim_bitmap |= BIT(psta->aid); in xmitframe_enqueue_for_sleeping_sta()
[all …]
/drivers/staging/r8188eu/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.c16 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local
17 struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; in init_mlme_ap_info()
30 struct sta_priv *pstapriv = &padapter->stapriv; in free_mlme_ap_info() local
47 spin_lock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
49 spin_unlock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
54 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
67 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM()
107 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fc)) in update_BCNTIM()
117 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM()
162 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local
[all …]
Drtw_recv.c453 struct sta_priv *pstapriv; in portctrl() local
460 pstapriv = &adapter->stapriv; in portctrl()
471 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
530 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
533 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
554 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
557 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
645 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
711 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
735 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_xmit.c418 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
484 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
1494 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit_classifier() local
1501 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in rtw_xmit_classifier()
1796 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
1807 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta()
1821 if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
1828 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta()
1829 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
1846 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
[all …]
Drtw_mlme.c853 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources() local
861 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
863 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
872 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
874 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
976 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local
978 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
980 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
1093 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local
1122 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle()
[all …]
Drtw_mlme_ext.c643 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
679 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
694 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
736 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
775 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
779 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
789 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth()
792 pstapriv->asoc_list_cnt--; in OnAuth()
794 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth()
801 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth()
[all …]
Drtw_debug.c236 struct sta_priv *pstapriv = &padapter->stapriv; in proc_get_ap_info() local
239 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info()
822 struct sta_priv *pstapriv = &padapter->stapriv; in proc_get_all_sta_info() local
828 … len, count - len, "sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim… in proc_get_all_sta_info()
830 spin_lock_bh(&pstapriv->sta_hash_lock); in proc_get_all_sta_info()
833 phead = &pstapriv->sta_hash[i]; in proc_get_all_sta_info()
864 spin_unlock_bh(&pstapriv->sta_hash_lock); in proc_get_all_sta_info()
/drivers/staging/rtl8712/
Drtl871x_sta_mgt.c37 int _r8712_init_sta_priv(struct sta_priv *pstapriv) in _r8712_init_sta_priv() argument
42 pstapriv->pallocated_stainfo_buf = kmalloc(sizeof(struct sta_info) * in _r8712_init_sta_priv()
44 if (!pstapriv->pallocated_stainfo_buf) in _r8712_init_sta_priv()
46 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _r8712_init_sta_priv()
47 ((addr_t)(pstapriv->pallocated_stainfo_buf) & 3); in _r8712_init_sta_priv()
48 _init_queue(&pstapriv->free_sta_queue); in _r8712_init_sta_priv()
49 spin_lock_init(&pstapriv->sta_hash_lock); in _r8712_init_sta_priv()
50 pstapriv->asoc_sta_count = 0; in _r8712_init_sta_priv()
51 _init_queue(&pstapriv->sleep_q); in _r8712_init_sta_priv()
52 _init_queue(&pstapriv->wakeup_q); in _r8712_init_sta_priv()
[all …]
Dsta_info.h121 int _r8712_init_sta_priv(struct sta_priv *pstapriv);
122 void _r8712_free_sta_priv(struct sta_priv *pstapriv);
123 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
127 struct sta_info *r8712_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
Drtl871x_recv.c232 struct sta_priv *pstapriv; in r8712_portctrl() local
236 pstapriv = &adapter->stapriv; in r8712_portctrl()
240 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
299 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
353 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
368 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
403 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
414 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
428 struct sta_priv *pstapriv = &adapter->stapriv; in sta2ap_data_frame() local
439 *psta = r8712_get_stainfo(pstapriv, pattrib->src); in sta2ap_data_frame()
Drtl871x_mlme.c578 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_free_assoc_resources() local
590 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
592 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
656 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_joinbss_event_callback() local
731 pcur_sta = r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
733 spin_lock_irqsave(&pstapriv-> in r8712_joinbss_event_callback()
736 spin_unlock_irqrestore(&(pstapriv-> in r8712_joinbss_event_callback()
767 r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
771 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
775 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c125 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
138 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
139 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
146 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst()
151 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
154 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst()
Dioctl_linux.c153 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local
156 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
546 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local
569 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption()
783 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local
789 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon()
791 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon()
792 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon()
824 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local
845 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta()
[all …]
Dioctl_cfg80211.c507 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_ap_set_encryption() local
528 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_cfg80211_ap_set_encryption()
783 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_set_encryption() local
786 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtw_cfg80211_set_encryption()
998 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_get_station() local
1007 psta = rtw_get_stainfo(pstapriv, (u8 *)mac); in cfg80211_rtw_get_station()
2384 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_del_station() local
2405 spin_lock_bh(&pstapriv->asoc_list_lock); in cfg80211_rtw_del_station()
2407 phead = &pstapriv->asoc_list; in cfg80211_rtw_del_station()
2415 pstapriv->asoc_list_cnt--; in cfg80211_rtw_del_station()
[all …]
/drivers/staging/r8188eu/os_dep/
Dxmit_linux.c168 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
175 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
176 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
205 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
210 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
Dmlme_linux.c173 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_assoc_event() local
181 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
196 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_disassoc_event() local
204 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_disassoc_event()
Drecv_linux.c132 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt() local
142 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_dm.c190 struct sta_priv *pstapriv = &padapter->stapriv; in rtl8723b_hal_dm_in_lps() local
198 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps()
215 struct sta_priv *pstapriv = &Adapter->stapriv; in rtl8723b_HalDmWatchDog_in_LPS() local
238 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
/drivers/staging/rtl8723bs/include/
Dsta_info.h359 extern u32 _rtw_init_sta_priv(struct sta_priv *pstapriv);
360 extern u32 _rtw_free_sta_priv(struct sta_priv *pstapriv);
366 extern struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
369 extern struct sta_info *rtw_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
/drivers/staging/r8188eu/hal/
Drtl8188e_rxdesc.c134 struct sta_priv *pstapriv; in update_recvframe_phyinfo_88e() local
163 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo_88e()
165 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()

12