/Linux-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_sta_mgt.c | 12 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 …]
|
D | rtw_ap.c | 37 struct sta_info *psta = NULL; in free_mlme_ap_info() local 55 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info() 56 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info() 194 u8 chk_sta_is_alive(struct sta_info *psta); 195 u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument 200 , MAC_ARG(psta->hwaddr) in chk_sta_is_alive() 201 , psta->rssi_stat.UndecoratedSmoothedPWDB in chk_sta_is_alive() 203 , STA_RX_PKTS_DIFF_ARG(psta) in chk_sta_is_alive() 204 , psta->expire_to in chk_sta_is_alive() 205 , psta->state&WIFI_SLEEP_STATE?"PS, ":"" in chk_sta_is_alive() [all …]
|
D | rtw_xmit.c | 345 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument 349 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI() 350 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI() 352 switch (psta->bw_mode) { in query_ra_short_GI() 450 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument 454 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info() 455 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info() 463 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 465 pattrib->raid = psta->raid; in update_attrib_phy_info() 467 if (mlmeext->cur_bwmode < psta->bw_mode) in update_attrib_phy_info() [all …]
|
D | rtw_debug.c | 492 struct sta_info *psta; in proc_get_ap_info() local 499 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info() 500 if (psta) { in proc_get_ap_info() 505 DBG_871X_SEL_NL(m, "sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr)); in proc_get_ap_info() 507 …NL(m, "wireless_mode = 0x%x, rtsen =%d, cts2slef =%d\n", psta->wireless_mode, psta->rtsen, psta->c… in proc_get_ap_info() 508 …_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() 509 …_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() 510 …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() 511 DBG_871X_SEL_NL(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); in proc_get_ap_info() 512 …L(m, "agg_enable_bitmap =%x, candidate_tid_bitmap =%x\n", psta->htpriv.agg_enable_bitmap, psta->ht… in proc_get_ap_info() [all …]
|
D | rtw_recv.c | 550 struct sta_info *psta; in portctrl() local 568 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 573 if ((psta != NULL) && (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 …]
|
D | rtw_wlan_util.c | 83 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() 1048 struct sta_info *psta; in bwmode_update_check() local 1055 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check() 1056 if (psta) { in bwmode_update_check() [all …]
|
D | rtw_mlme_ext.c | 534 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local 563 if (psta != NULL) { in mgt_dispatcher() 565 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher() 572 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher() 634 struct sta_info *psta; in OnProbeReq() local 659 psta = rtw_get_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq() 660 if (psta == NULL) { in OnProbeReq() 663 psta = rtw_alloc_stainfo(pstapriv, get_sa(pframe)); in OnProbeReq() 664 if (psta == NULL) { in OnProbeReq() 671 if (list_empty(&psta->asoc_list)) { in OnProbeReq() [all …]
|
D | rtw_mlme.c | 1063 struct sta_info *psta; in rtw_free_assoc_resources() local 1065 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources() 1067 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 1074 struct sta_info *psta; in rtw_free_assoc_resources() local 1078 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 1079 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 1203 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 1208 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 1209 if (psta == NULL) { in rtw_joinbss_update_stainfo() 1210 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/core/ |
D | rtw_sta_mgt.c | 17 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 …]
|
D | rtw_ap.c | 35 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 …]
|
D | rtw_xmit.c | 248 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 336 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 338 pattrib->raid = psta->raid; in update_attrib_phy_info() 339 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info() [all …]
|
D | rtw_recv.c | 425 struct sta_info *psta; in portctrl() local 441 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 453 if ((psta != NULL) && (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 …]
|
D | rtw_mlme.c | 740 struct sta_info *psta; in rtw_free_assoc_resources_locked() local 742 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources_locked() 745 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked() 750 struct sta_info *psta; in rtw_free_assoc_resources_locked() local 754 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources_locked() 756 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked() 857 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 861 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 862 if (!psta) in rtw_joinbss_update_stainfo() 863 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() [all …]
|
D | rtw_mlme_ext.c | 735 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument 777 if (psta) {/* for AP mode */ in issue_auth() 780 ether_addr_copy(pwlanhdr->addr1, psta->hwaddr); in issue_auth() 787 val16 = (u16)psta->authalg; in issue_auth() 803 val16 = (u16)psta->auth_seq; in issue_auth() 815 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth() 816 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen)); in issue_auth() 1559 struct sta_info *psta; in issue_action_BA() local 1614 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA() 1615 if (psta) { in issue_action_BA() [all …]
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_sta_mgt.c | 37 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 …]
|
D | rtl871x_xmit.c | 191 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 …]
|
D | rtl871x_recv.c | 246 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 …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_ap.h | 17 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-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | mlme_linux.c | 115 void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta) in init_addba_retry_timer() argument 117 timer_setup(&psta->addba_retry_timer, addba_timer_hdl, 0); in init_addba_retry_timer() 130 void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_assoc_event() argument 135 if (!psta) in rtw_indicate_sta_assoc_event() 138 if (psta->aid > NUM_STA) in rtw_indicate_sta_assoc_event() 141 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event() 146 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event() 153 void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_disassoc_event() argument 158 if (!psta) in rtw_indicate_sta_disassoc_event() 161 if (psta->aid > NUM_STA) in rtw_indicate_sta_disassoc_event() [all …]
|
D | ioctl_linux.c | 432 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() 2078 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument [all …]
|
/Linux-v4.19/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-v4.19/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_rxdesc.c | 139 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()
|
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | recv_linux.c | 127 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local 139 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt() 142 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt() 145 if (psta) in rtw_os_recv_indicate_pkt() 257 struct sta_info *psta = precv_frame->u.hdr.psta; in rtw_os_ksocket_send() local 261 if (psta && psta->isrc && psta->pid>0) in rtw_os_ksocket_send() 268 rx_pid, MAC_ARG(psta->hwaddr), psta->pid); in rtw_os_ksocket_send() 270 if (rx_pid == psta->pid) in rtw_os_ksocket_send()
|
D | ioctl_linux.c | 531 struct sta_info * psta,*pbcmc_sta; in wpa_set_encryption() local 535 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 536 if (psta == NULL) { in wpa_set_encryption() 541 psta->ieee8021x_blocked = false; in wpa_set_encryption() 545 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption() 549 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->… in wpa_set_encryption() 553 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption() 554 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption() 563 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption() 2693 struct sta_info *psta; in rtw_dbg_port() local [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_dm.c | 207 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 == NULL) in rtl8723b_HalDmWatchDog_in_LPS() 260 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()
|