/Linux-v5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_sta_mgt.c | 54 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 …]
|
D | rtw_ap.c | 21 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() 60 struct sta_priv *pstapriv = &padapter->stapriv; in update_BCNTIM() local 75 tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap); in update_BCNTIM() 138 if ((pstapriv->tim_bitmap & 0xff00) && (pstapriv->tim_bitmap & 0x00fe)) in update_BCNTIM() 148 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ in update_BCNTIM() 156 if (pstapriv->tim_bitmap & 0xff00) in update_BCNTIM() 157 pvb = cpu_to_le16(pstapriv->tim_bitmap >> 8); in update_BCNTIM() 207 struct sta_priv *pstapriv = &padapter->stapriv; in expire_timeout_chk() local 212 spin_lock_bh(&pstapriv->auth_list_lock); in expire_timeout_chk() [all …]
|
D | rtw_mlme_ext.c | 627 struct sta_priv *pstapriv = &padapter->stapriv; in OnProbeReq() local 650 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq() 654 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq() 661 spin_lock_bh(&pstapriv->asoc_list_lock); in OnProbeReq() 663 psta->expire_to = pstapriv->expire_to; in OnProbeReq() 664 list_add_tail(&psta->asoc_list, &pstapriv->asoc_list); in OnProbeReq() 665 pstapriv->asoc_list_cnt++; in OnProbeReq() 667 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnProbeReq() 684 if (pstapriv->sta_aid[psta->aid - 1] == NULL) in OnProbeReq() 687 if (psta->aid > pstapriv->max_num_sta) { in OnProbeReq() [all …]
|
D | rtw_recv.c | 549 struct sta_priv *pstapriv; in portctrl() local 555 pstapriv = &adapter->stapriv; in portctrl() 566 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 653 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local 656 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 688 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local 691 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data() 783 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 858 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 882 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local [all …]
|
D | rtw_xmit.c | 654 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local 740 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib() 2193 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local 2234 if (pstapriv->sta_dz_bitmap) { /* if anyone sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta() 2243 if (!(pstapriv->tim_bitmap & BIT(0))) in xmitframe_enqueue_for_sleeping_sta() 2246 pstapriv->tim_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta() 2247 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta() 2269 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta() 2300 if (!(pstapriv->tim_bitmap & BIT(psta->aid))) in xmitframe_enqueue_for_sleeping_sta() 2303 pstapriv->tim_bitmap |= BIT(psta->aid); in xmitframe_enqueue_for_sleeping_sta() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_sta_mgt.c | 58 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 …]
|
D | rtw_ap.c | 22 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 …]
|
D | rtw_recv.c | 418 struct sta_priv *pstapriv; in portctrl() local 425 pstapriv = &adapter->stapriv; in portctrl() 433 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 520 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local 523 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 545 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local 548 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data() 633 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 693 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 712 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local [all …]
|
D | rtw_xmit.c | 399 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local 467 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib() 1480 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_xmit_classifier() local 1487 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in rtw_xmit_classifier() 1638 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local 1649 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in xmitframe_enqueue_for_sleeping_sta() 1663 if (pstapriv->sta_dz_bitmap) {/* if any one sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta() 1670 pstapriv->tim_bitmap |= BIT(0);/* */ in xmitframe_enqueue_for_sleeping_sta() 1671 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta() 1688 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta() [all …]
|
D | rtw_mlme_ext.c | 1553 struct sta_priv *pstapriv = &padapter->stapriv; in issue_action_BA() local 1607 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA() 1819 struct sta_priv *pstapriv = &padapter->stapriv; in send_delba() local 1829 psta = rtw_get_stainfo(pstapriv, addr); in send_delba() 2555 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local 2592 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 2606 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 2649 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local 2688 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth() 2692 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth() [all …]
|
D | rtw_mlme.c | 728 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_free_assoc_resources_locked() local 741 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked() 743 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked() 752 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked() 754 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_free_assoc_resources_locked() 833 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local 835 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 837 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 957 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local 997 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_joinbss_event_prehandle() [all …]
|
/Linux-v5.10/drivers/staging/rtl8712/ |
D | rtl871x_sta_mgt.c | 37 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 …]
|
D | sta_info.h | 122 int _r8712_init_sta_priv(struct sta_priv *pstapriv); 123 void _r8712_free_sta_priv(struct sta_priv *pstapriv); 124 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv, 128 struct sta_info *r8712_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
|
D | rtl871x_recv.c | 230 struct sta_priv *pstapriv; in r8712_portctrl() local 234 pstapriv = &adapter->stapriv; in r8712_portctrl() 238 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl() 297 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 351 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 366 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local 401 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() 412 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() 426 struct sta_priv *pstapriv = &adapter->stapriv; in sta2ap_data_frame() local 437 *psta = r8712_get_stainfo(pstapriv, pattrib->src); in sta2ap_data_frame()
|
D | rtl871x_mlme.c | 580 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_free_assoc_resources() local 592 spin_lock_irqsave(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources() 594 spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL); in r8712_free_assoc_resources() 659 struct sta_priv *pstapriv = &adapter->stapriv; in r8712_joinbss_event_callback() local 733 pcur_sta = r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback() 735 spin_lock_irqsave(&pstapriv-> in r8712_joinbss_event_callback() 738 spin_unlock_irqrestore(&(pstapriv-> in r8712_joinbss_event_callback() 769 r8712_get_stainfo(pstapriv, in r8712_joinbss_event_callback() 773 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback() 777 r8712_alloc_stainfo(pstapriv, in r8712_joinbss_event_callback() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/ |
D | xmit_linux.c | 112 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() 151 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst() 160 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst()
|
D | mlme_linux.c | 132 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_assoc_event() local 140 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event() 155 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_indicate_sta_disassoc_event() local 163 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_disassoc_event()
|
D | recv_linux.c | 85 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_recv_indicatepkt() local 95 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
|
D | ioctl_linux.c | 430 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 433 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 2170 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local 2185 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption() 2395 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local 2403 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon() 2405 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon() 2406 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon() 2433 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local 2443 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta() [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/ |
D | xmit_linux.c | 129 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()
|
D | ioctl_linux.c | 525 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 528 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 2674 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_dbg_port() local 2796 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in rtw_dbg_port() 2846 …DBG_871X("sta_dz_bitmap = 0x%x, tim_bitmap = 0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitma… in rtw_dbg_port() 2848 spin_lock_bh(&pstapriv->sta_hash_lock); in rtw_dbg_port() 2851 phead = &(pstapriv->sta_hash[i]); in rtw_dbg_port() 2886 spin_unlock_bh(&pstapriv->sta_hash_lock); in rtw_dbg_port() 3434 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local 3456 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/hal/ |
D | hal_intf.c | 56 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()
|
D | rtl8188e_rxdesc.c | 138 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-v5.10/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_dm.c | 207 struct sta_priv *pstapriv = &padapter->stapriv; in rtl8723b_hal_dm_in_lps() local 217 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 234 struct sta_priv *pstapriv = &Adapter->stapriv; in rtl8723b_HalDmWatchDog_in_LPS() local 257 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
|
/Linux-v5.10/drivers/staging/rtl8723bs/include/ |
D | sta_info.h | 369 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);
|