| /Linux-v5.15/drivers/staging/r8188eu/core/ |
| D | rtw_sta_mgt.c | 13 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument 16 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo() 18 spin_lock_init(&psta->lock); in _rtw_init_stainfo() 19 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo() 20 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo() 21 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo() 22 psta->sleepq_len = 0; in _rtw_init_stainfo() 24 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo() 25 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo() 29 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo() [all …]
|
| D | rtw_ap.c | 29 struct sta_info *psta = NULL; in free_mlme_ap_info() local 46 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info() 48 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info() 142 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument 146 if ((psta->sta_stats.last_rx_data_pkts + psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive() 147 (psta->sta_stats.rx_data_pkts + psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive() 152 sta_update_last_rx_pkts(psta); in chk_sta_is_alive() 161 struct sta_info *psta = NULL; in expire_timeout_chk() local 174 psta = container_of(plist, struct sta_info, auth_list); in expire_timeout_chk() 177 if (psta->expire_to > 0) { in expire_timeout_chk() [all …]
|
| D | rtw_xmit.c | 253 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local 270 if (psta->rtsen) in update_attrib_vcs_info() 272 else if (psta->cts2self) in update_attrib_vcs_info() 287 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info() 288 if (psta->rtsen) in update_attrib_vcs_info() 290 else if (psta->cts2self) in update_attrib_vcs_info() 326 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument 340 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 342 pattrib->raid = psta->raid; in update_attrib_phy_info() 343 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info() [all …]
|
| D | rtw_recv.c | 452 struct sta_info *psta; in portctrl() local 471 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 474 if (psta && psta->ieee8021x_blocked) { in portctrl() 531 struct sta_info *psta = NULL; in process_pwrbit_data() local 533 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 537 if (psta) { in process_pwrbit_data() 539 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data() 540 stop_sta_xmit(padapter, psta); in process_pwrbit_data() 542 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data() 543 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data() [all …]
|
| D | rtw_debug.c | 230 struct sta_info *psta; in proc_get_ap_info() local 239 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info() 240 if (psta) { in proc_get_ap_info() 245 len += snprintf(page + len, count - len, "sta's macaddr:%pM\n", psta->hwaddr); in proc_get_ap_info() 247 len += snprintf(page + len, count - len, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); in proc_get_ap_info() 248 …ount - len, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta-… in proc_get_ap_info() 249 … count - len, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, pst… in proc_get_ap_info() 250 …, count - len, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, p… in proc_get_ap_info() 251 len += snprintf(page + len, count - len, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); in proc_get_ap_info() 252 …- len, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->ht… in proc_get_ap_info() [all …]
|
| D | rtw_mlme.c | 857 struct sta_info *psta; in rtw_free_assoc_resources() local 859 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources() 862 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 867 struct sta_info *psta; in rtw_free_assoc_resources() local 871 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 873 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 974 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 978 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 979 if (!psta) in rtw_joinbss_update_stainfo() 980 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() [all …]
|
| /Linux-v5.15/drivers/staging/rtl8723bs/core/ |
| D | rtw_sta_mgt.c | 10 void _rtw_init_stainfo(struct sta_info *psta); 11 void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument 13 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo() 15 spin_lock_init(&psta->lock); in _rtw_init_stainfo() 16 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo() 17 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo() 22 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo() 23 psta->sleepq_len = 0; in _rtw_init_stainfo() 25 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo() 26 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo() [all …]
|
| D | rtw_ap.c | 30 struct sta_info *psta = NULL; in free_mlme_ap_info() local 48 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info() 49 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info() 166 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument 168 sta_update_last_rx_pkts(psta); in chk_sta_is_alive() 177 struct sta_info *psta = NULL; in expire_timeout_chk() local 188 psta = list_entry(plist, struct sta_info, auth_list); in expire_timeout_chk() 190 if (psta->expire_to > 0) { in expire_timeout_chk() 191 psta->expire_to--; in expire_timeout_chk() 192 if (psta->expire_to == 0) { in expire_timeout_chk() [all …]
|
| D | rtw_xmit.c | 322 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument 326 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI() 327 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI() 329 switch (psta->bw_mode) { in query_ra_short_GI() 424 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument 428 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info() 429 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info() 437 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 439 pattrib->raid = psta->raid; in update_attrib_phy_info() 441 if (mlmeext->cur_bwmode < psta->bw_mode) in update_attrib_phy_info() [all …]
|
| D | rtw_recv.c | 453 struct sta_info *psta; in portctrl() local 471 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 474 if ((psta) && (psta->ieee8021x_blocked)) { in portctrl() 541 struct sta_info *psta = NULL; in process_pwrbit_data() local 543 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 547 if (psta) { in process_pwrbit_data() 549 if (!(psta->state & WIFI_SLEEP_STATE)) { in process_pwrbit_data() 553 stop_sta_xmit(padapter, psta); in process_pwrbit_data() 557 if (psta->state & WIFI_SLEEP_STATE) { in process_pwrbit_data() 561 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data() [all …]
|
| D | rtw_wlan_util.c | 47 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) in networktype_to_raid_ex() argument 51 switch (psta->wireless_mode) { in networktype_to_raid_ex() 67 if (psta->bw_mode == CHANNEL_WIDTH_20) { in networktype_to_raid_ex() 939 struct sta_info *psta; in bwmode_update_check() local 946 psta = rtw_get_stainfo(pstapriv, cur_network->mac_address); in bwmode_update_check() 947 if (psta) { in bwmode_update_check() 948 struct ht_priv *phtpriv_sta = &psta->htpriv; in bwmode_update_check() 952 psta->bw_mode = pmlmeext->cur_bwmode; in bwmode_update_check() 955 psta->bw_mode = CHANNEL_WIDTH_20; in bwmode_update_check() 959 rtw_dm_ra_mask_wk_cmd(padapter, (u8 *)psta); in bwmode_update_check() [all …]
|
| D | rtw_mlme.c | 905 struct sta_info *psta; in rtw_free_assoc_resources() local 907 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.mac_address); in rtw_free_assoc_resources() 909 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 916 struct sta_info *psta; in rtw_free_assoc_resources() local 920 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 921 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 1022 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 1027 psta = rtw_get_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1028 if (!psta) in rtw_joinbss_update_stainfo() 1029 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() [all …]
|
| D | rtw_mlme_ext.c | 446 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local 468 if (psta) { in mgt_dispatcher() 470 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher() 476 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher() 573 struct sta_info *psta; in OnBeacon() local 630 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 631 if (psta) { in OnBeacon() 642 if ((sta_rx_pkts(psta) & 0xf) == 0) in OnBeacon() 643 update_beacon_info(padapter, pframe, len, psta); in OnBeacon() 648 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() [all …]
|
| D | rtw_btcoex.c | 39 struct sta_info *psta; in rtw_btcoex_RejectApAggregatedPacket() local 42 psta = rtw_get_stainfo(&padapter->stapriv, get_bssid(&padapter->mlmepriv)); in rtw_btcoex_RejectApAggregatedPacket() 46 if (psta) in rtw_btcoex_RejectApAggregatedPacket() 47 send_delba(padapter, 0, psta->hwaddr); in rtw_btcoex_RejectApAggregatedPacket()
|
| /Linux-v5.15/drivers/staging/rtl8712/ |
| D | rtl871x_sta_mgt.c | 25 static void _init_stainfo(struct sta_info *psta) in _init_stainfo() argument 27 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _init_stainfo() 28 spin_lock_init(&psta->lock); in _init_stainfo() 29 INIT_LIST_HEAD(&psta->list); in _init_stainfo() 30 INIT_LIST_HEAD(&psta->hash_list); in _init_stainfo() 31 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv); in _init_stainfo() 32 _r8712_init_sta_recv_priv(&psta->sta_recvpriv); in _init_stainfo() 33 INIT_LIST_HEAD(&psta->asoc_list); in _init_stainfo() 34 INIT_LIST_HEAD(&psta->auth_list); in _init_stainfo() 39 struct sta_info *psta; in _r8712_init_sta_priv() local [all …]
|
| D | rtl871x_xmit.c | 179 struct sta_info *psta = NULL; in r8712_update_attrib() local 263 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib() 267 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib() 271 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib() 272 if (!psta) /* drop the pkt */ in r8712_update_attrib() 277 pattrib->mac_id = psta->mac_id; in r8712_update_attrib() 281 if (psta) { in r8712_update_attrib() 282 pattrib->psta = psta; in r8712_update_attrib() 299 if (psta->ieee8021x_blocked) { in r8712_update_attrib() 305 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib() [all …]
|
| D | rtl871x_recv.c | 231 struct sta_info *psta; in r8712_portctrl() local 240 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl() 247 if (psta && psta->ieee8021x_blocked) { in r8712_portctrl() 294 struct sta_info **psta) in sta2sta_data_frame() argument 351 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame() 353 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 354 if (!*psta) { in sta2sta_data_frame() 364 struct sta_info **psta) in ap2sta_data_frame() argument 401 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame() 403 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() [all …]
|
| /Linux-v5.15/drivers/staging/rtl8723bs/os_dep/ |
| D | ioctl_linux.c | 151 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local 155 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 156 if (psta == NULL) { in wpa_set_encryption() 161 psta->ieee8021x_blocked = false; in wpa_set_encryption() 165 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption() 169 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : par… in wpa_set_encryption() 173 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption() 174 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption() 180 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption() 541 struct sta_info *psta = NULL, *pbcmc_sta = NULL; in rtw_set_encryption() local [all …]
|
| D | xmit_linux.c | 129 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local 144 psta = list_entry(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst() 146 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst() 154 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst() 155 if (!(psta->state & _FW_LINKED)) in rtw_mlcst2unicst() 159 if (!memcmp(psta->hwaddr, &skb->data[6], 6) || in rtw_mlcst2unicst() 160 !memcmp(psta->hwaddr, null_addr, 6) || in rtw_mlcst2unicst() 161 !memcmp(psta->hwaddr, bc_addr, 6)) in rtw_mlcst2unicst() 167 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
|
| /Linux-v5.15/drivers/staging/r8188eu/os_dep/ |
| D | mlme_linux.c | 151 struct sta_info *psta = from_timer(psta, t, addba_retry_timer); in _addba_timer_hdl() local 152 addba_timer_hdl(psta); in _addba_timer_hdl() 155 void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta) in init_addba_retry_timer() argument 157 timer_setup(&psta->addba_retry_timer, _addba_timer_hdl, 0); in init_addba_retry_timer() 170 void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_assoc_event() argument 175 if (!psta) in rtw_indicate_sta_assoc_event() 178 if (psta->aid > NUM_STA) in rtw_indicate_sta_assoc_event() 181 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event() 186 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event() 193 void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_disassoc_event() argument [all …]
|
| /Linux-v5.15/drivers/staging/r8188eu/include/ |
| D | rtw_ap.h | 14 struct sta_info *psta); 16 struct sta_info *psta); 21 void add_RATid(struct adapter *padapter, struct sta_info *psta, 24 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta); 33 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta); 34 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta); 35 void sta_info_update(struct adapter *padapter, struct sta_info *psta); 36 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta); 37 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
|
| /Linux-v5.15/drivers/staging/rtl8723bs/include/ |
| D | rtw_ap.h | 14 void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level); 16 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta); 24 u8 rtw_ap_set_pairwise_key(struct adapter *padapter, struct sta_info *psta); 29 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta); 30 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta); 31 void sta_info_update(struct adapter *padapter, struct sta_info *psta); 32 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta); 33 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16 reason);
|
| /Linux-v5.15/drivers/staging/r8188eu/hal/ |
| D | rtl8188e_rxdesc.c | 135 struct sta_info *psta; in update_recvframe_phyinfo_88e() local 165 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e() 166 if (psta) in update_recvframe_phyinfo_88e() 167 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo_88e() 172 precvframe->psta = NULL; in update_recvframe_phyinfo_88e() 175 if (psta) { in update_recvframe_phyinfo_88e() 176 precvframe->psta = psta; in update_recvframe_phyinfo_88e() 181 if (psta) in update_recvframe_phyinfo_88e() 182 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
|
| /Linux-v5.15/drivers/staging/rtl8723bs/hal/ |
| D | rtl8723b_dm.c | 191 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local 198 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 199 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps() 200 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps() 216 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local 238 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS() 239 if (!psta) in rtl8723b_HalDmWatchDog_in_LPS() 242 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()
|
| D | rtl8723bs_recv.c | 101 struct sta_info *psta; in update_recvframe_phyinfo() local 124 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo() 125 if (psta) in update_recvframe_phyinfo() 126 pkt_info.station_id = psta->mac_id; in update_recvframe_phyinfo() 134 if (psta) in update_recvframe_phyinfo() 135 psta->rssi = pattrib->phy_info.RecvSignalPower; in update_recvframe_phyinfo() 137 precvframe->u.hdr.psta = NULL; in update_recvframe_phyinfo() 142 if (psta) { in update_recvframe_phyinfo() 143 precvframe->u.hdr.psta = psta; in update_recvframe_phyinfo() 149 if (psta) in update_recvframe_phyinfo() [all …]
|