/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_sta_mgt.c | 53 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 …]
|
H A D | rtw_ap.c | 15 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 …]
|
H A D | rtw_recv.c | 450 struct sta_priv *pstapriv; in portctrl() local 456 pstapriv = &adapter->stapriv; in portctrl() 467 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 536 struct sta_priv *pstapriv = &padapter->stapriv; in process_pwrbit_data() local 539 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 567 struct sta_priv *pstapriv = &padapter->stapriv; in process_wmmps_data() local 570 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_wmmps_data() 652 struct sta_priv *pstapriv = &adapter->stapriv; in sta2sta_data_frame() local 723 *psta = rtw_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 740 struct sta_priv *pstapriv = &adapter->stapriv; in ap2sta_data_frame() local [all …]
|
H A D | rtw_mlme_ext.c | 573 struct sta_priv *pstapriv = &padapter->stapriv; in OnBeacon() local 626 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 644 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 685 struct sta_priv *pstapriv = &padapter->stapriv; in OnAuth() local 739 pstat = rtw_get_stainfo(pstapriv, sa); in OnAuth() 743 pstat = rtw_alloc_stainfo(pstapriv, sa); in OnAuth() 756 spin_lock_bh(&pstapriv->asoc_list_lock); in OnAuth() 759 pstapriv->asoc_list_cnt--; in OnAuth() 764 spin_unlock_bh(&pstapriv->asoc_list_lock); in OnAuth() 771 spin_lock_bh(&pstapriv->auth_list_lock); in OnAuth() [all …]
|
H A D | rtw_xmit.c | 626 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 …]
|
H A D | rtw_cmd.c | 1499 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_chk_hi_queue_hdl() local 1518 if (pstapriv->tim_bitmap & BIT(0)) in rtw_chk_hi_queue_hdl() 1521 pstapriv->tim_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl() 1522 pstapriv->sta_dz_bitmap &= ~BIT(0); in rtw_chk_hi_queue_hdl() 1906 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_setstaKey_cmdrsp_callback() local 1908 struct sta_info *psta = rtw_get_stainfo(pstapriv, psetstakey_rsp->addr); in rtw_setstaKey_cmdrsp_callback() 1919 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_setassocsta_cmdrsp_callback() local 1923 struct sta_info *psta = rtw_get_stainfo(pstapriv, passocsta_parm->addr); in rtw_setassocsta_cmdrsp_callback()
|
H A D | rtw_wlan_util.c | 941 struct sta_priv *pstapriv = &padapter->stapriv; in bwmode_update_check() local 946 psta = rtw_get_stainfo(pstapriv, cur_network->mac_address); in bwmode_update_check() 1668 struct sta_priv *pstapriv = &padapter->stapriv; in process_addba_req() local 1673 psta = rtw_get_stainfo(pstapriv, addr); in process_addba_req()
|
H A D | rtw_mlme.c | 1013 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_joinbss_update_stainfo() local 1016 psta = rtw_get_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1018 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1154 struct sta_priv *pstapriv = &adapter->stapriv; in rtw_joinbss_event_prehandle() local 1187 pcur_sta = rtw_get_stainfo(pstapriv, cur_network->network.mac_address); in rtw_joinbss_event_prehandle()
|
/openbmc/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 | 210 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_update_attrib() local 292 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib() 296 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib() 919 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_xmit_classifier() local 930 psta = r8712_get_stainfo(pstapriv, in r8712_xmit_classifier() 933 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_xmit_classifier()
|
H A D | rtl871x_cmd.c | 734 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_setstaKey_cmdrsp_callback() local 737 struct sta_info *psta = r8712_get_stainfo(pstapriv, in r8712_setstaKey_cmdrsp_callback() 751 struct sta_priv *pstapriv = &padapter->stapriv; in r8712_setassocsta_cmdrsp_callback() local 757 struct sta_info *psta = r8712_get_stainfo(pstapriv, in r8712_setassocsta_cmdrsp_callback()
|
H A D | rtl8712_recv.c | 241 struct sta_priv *pstapriv; in r8712_recvframe_chk_defrag() local 246 pstapriv = &padapter->stapriv; in r8712_recvframe_chk_defrag() 253 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_recvframe_chk_defrag()
|
H A D | rtl871x_ioctl_linux.c | 438 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 443 psta = r8712_get_stainfo(pstapriv, in wpa_set_encryption()
|
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | xmit_linux.c | 125 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()
|
H A D | ioctl_linux.c | 138 struct sta_priv *pstapriv = &padapter->stapriv; in wpa_set_encryption() local 141 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 522 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_encryption() local 545 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_set_encryption() 750 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_set_beacon() local 756 memcpy(&pstapriv->max_num_sta, param->u.bcn_ie.reserved, 2); in rtw_set_beacon() 758 if ((pstapriv->max_num_sta > NUM_STA) || (pstapriv->max_num_sta <= 0)) in rtw_set_beacon() 759 pstapriv->max_num_sta = NUM_STA; in rtw_set_beacon() 788 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_add_sta() local 809 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_add_sta() [all …]
|
H A D | ioctl_cfg80211.c | 502 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_ap_set_encryption() local 523 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_cfg80211_ap_set_encryption() 770 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_cfg80211_set_encryption() local 773 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtw_cfg80211_set_encryption() 981 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_get_station() local 990 psta = rtw_get_stainfo(pstapriv, (u8 *)mac); in cfg80211_rtw_get_station() 2352 struct sta_priv *pstapriv = &padapter->stapriv; in cfg80211_rtw_del_station() local 2372 spin_lock_bh(&pstapriv->asoc_list_lock); in cfg80211_rtw_del_station() 2374 phead = &pstapriv->asoc_list; in cfg80211_rtw_del_station() 2382 pstapriv->asoc_list_cnt--; in cfg80211_rtw_del_station() [all …]
|
H A D | recv_linux.c | 103 struct sta_priv *pstapriv = &padapter->stapriv; in rtw_os_recv_indicate_pkt() local 111 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A D | rtl8723b_dm.c | 190 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()
|
H A D | rtl8723bs_recv.c | 100 struct sta_priv *pstapriv; in update_recvframe_phyinfo() local 122 pstapriv = &padapter->stapriv; in update_recvframe_phyinfo() 123 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo()
|
H A D | hal_com.c | 761 struct sta_priv *pstapriv; in GetHalDefVar() local 765 pstapriv = &adapter->stapriv; in GetHalDefVar() 766 psta = rtw_get_stainfo(pstapriv, pmlmepriv->cur_network.network.mac_address); in GetHalDefVar()
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | sta_info.h | 359 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);
|