Home
last modified time | relevance | path

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

1234

/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.c425 struct sta_info *psta; in portctrl() local
441 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
453 if (psta && (psta->ieee8021x_blocked)) { in portctrl()
529 struct sta_info *psta = NULL; in process_pwrbit_data() local
531 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
535 if (psta) { in process_pwrbit_data()
537 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data()
538 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
540 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data()
541 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.c734 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument
776 if (psta) {/* for AP mode */ in issue_auth()
779 ether_addr_copy(pwlanhdr->addr1, psta->hwaddr); in issue_auth()
786 val16 = (u16)psta->authalg; in issue_auth()
802 val16 = (u16)psta->auth_seq; in issue_auth()
814 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth()
815 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &pattrib->pktlen); in issue_auth()
1558 struct sta_info *psta; in issue_action_BA() local
1613 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1614 if (psta) { in issue_action_BA()
[all …]
/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.c35 struct sta_info *psta = NULL; in free_mlme_ap_info() local
53 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
54 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
179 u8 chk_sta_is_alive(struct sta_info *psta);
180 u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
185 , MAC_ARG(psta->hwaddr) in chk_sta_is_alive()
186 , psta->rssi_stat.UndecoratedSmoothedPWDB in chk_sta_is_alive()
188 , STA_RX_PKTS_DIFF_ARG(psta) in chk_sta_is_alive()
189 , psta->expire_to in chk_sta_is_alive()
190 , psta->state & WIFI_SLEEP_STATE ? "PS, " : "" in chk_sta_is_alive()
[all …]
Drtw_xmit.c347 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument
351 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI()
352 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI()
354 switch (psta->bw_mode) { in query_ra_short_GI()
452 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
456 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info()
457 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info()
465 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
467 pattrib->raid = psta->raid; in update_attrib_phy_info()
469 if (mlmeext->cur_bwmode < psta->bw_mode) in update_attrib_phy_info()
[all …]
Drtw_recv.c550 struct sta_info *psta; in portctrl() local
568 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
573 if ((psta) && (psta->ieee8021x_blocked)) { in portctrl()
656 struct sta_info *psta = NULL; in process_pwrbit_data() local
658 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
662 if (psta) { in process_pwrbit_data()
664 if (!(psta->state & WIFI_SLEEP_STATE)) { in process_pwrbit_data()
668 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
673 if (psta->state & WIFI_SLEEP_STATE) { in process_pwrbit_data()
677 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_wlan_util.c83 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) in networktype_to_raid_ex() argument
91 } else if (IsSupportedVHT(psta->wireless_mode)) { in networktype_to_raid_ex()
92 if (psta->ra_mask & 0xffc00000) in networktype_to_raid_ex()
94 } else if (IsSupportedHT(psta->wireless_mode)) { in networktype_to_raid_ex()
95 if (psta->ra_mask & 0xfff00000) in networktype_to_raid_ex()
99 switch (psta->wireless_mode) { in networktype_to_raid_ex()
121 if (psta->bw_mode == CHANNEL_WIDTH_20) { in networktype_to_raid_ex()
1043 struct sta_info *psta; in bwmode_update_check() local
1050 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check()
1051 if (psta) { in bwmode_update_check()
[all …]
Drtw_mlme_ext.c524 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local
553 if (psta != NULL) { in mgt_dispatcher()
555 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher()
562 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher()
624 struct sta_info *psta; in OnProbeReq() local
649 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
650 if (psta == NULL) { in OnProbeReq()
653 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq()
654 if (!psta) { in OnProbeReq()
661 if (list_empty(&psta->asoc_list)) { in OnProbeReq()
[all …]
Drtw_mlme.c1034 struct sta_info *psta; in rtw_free_assoc_resources() local
1036 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources()
1038 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1045 struct sta_info *psta; in rtw_free_assoc_resources() local
1049 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources()
1050 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources()
1166 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
1171 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
1172 if (psta == NULL) { in rtw_joinbss_update_stainfo()
1173 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
/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.c180 struct sta_info *psta = NULL; in r8712_update_attrib() local
264 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib()
268 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib()
272 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib()
273 if (psta == NULL) /* drop the pkt */ in r8712_update_attrib()
278 pattrib->mac_id = psta->mac_id; in r8712_update_attrib()
282 if (psta) { in r8712_update_attrib()
283 pattrib->psta = psta; in r8712_update_attrib()
300 if (psta->ieee8021x_blocked) { in r8712_update_attrib()
306 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
[all …]
Drtl871x_recv.c234 struct sta_info *psta; in r8712_portctrl() local
243 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
250 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in r8712_portctrl()
297 struct sta_info **psta) in sta2sta_data_frame() argument
354 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame()
356 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
357 if (*psta == NULL) { in sta2sta_data_frame()
367 struct sta_info **psta) in ap2sta_data_frame() argument
404 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame()
406 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
[all …]
/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.c432 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
436 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
437 if (!psta) { in wpa_set_encryption()
441 psta->ieee8021x_blocked = false; in wpa_set_encryption()
445 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
448 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)… in wpa_set_encryption()
451 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
452 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
458 rtw_setstakey_cmd(padapter, (unsigned char *)psta, true); in wpa_set_encryption()
2077 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
[all …]
/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,
/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);
/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()
/drivers/staging/rtl8723bs/os_dep/
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:param->… 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()
2672 struct sta_info *psta; in rtw_dbg_port() local
[all …]
Drecv_linux.c108 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local
118 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt()
121 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt()
124 if (psta) { in rtw_os_recv_indicate_pkt()
222 struct sta_info *psta = precv_frame->u.hdr.psta; in rtw_os_ksocket_send() local
226 if (psta && psta->isrc && psta->pid>0) { in rtw_os_ksocket_send()
232 rx_pid, MAC_ARG(psta->hwaddr), psta->pid); in rtw_os_ksocket_send()
234 if (rx_pid == psta->pid) { in rtw_os_ksocket_send()
Dxmit_linux.c133 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local
151 psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst()
154 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst()
162 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst()
163 if (!(psta->state & _FW_LINKED)) { in rtw_mlcst2unicst()
169 if (!memcmp(psta->hwaddr, &skb->data[6], 6) || in rtw_mlcst2unicst()
170 !memcmp(psta->hwaddr, null_addr, 6) || in rtw_mlcst2unicst()
171 !memcmp(psta->hwaddr, bc_addr, 6)) { in rtw_mlcst2unicst()
181 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_dm.c207 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local
216 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps()
217 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps()
218 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps()
234 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local
256 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
257 if (!psta) in rtl8723b_HalDmWatchDog_in_LPS()
260 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()

1234