Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/staging/rtl8723bs/core/
Drtw_sta_mgt.c53 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
58 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA+4); in _rtw_init_sta_priv()
60 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
63 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
64 ((SIZE_PTR)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
66 INIT_LIST_HEAD(&pstapriv->free_sta_queue.queue); in _rtw_init_sta_priv()
67 spin_lock_init(&pstapriv->free_sta_queue.lock); 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 INIT_LIST_HEAD(&pstapriv->sleep_q.queue); 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()
55 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
66 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM()
126 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fe)) in update_BCNTIM()
136 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM()
144 if (pstapriv->tim_bitmap & 0xff00) in update_BCNTIM()
145 pvb = cpu_to_le16(pstapriv->tim_bitmap >> 8); in update_BCNTIM()
179 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local
184 spin_lock_bh(&pstapriv->auth_list_lock); in expire_timeout_chk()
[all …]
Drtw_recv.c458 struct sta_priv *pstapriv; in portctrl() local
464 pstapriv = &adapter->stapriv; in portctrl()
475 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
544 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
547 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
575 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
578 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
660 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
731 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
748 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_mlme_ext.c575 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
628 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
646 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
687 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
741 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
745 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
758 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth()
761 pstapriv->asoc_list_cnt--; in OnAuth()
766 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth()
773 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth()
[all …]
Drtw_xmit.c626 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
700 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
2016 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
2044 if (pstapriv->sta_dz_bitmap) { /* if anyone sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
2053 if (!(pstapriv->tim_bitmap & BIT(0))) in xmitframe_enqueue_for_sleeping_sta()
2056 pstapriv->tim_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
2057 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
2077 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
2108 if (!(pstapriv->tim_bitmap & BIT(psta->aid))) in xmitframe_enqueue_for_sleeping_sta()
2111 pstapriv->tim_bitmap |= BIT(psta->aid); in xmitframe_enqueue_for_sleeping_sta()
[all …]
/linux-5.19.10/drivers/staging/r8188eu/core/
Drtw_sta_mgt.c51 u32 _rtw_init_sta_priv(struct sta_priv *pstapriv) in _rtw_init_sta_priv() argument
56 pstapriv->pallocated_stainfo_buf = vzalloc(sizeof(struct sta_info) * NUM_STA + 4); in _rtw_init_sta_priv()
58 if (!pstapriv->pallocated_stainfo_buf) in _rtw_init_sta_priv()
61 pstapriv->pstainfo_buf = pstapriv->pallocated_stainfo_buf + 4 - in _rtw_init_sta_priv()
62 ((size_t)(pstapriv->pallocated_stainfo_buf) & 3); in _rtw_init_sta_priv()
64 rtw_init_queue(&pstapriv->free_sta_queue); in _rtw_init_sta_priv()
66 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv()
68 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv()
69 rtw_init_queue(&pstapriv->sleep_q); in _rtw_init_sta_priv()
70 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()
29 struct sta_priv *pstapriv = &padapter->stapriv; in free_mlme_ap_info() local
46 spin_lock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
48 spin_unlock_bh(&pstapriv->sta_hash_lock); in free_mlme_ap_info()
53 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local
105 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fc)) in update_BCNTIM()
115 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM()
120 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM()
161 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local
[all …]
Drtw_recv.c385 struct sta_priv *pstapriv; in portctrl() local
392 pstapriv = &adapter->stapriv; in portctrl()
403 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
461 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local
464 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
482 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local
485 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data()
571 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local
637 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
655 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local
[all …]
Drtw_xmit.c416 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local
478 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib()
1445 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit_classifier() local
1452 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in rtw_xmit_classifier()
1729 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local
1740 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta()
1754 if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta()
1761 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta()
1762 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta()
1779 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta()
[all …]
Drtw_mlme.c757 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources() local
765 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
767 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
776 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
778 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources()
857 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local
859 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
861 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
969 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local
996 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle()
[all …]
Drtw_mlme_ext.c558 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local
594 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
609 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon()
650 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local
683 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth()
686 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth()
695 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth()
698 pstapriv->asoc_list_cnt--; in OnAuth()
700 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth()
707 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth()
[all …]
/linux-5.19.10/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.h120 int _r8712_init_sta_priv(struct sta_priv *pstapriv);
121 void _r8712_free_sta_priv(struct sta_priv *pstapriv);
122 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
126 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.c576 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_free_assoc_resources() local
588 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
590 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources()
654 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_joinbss_event_callback() local
725 pcur_sta = r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
727 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL2); in r8712_joinbss_event_callback()
729 spin_unlock_irqrestore(&(pstapriv->sta_hash_lock), irqL2); in r8712_joinbss_event_callback()
756 r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback()
760 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
764 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback()
[all …]
/linux-5.19.10/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.c139 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local
142 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
532 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local
555 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption()
770 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local
776 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon()
778 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon()
779 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon()
811 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local
832 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta()
[all …]
Dioctl_cfg80211.c508 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_ap_set_encryption() local
529 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_cfg80211_ap_set_encryption()
815 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_set_encryption() local
819 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtw_cfg80211_set_encryption()
1057 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_get_station() local
1066 psta = rtw_get_stainfo(pstapriv, (u8 *)mac); in cfg80211_rtw_get_station()
2472 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_del_station() local
2493 spin_lock_bh(&pstapriv->asoc_list_lock); in cfg80211_rtw_del_station()
2495 phead = &pstapriv->asoc_list; in cfg80211_rtw_del_station()
2503 pstapriv->asoc_list_cnt--; in cfg80211_rtw_del_station()
[all …]
/linux-5.19.10/drivers/staging/r8188eu/os_dep/
Dxmit_linux.c156 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local
163 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
164 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst()
191 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
196 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
Dmlme_linux.c168 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_assoc_event() local
176 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
189 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_disassoc_event() local
197 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_disassoc_event()
Drecv_linux.c97 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt() local
107 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
/linux-5.19.10/drivers/staging/r8188eu/hal/
Dhal_intf.c47 struct sta_priv *pstapriv = &adapt->stapriv; in rtw_hal_update_ra_mask() local
49 psta = pstapriv->sta_aid[(mac_id - 1) - 1]; in rtw_hal_update_ra_mask()
Drtl8188e_rxdesc.c119 struct sta_priv *pstapriv; in update_recvframe_phyinfo_88e() local
140 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo_88e()
142 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
/linux-5.19.10/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()
/linux-5.19.10/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);

12