Home
last modified time | relevance | path

Searched refs:psta (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_sta_mgt.c17 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
19 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
21 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
22 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
23 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
24 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo()
25 psta->sleepq_len = 0; in _rtw_init_stainfo()
27 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo()
28 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo()
32 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo()
[all …]
Drtw_ap.c35 struct sta_info *psta = NULL; in free_mlme_ap_info() local
52 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
54 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
148 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
152 if ((psta->sta_stats.last_rx_data_pkts + in chk_sta_is_alive()
153 psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive()
154 (psta->sta_stats.rx_data_pkts + in chk_sta_is_alive()
155 psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive()
160 sta_update_last_rx_pkts(psta); in chk_sta_is_alive()
169 struct sta_info *psta = NULL; in expire_timeout_chk() local
[all …]
Drtw_xmit.c246 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local
265 if (psta->rtsen) in update_attrib_vcs_info()
267 else if (psta->cts2self) in update_attrib_vcs_info()
282 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info()
283 if (psta->rtsen) in update_attrib_vcs_info()
285 else if (psta->cts2self) in update_attrib_vcs_info()
322 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
329 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
331 pattrib->raid = psta->raid; in update_attrib_phy_info()
332 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info()
[all …]
Drtw_recv.c417 struct sta_info *psta; in portctrl() local
433 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
445 if (psta && (psta->ieee8021x_blocked)) { in portctrl()
521 struct sta_info *psta = NULL; in process_pwrbit_data() local
523 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
527 if (psta) { in process_pwrbit_data()
529 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data()
530 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
532 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data()
533 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_mlme.c737 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
739 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources_locked()
742 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
747 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
751 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources_locked()
753 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
831 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
835 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
836 if (!psta) in rtw_joinbss_update_stainfo()
837 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
Drtw_mlme_ext.c728 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument
770 if (psta) {/* for AP mode */ in issue_auth()
773 ether_addr_copy(pwlanhdr->addr1, psta->hwaddr); in issue_auth()
780 val16 = (u16)psta->authalg; in issue_auth()
796 val16 = (u16)psta->auth_seq; in issue_auth()
808 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth()
809 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &pattrib->pktlen); in issue_auth()
1552 struct sta_info *psta; in issue_action_BA() local
1607 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1608 if (psta) { in issue_action_BA()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_sta_mgt.c12 void _rtw_init_stainfo(struct sta_info *psta);
13 void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
15 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
17 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
18 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
19 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
24 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo()
25 psta->sleepq_len = 0; in _rtw_init_stainfo()
27 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo()
28 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo()
[all …]
Drtw_ap.c36 struct sta_info *psta = NULL; in free_mlme_ap_info() local
54 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
55 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
180 u8 chk_sta_is_alive(struct sta_info *psta);
181 u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
186 , MAC_ARG(psta->hwaddr) in chk_sta_is_alive()
187 , psta->rssi_stat.UndecoratedSmoothedPWDB in chk_sta_is_alive()
189 , STA_RX_PKTS_DIFF_ARG(psta) in chk_sta_is_alive()
190 , psta->expire_to in chk_sta_is_alive()
191 , psta->state & WIFI_SLEEP_STATE ? "PS, " : "" in chk_sta_is_alive()
[all …]
Drtw_xmit.c332 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument
336 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI()
337 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI()
339 switch (psta->bw_mode) { in query_ra_short_GI()
436 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
440 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info()
441 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info()
449 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
451 pattrib->raid = psta->raid; in update_attrib_phy_info()
453 if (mlmeext->cur_bwmode < psta->bw_mode) in update_attrib_phy_info()
[all …]
Drtw_recv.c548 struct sta_info *psta; in portctrl() local
566 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
571 if ((psta) && (psta->ieee8021x_blocked)) { in portctrl()
654 struct sta_info *psta = NULL; in process_pwrbit_data() local
656 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
660 if (psta) { in process_pwrbit_data()
662 if (!(psta->state & WIFI_SLEEP_STATE)) { in process_pwrbit_data()
666 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
671 if (psta->state & WIFI_SLEEP_STATE) { in process_pwrbit_data()
675 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_wlan_util.c57 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) in networktype_to_raid_ex() argument
65 } else if (IsSupportedVHT(psta->wireless_mode)) { in networktype_to_raid_ex()
66 if (psta->ra_mask & 0xffc00000) in networktype_to_raid_ex()
68 } else if (IsSupportedHT(psta->wireless_mode)) { in networktype_to_raid_ex()
69 if (psta->ra_mask & 0xfff00000) in networktype_to_raid_ex()
73 switch (psta->wireless_mode) { in networktype_to_raid_ex()
95 if (psta->bw_mode == CHANNEL_WIDTH_20) { in networktype_to_raid_ex()
991 struct sta_info *psta; in bwmode_update_check() local
998 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check()
999 if (psta) { in bwmode_update_check()
[all …]
Drtw_mlme_ext.c525 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local
554 if (psta != NULL) { in mgt_dispatcher()
556 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher()
563 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher()
625 struct sta_info *psta; in OnProbeReq() local
650 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
651 if (psta == NULL) { in OnProbeReq()
654 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
655 if (!psta) { in OnProbeReq()
662 if (list_empty(&psta->asoc_list)) { in OnProbeReq()
[all …]
Drtw_mlme.c994 struct sta_info *psta; in rtw_free_assoc_resources() local
996 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources()
998 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1005 struct sta_info *psta; in rtw_free_assoc_resources() local
1009 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources()
1010 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1123 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
1128 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
1129 if (!psta) in rtw_joinbss_update_stainfo()
1130 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_sta_mgt.c25 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 …]
Drtl871x_xmit.c179 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 …]
Drtl871x_recv.c229 struct sta_info *psta; in r8712_portctrl() local
238 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
245 if (psta && psta->ieee8021x_blocked) { in r8712_portctrl()
292 struct sta_info **psta) in sta2sta_data_frame() argument
349 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame()
351 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
352 if (!*psta) { in sta2sta_data_frame()
362 struct sta_info **psta) in ap2sta_data_frame() argument
399 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame()
401 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dmlme_linux.c114 void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta) in init_addba_retry_timer() argument
116 timer_setup(&psta->addba_retry_timer, addba_timer_hdl, 0); in init_addba_retry_timer()
129 void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_assoc_event() argument
134 if (!psta) in rtw_indicate_sta_assoc_event()
137 if (psta->aid > NUM_STA) in rtw_indicate_sta_assoc_event()
140 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
145 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event()
152 void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_disassoc_event() argument
157 if (!psta) in rtw_indicate_sta_disassoc_event()
160 if (psta->aid > NUM_STA) in rtw_indicate_sta_disassoc_event()
[all …]
Dioctl_linux.c429 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
433 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
434 if (!psta) { in wpa_set_encryption()
438 psta->ieee8021x_blocked = false; in wpa_set_encryption()
442 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
445 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); in wpa_set_encryption()
448 memcpy(psta->dot11tkiptxmickey.skey, &param->u.crypt.key[16], 8); in wpa_set_encryption()
449 memcpy(psta->dot11tkiprxmickey.skey, &param->u.crypt.key[24], 8); in wpa_set_encryption()
455 rtw_setstakey_cmd(padapter, (unsigned char *)psta, true); in wpa_set_encryption()
2049 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/include/
Drtw_ap.h17 struct sta_info *psta);
19 struct sta_info *psta);
24 void add_RATid(struct adapter *padapter, struct sta_info *psta,
27 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
34 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta);
35 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta);
36 void sta_info_update(struct adapter *padapter, struct sta_info *psta);
37 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
38 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
/Linux-v5.10/drivers/staging/rtl8723bs/include/
Drtw_ap.h14 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.10/drivers/staging/rtl8188eu/hal/
Drtl8188e_rxdesc.c139 struct sta_info *psta; in update_recvframe_phyinfo_88e() local
169 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
170 if (psta) in update_recvframe_phyinfo_88e()
171 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo_88e()
177 precvframe->psta = NULL; in update_recvframe_phyinfo_88e()
180 if (psta) { in update_recvframe_phyinfo_88e()
181 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
186 if (psta) in update_recvframe_phyinfo_88e()
187 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
Dhal_intf.c55 struct sta_info *psta = NULL; in rtw_hal_update_ra_mask() local
59 psta = pstapriv->sta_aid[mac_id - 2]; in rtw_hal_update_ra_mask()
60 if (psta) in rtw_hal_update_ra_mask()
61 add_RATid(adapt, psta, 0);/* todo: based on rssi_level*/ in rtw_hal_update_ra_mask()
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c107 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local
113 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt()
116 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
119 if (psta) { in rtw_os_recv_indicate_pkt()
214 struct sta_info *psta = precv_frame->u.hdr.psta; in rtw_os_ksocket_send() local
218 if (psta && psta->isrc && psta->pid > 0) { in rtw_os_ksocket_send()
224 rx_pid, MAC_ARG(psta->hwaddr), psta->pid); in rtw_os_ksocket_send()
226 if (rx_pid == psta->pid) { in rtw_os_ksocket_send()
Dioctl_linux.c524 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
528 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
529 if (psta == NULL) { in wpa_set_encryption()
534 psta->ieee8021x_blocked = false; in wpa_set_encryption()
538 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
542 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : par… in wpa_set_encryption()
546 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
547 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
556 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption()
2668 struct sta_info *psta; in rtw_dbg_port() local
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Drtl8723b_dm.c208 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local
217 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps()
218 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps()
219 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps()
235 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local
257 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
258 if (!psta) in rtl8723b_HalDmWatchDog_in_LPS()
261 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()

1234