Home
last modified time | relevance | path

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

1234

/drivers/staging/rtl8723bs/core/
Drtw_sta_mgt.c20 void _rtw_init_stainfo(struct sta_info *psta);
21 void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
23 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
25 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
26 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
27 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
32 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo()
33 psta->sleepq_len = 0; in _rtw_init_stainfo()
35 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo()
36 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo()
[all …]
Drtw_ap.c45 struct sta_info *psta = NULL; in free_mlme_ap_info() local
63 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
64 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
202 u8 chk_sta_is_alive(struct sta_info *psta);
203 u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
208 , MAC_ARG(psta->hwaddr) in chk_sta_is_alive()
209 , psta->rssi_stat.UndecoratedSmoothedPWDB in chk_sta_is_alive()
211 , STA_RX_PKTS_DIFF_ARG(psta) in chk_sta_is_alive()
212 , psta->expire_to in chk_sta_is_alive()
213 , psta->state&WIFI_SLEEP_STATE?"PS, ":"" in chk_sta_is_alive()
[all …]
Drtw_xmit.c358 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument
362 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI()
363 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI()
365 switch (psta->bw_mode) { in query_ra_short_GI()
463 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
467 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info()
468 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info()
476 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
478 pattrib->raid = psta->raid; in update_attrib_phy_info()
480 if (mlmeext->cur_bwmode < psta->bw_mode) in update_attrib_phy_info()
[all …]
Drtw_debug.c500 struct sta_info *psta; in proc_get_ap_info() local
507 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info()
508 if (psta) { in proc_get_ap_info()
513 DBG_871X_SEL_NL(m, "sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr)); in proc_get_ap_info()
515 …NL(m, "wireless_mode = 0x%x, rtsen =%d, cts2slef =%d\n", psta->wireless_mode, psta->rtsen, psta->c… in proc_get_ap_info()
516 …_NL(m, "state = 0x%x, aid =%d, macid =%d, raid =%d\n", psta->state, psta->aid, psta->mac_id, psta-… in proc_get_ap_info()
517 …_SEL_NL(m, "qos_en =%d, ht_en =%d, init_rate =%d\n", psta->qos_option, psta->htpriv.ht_option, pst… in proc_get_ap_info()
518 …ch_offset =%d, sgi_20m =%d, sgi_40m =%d\n", psta->bw_mode, psta->htpriv.ch_offset, psta->htpriv.sg… in proc_get_ap_info()
519 DBG_871X_SEL_NL(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); in proc_get_ap_info()
520 …L(m, "agg_enable_bitmap =%x, candidate_tid_bitmap =%x\n", psta->htpriv.agg_enable_bitmap, psta->ht… in proc_get_ap_info()
[all …]
Drtw_recv.c561 struct sta_info *psta; in portctrl() local
579 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
584 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in portctrl()
667 struct sta_info *psta = NULL; in process_pwrbit_data() local
669 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
673 if (psta) { in process_pwrbit_data()
675 if (!(psta->state & WIFI_SLEEP_STATE)) { in process_pwrbit_data()
679 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
684 if (psta->state & WIFI_SLEEP_STATE) { in process_pwrbit_data()
688 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_wlan_util.c89 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) in networktype_to_raid_ex() argument
97 } else if (IsSupportedVHT(psta->wireless_mode)) { in networktype_to_raid_ex()
98 if (psta->ra_mask & 0xffc00000) in networktype_to_raid_ex()
100 } else if (IsSupportedHT(psta->wireless_mode)) { in networktype_to_raid_ex()
101 if (psta->ra_mask & 0xfff00000) in networktype_to_raid_ex()
105 switch (psta->wireless_mode) { in networktype_to_raid_ex()
127 if (psta->bw_mode == CHANNEL_WIDTH_20) { in networktype_to_raid_ex()
1090 struct sta_info *psta; in bwmode_update_check() local
1098 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check()
1099 if (psta) { in bwmode_update_check()
[all …]
Drtw_mlme_ext.c542 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local
571 if (psta != NULL) { in mgt_dispatcher()
573 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher()
580 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher()
642 struct sta_info *psta; in OnProbeReq() local
667 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
668 if (psta == NULL) { in OnProbeReq()
671 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
672 if (psta == NULL) { in OnProbeReq()
679 if (list_empty(&psta->asoc_list)) { in OnProbeReq()
[all …]
Drtw_mlme.c1073 struct sta_info *psta; in rtw_free_assoc_resources() local
1075 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources()
1077 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1084 struct sta_info *psta; in rtw_free_assoc_resources() local
1088 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources()
1089 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1213 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
1218 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
1219 if (psta == NULL) { in rtw_joinbss_update_stainfo()
1220 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_sta_mgt.c25 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
27 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
29 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
30 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
31 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
32 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo()
33 psta->sleepq_len = 0; in _rtw_init_stainfo()
35 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo()
36 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo()
40 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo()
[all …]
Drtw_ap.c43 struct sta_info *psta = NULL; in free_mlme_ap_info() local
60 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
62 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
262 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
266 if ((psta->sta_stats.last_rx_data_pkts + in chk_sta_is_alive()
267 psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive()
268 (psta->sta_stats.rx_data_pkts + in chk_sta_is_alive()
269 psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive()
274 sta_update_last_rx_pkts(psta); in chk_sta_is_alive()
283 struct sta_info *psta = NULL; in expire_timeout_chk() local
[all …]
Drtw_xmit.c262 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local
279 if (psta->rtsen) in update_attrib_vcs_info()
281 else if (psta->cts2self) in update_attrib_vcs_info()
296 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info()
297 if (psta->rtsen) in update_attrib_vcs_info()
299 else if (psta->cts2self) in update_attrib_vcs_info()
336 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
350 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
352 pattrib->raid = psta->raid; in update_attrib_phy_info()
353 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info()
[all …]
Drtw_recv.c431 struct sta_info *psta; in portctrl() local
447 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
459 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in portctrl()
535 struct sta_info *psta = NULL; in process_pwrbit_data() local
537 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
541 if (psta) { in process_pwrbit_data()
543 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data()
544 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
546 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data()
547 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_mlme.c751 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
753 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources_locked()
756 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
761 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
765 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources_locked()
767 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
869 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
873 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
874 if (!psta) in rtw_joinbss_update_stainfo()
875 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
Drtw_mlme_ext.c744 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument
787 if (psta) {/* for AP mode */ in issue_auth()
790 ether_addr_copy(pwlanhdr->addr1, psta->hwaddr); in issue_auth()
798 val16 = (u16)psta->authalg; in issue_auth()
814 val16 = (u16)psta->auth_seq; in issue_auth()
826 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth()
827 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen)); in issue_auth()
1571 struct sta_info *psta; in issue_action_BA() local
1626 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1627 if (psta != NULL) { in issue_action_BA()
[all …]
/drivers/staging/rtl8712/
Drtl871x_sta_mgt.c37 static void _init_stainfo(struct sta_info *psta) in _init_stainfo() argument
39 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _init_stainfo()
40 spin_lock_init(&psta->lock); in _init_stainfo()
41 INIT_LIST_HEAD(&psta->list); in _init_stainfo()
42 INIT_LIST_HEAD(&psta->hash_list); in _init_stainfo()
43 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv); in _init_stainfo()
44 _r8712_init_sta_recv_priv(&psta->sta_recvpriv); in _init_stainfo()
45 INIT_LIST_HEAD(&psta->asoc_list); in _init_stainfo()
46 INIT_LIST_HEAD(&psta->auth_list); in _init_stainfo()
51 struct sta_info *psta; in _r8712_init_sta_priv() local
[all …]
Drtl871x_xmit.c191 struct sta_info *psta = NULL; in r8712_update_attrib() local
275 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib()
279 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib()
283 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib()
284 if (psta == NULL) /* drop the pkt */ in r8712_update_attrib()
289 pattrib->mac_id = psta->mac_id; in r8712_update_attrib()
293 if (psta) { in r8712_update_attrib()
294 pattrib->psta = psta; in r8712_update_attrib()
311 if (psta->ieee8021x_blocked) { in r8712_update_attrib()
317 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
[all …]
Drtl871x_recv.c246 struct sta_info *psta; in r8712_portctrl() local
255 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
263 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in r8712_portctrl()
310 struct sta_info **psta) in sta2sta_data_frame() argument
367 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame()
369 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
370 if (*psta == NULL) { in sta2sta_data_frame()
380 struct sta_info **psta) in ap2sta_data_frame() argument
417 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame()
419 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
[all …]
/drivers/staging/rtl8188eu/os_dep/
Dmlme_linux.c126 void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta) in init_addba_retry_timer() argument
128 setup_timer(&psta->addba_retry_timer, addba_timer_hdl, in init_addba_retry_timer()
129 (unsigned long)psta); in init_addba_retry_timer()
144 void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_assoc_event() argument
149 if (!psta) in rtw_indicate_sta_assoc_event()
152 if (psta->aid > NUM_STA) in rtw_indicate_sta_assoc_event()
155 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
161 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event()
168 void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_disassoc_event() argument
173 if (!psta) in rtw_indicate_sta_disassoc_event()
[all …]
Dioctl_linux.c443 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
447 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
448 if (!psta) { in wpa_set_encryption()
452 psta->ieee8021x_blocked = false; in wpa_set_encryption()
456 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
459 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)… in wpa_set_encryption()
462 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
463 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
469 rtw_setstakey_cmd(padapter, (unsigned char *)psta, true); in wpa_set_encryption()
2106 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
[all …]
/drivers/staging/rtl8188eu/include/
Drtw_ap.h25 struct sta_info *psta);
27 struct sta_info *psta);
36 void add_RATid(struct adapter *padapter, struct sta_info *psta,
39 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
46 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta);
47 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta);
48 void sta_info_update(struct adapter *padapter, struct sta_info *psta);
49 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
50 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
/drivers/staging/rtl8723bs/include/
Drtw_ap.h22 void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level);
24 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
32 u8 rtw_ap_set_pairwise_key(struct adapter *padapter, struct sta_info *psta);
37 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta);
38 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta);
39 void sta_info_update(struct adapter *padapter, struct sta_info *psta);
40 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
41 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16 reason);
/drivers/staging/rtl8188eu/hal/
Drtl8188e_rxdesc.c147 struct sta_info *psta; in update_recvframe_phyinfo_88e() local
177 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
178 if (psta) in update_recvframe_phyinfo_88e()
179 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo_88e()
185 precvframe->psta = NULL; in update_recvframe_phyinfo_88e()
188 if (psta) { in update_recvframe_phyinfo_88e()
189 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
194 if (psta) in update_recvframe_phyinfo_88e()
195 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c610 struct sta_info * psta,*pbcmc_sta; in wpa_set_encryption() local
614 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
615 if (psta == NULL) { in wpa_set_encryption()
620 psta->ieee8021x_blocked = false; in wpa_set_encryption()
624 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
628 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->… in wpa_set_encryption()
632 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
633 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
642 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption()
2788 struct sta_info *psta; in rtw_dbg_port() local
[all …]
Drecv_linux.c134 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local
146 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt()
149 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
152 if (psta) in rtw_os_recv_indicate_pkt()
264 struct sta_info *psta = precv_frame->u.hdr.psta; in rtw_os_ksocket_send() local
268 if (psta && psta->isrc && psta->pid>0) in rtw_os_ksocket_send()
275 rx_pid, MAC_ARG(psta->hwaddr), psta->pid); in rtw_os_ksocket_send()
277 if (rx_pid == psta->pid) in rtw_os_ksocket_send()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_dm.c215 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local
224 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps()
225 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps()
226 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps()
242 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local
264 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
265 if (psta == NULL) in rtl8723b_HalDmWatchDog_in_LPS()
268 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()

1234