/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_sta_mgt.c | 52 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 INIT_LIST_HEAD(&pstapriv->free_sta_queue.queue); in _rtw_init_sta_priv() 66 spin_lock_init(&pstapriv->free_sta_queue.lock); in _rtw_init_sta_priv() 68 spin_lock_init(&pstapriv->sta_hash_lock); in _rtw_init_sta_priv() 71 pstapriv->asoc_sta_count = 0; in _rtw_init_sta_priv() 72 INIT_LIST_HEAD(&pstapriv->sleep_q.queue); in _rtw_init_sta_priv() [all …]
|
H A D | rtw_ap.c | 14 struct sta_priv *pstapriv = &padapter->stapriv; in init_mlme_ap_info() local 15 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 …]
|
H A D | rtw_recv.c | 449 struct sta_priv *pstapriv; in portctrl() local 455 pstapriv = &adapter->stapriv; in portctrl() 466 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 535 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local 538 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 566 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local 569 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data() 651 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 722 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 739 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local [all …]
|
H A D | rtw_mlme_ext.c | 572 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local 625 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 643 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 684 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local 738 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth() 742 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth() 755 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth() 758 pstapriv->asoc_list_cnt--; in OnAuth() 763 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth() 770 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth() [all …]
|
H A D | rtw_xmit.c | 625 struct sta_priv *pstapriv = &padapter->stapriv; in update_attrib() local 699 psta = rtw_get_stainfo(pstapriv, pattrib->ra); in update_attrib() 2015 struct sta_priv *pstapriv = &padapter->stapriv; in xmitframe_enqueue_for_sleeping_sta() local 2043 if (pstapriv->sta_dz_bitmap) { /* if anyone sta is in ps mode */ in xmitframe_enqueue_for_sleeping_sta() 2052 if (!(pstapriv->tim_bitmap & BIT(0))) in xmitframe_enqueue_for_sleeping_sta() 2055 pstapriv->tim_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta() 2056 pstapriv->sta_dz_bitmap |= BIT(0); in xmitframe_enqueue_for_sleeping_sta() 2076 if (pstapriv->sta_dz_bitmap & BIT(psta->aid)) { in xmitframe_enqueue_for_sleeping_sta() 2107 if (!(pstapriv->tim_bitmap & BIT(psta->aid))) in xmitframe_enqueue_for_sleeping_sta() 2110 pstapriv->tim_bitmap |= BIT(psta->aid); in xmitframe_enqueue_for_sleeping_sta() [all …]
|
H A D | rtw_cmd.c | 1498 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_chk_hi_queue_hdl() local 1517 if (pstapriv->tim_bitmap & BIT(0)) in rtw_chk_hi_queue_hdl() 1520 pstapriv->tim_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl() 1521 pstapriv->sta_dz_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl() 1902 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_setstaKey_cmdrsp_callback() local 1904 struct sta_info *psta = rtw_get_stainfo(pstapriv, psetstakey_rsp->addr); in rtw_setstaKey_cmdrsp_callback() 1915 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_setassocsta_cmdrsp_callback() local 1919 struct sta_info *psta = rtw_get_stainfo(pstapriv, passocsta_parm->addr); in rtw_setassocsta_cmdrsp_callback()
|
H A D | rtw_wlan_util.c | 940 struct sta_priv *pstapriv = &padapter->stapriv; in bwmode_update_check() local 945 psta = rtw_get_stainfo(pstapriv, cur_network->mac_address); in bwmode_update_check() 1667 struct sta_priv *pstapriv = &padapter->stapriv; in process_addba_req() local 1672 psta = rtw_get_stainfo(pstapriv, addr); in process_addba_req()
|
H A D | rtw_mlme.c | 951 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local 954 psta = rtw_get_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 956 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1089 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local 1122 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.mac_address); in rtw_joinbss_event_prehandle()
|
/linux/drivers/staging/rtl8712/ |
H A 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 …]
|
H A D | sta_info.h | 120 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);
|
H A D | rtl871x_recv.c | 234 struct sta_priv *pstapriv; in r8712_portctrl() local 238 pstapriv = &adapter->stapriv; in r8712_portctrl() 242 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl() 301 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 355 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 370 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local 405 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() 416 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() 430 struct sta_priv *pstapriv = &adapter->stapriv; in sta2ap_data_frame() local 441 *psta = r8712_get_stainfo(pstapriv, pattrib->src); in sta2ap_data_frame()
|
H A D | rtl871x_mlme.c | 576 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 …]
|
H A D | rtl871x_xmit.c | 207 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_update_attrib() local 289 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib() 293 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib() 916 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_xmit_classifier() local 927 psta = r8712_get_stainfo(pstapriv, in r8712_xmit_classifier() 930 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_xmit_classifier()
|
H A D | rtl871x_cmd.c | 695 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_setstaKey_cmdrsp_callback() local 697 struct sta_info *psta = r8712_get_stainfo(pstapriv, psetstakey_rsp->addr); in r8712_setstaKey_cmdrsp_callback() 710 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_setassocsta_cmdrsp_callback() local 714 struct sta_info *psta = r8712_get_stainfo(pstapriv, passocsta_parm->addr); in r8712_setassocsta_cmdrsp_callback()
|
H A D | rtl8712_recv.c | 237 struct sta_priv *pstapriv; in r8712_recvframe_chk_defrag() local 242 pstapriv = &padapter->stapriv; in r8712_recvframe_chk_defrag() 249 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_recvframe_chk_defrag()
|
H A D | rtl871x_ioctl_linux.c | 419 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 424 psta = r8712_get_stainfo(pstapriv, in wpa_set_encryption()
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | xmit_linux.c | 124 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_mlcst2unicst() local 137 spin_lock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst() 138 phead = &pstapriv->asoc_list; in rtw_mlcst2unicst() 145 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst() 149 spin_unlock_bh(&pstapriv->asoc_list_lock); in rtw_mlcst2unicst() 152 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst()
|
H A D | ioctl_linux.c | 137 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 140 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 521 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local 544 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption() 749 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local 755 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon() 757 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon() 758 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon() 787 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local 808 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta() [all …]
|
H A D | ioctl_cfg80211.c | 501 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_ap_set_encryption() local 522 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_cfg80211_ap_set_encryption() 769 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_set_encryption() local 772 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtw_cfg80211_set_encryption() 980 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_get_station() local 989 psta = rtw_get_stainfo(pstapriv, (u8 *)mac); in cfg80211_rtw_get_station() 2350 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_del_station() local 2370 spin_lock_bh(&pstapriv->asoc_list_lock); in cfg80211_rtw_del_station() 2372 phead = &pstapriv->asoc_list; in cfg80211_rtw_del_station() 2380 pstapriv->asoc_list_cnt--; in cfg80211_rtw_del_station() [all …]
|
H A D | recv_linux.c | 102 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_os_recv_indicate_pkt() local 110 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
|
/linux/drivers/staging/rtl8723bs/include/ |
H A D | sta_info.h | 315 extern u32 _rtw_init_sta_priv(struct sta_priv *pstapriv); 316 extern u32 _rtw_free_sta_priv(struct sta_priv *pstapriv); 322 extern struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr); 325 extern struct sta_info *rtw_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | rtl8723b_dm.c | 189 struct sta_priv *pstapriv = &padapter->stapriv; in rtl8723b_hal_dm_in_lps() local 197 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 214 struct sta_priv *pstapriv = &Adapter->stapriv; in rtl8723b_HalDmWatchDog_in_LPS() local 237 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
|
H A D | rtl8723bs_recv.c | 99 struct sta_priv *pstapriv; in update_recvframe_phyinfo() local 121 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo() 122 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo()
|
H A D | hal_com.c | 760 struct sta_priv *pstapriv; in GetHalDefVar() local 764 pstapriv = &adapter->stapriv; in GetHalDefVar() 765 psta = rtw_get_stainfo(pstapriv, pmlmepriv->cur_network.network.mac_address); in GetHalDefVar()
|