Home
last modified time | relevance | path

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

12

/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.c44 struct sta_info *psta = NULL; in free_mlme_ap_info() local
61 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
63 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
265 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
269 if ((psta->sta_stats.last_rx_data_pkts + in chk_sta_is_alive()
270 psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive()
271 (psta->sta_stats.rx_data_pkts + in chk_sta_is_alive()
272 psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive()
277 sta_update_last_rx_pkts(psta); in chk_sta_is_alive()
286 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()
335 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
349 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
351 pattrib->raid = psta->raid; in update_attrib_phy_info()
352 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info()
[all …]
Drtw_recv.c465 struct sta_info *psta; in portctrl() local
481 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
493 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in portctrl()
569 struct sta_info *psta = NULL; in process_pwrbit_data() local
571 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
575 if (psta) { in process_pwrbit_data()
577 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data()
578 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
580 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data()
581 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_mlme.c755 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
757 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources_locked()
760 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
765 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
769 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources_locked()
771 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
874 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
878 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
879 if (psta == NULL) in rtw_joinbss_update_stainfo()
880 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
Drtw_mlme_ext.c742 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument
785 if (psta) {/* for AP mode */ in issue_auth()
788 ether_addr_copy(pwlanhdr->addr1, psta->hwaddr); in issue_auth()
796 val16 = (u16)psta->authalg; in issue_auth()
812 val16 = (u16)psta->auth_seq; in issue_auth()
824 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth()
825 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen)); in issue_auth()
1584 struct sta_info *psta; in issue_action_BA() local
1639 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1640 if (psta != NULL) { in issue_action_BA()
[all …]
Drtw_wlan_util.c684 struct sta_info *psta; in bwmode_update_check() local
691 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check()
692 if (psta) { in bwmode_update_check()
693 struct ht_priv *phtpriv_sta = &psta->htpriv; in bwmode_update_check()
820 void VCS_update(struct adapter *padapter, struct sta_info *psta) in VCS_update() argument
828 psta->rtsen = 0; in VCS_update()
829 psta->cts2self = 0; in VCS_update()
833 psta->rtsen = 1; in VCS_update()
834 psta->cts2self = 0; in VCS_update()
836 psta->rtsen = 0; in VCS_update()
[all …]
Drtw_cmd.c567 u8 rtw_setstakey_cmd(struct adapter *padapter, u8 *psta, u8 unicast_key) in rtw_setstakey_cmd() argument
576 struct sta_info *sta = (struct sta_info *)psta; in rtw_setstakey_cmd()
611 u8 rtw_clearstakey_cmd(struct adapter *padapter, u8 *psta, u8 entry, u8 enqueue) in rtw_clearstakey_cmd() argument
617 struct sta_info *sta = (struct sta_info *)psta; in rtw_clearstakey_cmd()
1228 struct sta_info *psta = NULL; in rtw_createbss_cmd_callback() local
1246 psta = rtw_get_stainfo(&padapter->stapriv, pnetwork->MacAddress); in rtw_createbss_cmd_callback()
1247 if (!psta) { in rtw_createbss_cmd_callback()
1248 psta = rtw_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress); in rtw_createbss_cmd_callback()
1249 if (psta == NULL) { in rtw_createbss_cmd_callback()
1294 struct sta_info *psta = rtw_get_stainfo(pstapriv, psetstakey_rsp->addr); in rtw_setstaKey_cmdrsp_callback() local
[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.c188 struct sta_info *psta = NULL; in r8712_update_attrib() local
271 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib()
275 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib()
279 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib()
280 if (psta == NULL) /* drop the pkt */ in r8712_update_attrib()
285 pattrib->mac_id = psta->mac_id; in r8712_update_attrib()
289 if (psta) { in r8712_update_attrib()
290 pattrib->psta = psta; in r8712_update_attrib()
307 if (psta->ieee8021x_blocked) { in r8712_update_attrib()
313 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
[all …]
Drtl871x_recv.c249 struct sta_info *psta; in r8712_portctrl() local
258 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
266 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in r8712_portctrl()
313 struct sta_info **psta) in sta2sta_data_frame() argument
370 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame()
372 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
373 if (*psta == NULL) { in sta2sta_data_frame()
383 struct sta_info **psta) in ap2sta_data_frame() argument
420 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame()
422 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame()
[all …]
Drtl871x_cmd.c627 u8 r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key) in r8712_setstakey_cmd() argument
635 struct sta_info *sta = (struct sta_info *)psta; in r8712_setstakey_cmd()
845 struct sta_info *psta = NULL; in r8712_createbss_cmd_callback() local
882 psta = r8712_get_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback()
884 if (!psta) { in r8712_createbss_cmd_callback()
885 psta = r8712_alloc_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback()
887 if (!psta) in r8712_createbss_cmd_callback()
925 struct sta_info *psta = r8712_get_stainfo(pstapriv, in r8712_setstaKey_cmdrsp_callback() local
928 if (!psta) in r8712_setstaKey_cmdrsp_callback()
930 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback()
[all …]
Drtl871x_mlme.c632 struct sta_info *psta; in r8712_free_assoc_resources() local
634 psta = r8712_get_stainfo(&adapter->stapriv, in r8712_free_assoc_resources()
638 r8712_free_stainfo(adapter, psta); in r8712_free_assoc_resources()
919 struct sta_info *psta; in r8712_stassoc_event_callback() local
926 psta = r8712_get_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback()
927 if (psta != NULL) { in r8712_stassoc_event_callback()
935 psta = r8712_alloc_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback()
936 if (psta == NULL) in r8712_stassoc_event_callback()
939 psta->qos_option = 0; in r8712_stassoc_event_callback()
940 psta->mac_id = le32_to_cpu((uint)pstassoc->cam_id); in r8712_stassoc_event_callback()
[all …]
Drtl871x_mp_ioctl.c165 struct sta_info *psta; in mp_start_test() local
196 psta = r8712_get_stainfo(&padapter->stapriv, in mp_start_test()
198 if (psta) in mp_start_test()
199 r8712_free_stainfo(padapter, psta); in mp_start_test()
200 psta = r8712_alloc_stainfo(&padapter->stapriv, bssid.MacAddress); in mp_start_test()
201 if (psta == NULL) { in mp_start_test()
207 tgt_network->aid = psta->aid = 1; in mp_start_test()
224 struct sta_info *psta; in mp_stop_test() local
233 psta = r8712_get_stainfo(&padapter->stapriv, in mp_stop_test()
235 if (psta) in mp_stop_test()
[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.c442 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
446 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
447 if (!psta) { in wpa_set_encryption()
451 psta->ieee8021x_blocked = false; in wpa_set_encryption()
455 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
458 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)… in wpa_set_encryption()
461 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
462 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
468 rtw_setstakey_cmd(padapter, (unsigned char *)psta, true); in wpa_set_encryption()
2107 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
[all …]
Drecv_linux.c120 struct sta_info *psta = NULL; in rtw_recv_indicatepkt() local
128 psta = rtw_get_bcmc_stainfo(padapter); in rtw_recv_indicatepkt()
131 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
134 if (psta) { in rtw_recv_indicatepkt()
Dxmit_linux.c167 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local
176 psta = container_of(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst()
181 if (!memcmp(psta->hwaddr, &skb->data[6], 6)) in rtw_mlcst2unicst()
187 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
/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,
Drtw_xmit.h151 struct sta_info *psta; member
325 struct sta_info *psta, int up, u8 *ac);
351 void stop_sta_xmit(struct adapter *padapter, struct sta_info *psta);
352 void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta);
353 void xmit_delivery_enabled_frames(struct adapter *padapter, struct sta_info *psta);
/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()
Dhal_intf.c65 struct sta_info *psta = NULL; in rtw_hal_update_ra_mask() local
69 psta = pstapriv->sta_aid[(mac_id-1) - 1]; in rtw_hal_update_ra_mask()
70 if (psta) in rtw_hal_update_ra_mask()
71 add_RATid(adapt, psta, 0);/* todo: based on rssi_level*/ in rtw_hal_update_ra_mask()
Dodm.c937 struct sta_info *psta; in odm_RSSIMonitorCheckCE() local
944 psta = pDM_Odm->pODM_StaInfo[i]; in odm_RSSIMonitorCheckCE()
945 if (IS_STA_VALID(psta) && in odm_RSSIMonitorCheckCE()
946 (psta->state & WIFI_ASOC_STATE) && in odm_RSSIMonitorCheckCE()
947 memcmp(psta->hwaddr, bcast_addr, ETH_ALEN) && in odm_RSSIMonitorCheckCE()
948 memcmp(psta->hwaddr, myid(&Adapter->eeprompriv), ETH_ALEN)) { in odm_RSSIMonitorCheckCE()
949 if (psta->rssi_stat.UndecoratedSmoothedPWDB < tmpEntryMinPWDB) in odm_RSSIMonitorCheckCE()
950 tmpEntryMinPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE()
952 if (psta->rssi_stat.UndecoratedSmoothedPWDB > tmpEntryMaxPWDB) in odm_RSSIMonitorCheckCE()
953 tmpEntryMaxPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE()
[all …]
Drtl8188eu_xmit.c430 struct sta_info *psta = NULL; in rtl8188eu_xmitframe_complete() local
491 psta = pfirstframe->attrib.psta; in rtl8188eu_xmitframe_complete()
495 ptxservq = &(psta->sta_xmitpriv.bk_q); in rtl8188eu_xmitframe_complete()
500 ptxservq = &(psta->sta_xmitpriv.vi_q); in rtl8188eu_xmitframe_complete()
505 ptxservq = &(psta->sta_xmitpriv.vo_q); in rtl8188eu_xmitframe_complete()
511 ptxservq = &(psta->sta_xmitpriv.be_q); in rtl8188eu_xmitframe_complete()
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c338 struct il3945_sta_priv *psta; in il3945_rs_rate_init() local
347 psta = (struct il3945_sta_priv *)sta->drv_priv; in il3945_rs_rate_init()
348 rs_sta = &psta->rs_sta; in il3945_rs_rate_init()
410 struct il3945_sta_priv *psta = (void *)sta->drv_priv; in il3945_rs_alloc_sta() local
415 rs_sta = &psta->rs_sta; in il3945_rs_alloc_sta()
918 struct il3945_sta_priv *psta; in il3945_rate_scale_init() local
931 psta = (void *)sta->drv_priv; in il3945_rate_scale_init()
932 rs_sta = &psta->rs_sta; in il3945_rate_scale_init()

12