/linux-6.1.9/drivers/staging/r8188eu/core/ |
D | rtw_sta_mgt.c | 10 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument 13 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo() 15 spin_lock_init(&psta->lock); in _rtw_init_stainfo() 16 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo() 17 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo() 18 rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo() 19 psta->sleepq_len = 0; in _rtw_init_stainfo() 21 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo() 22 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo() 24 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo() [all …]
|
D | rtw_ap.c | 28 struct sta_info *psta = NULL; in free_mlme_ap_info() local 45 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info() 47 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info() 141 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument 145 if ((psta->sta_stats.last_rx_data_pkts + psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive() 146 (psta->sta_stats.rx_data_pkts + psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive() 151 sta_update_last_rx_pkts(psta); in chk_sta_is_alive() 160 struct sta_info *psta = NULL; in expire_timeout_chk() local 173 psta = container_of(plist, struct sta_info, auth_list); in expire_timeout_chk() 176 if (psta->expire_to > 0) { in expire_timeout_chk() [all …]
|
D | rtw_xmit.c | 321 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local 338 if (psta->rtsen) in update_attrib_vcs_info() 340 else if (psta->cts2self) in update_attrib_vcs_info() 355 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info() 356 if (psta->rtsen) in update_attrib_vcs_info() 358 else if (psta->cts2self) in update_attrib_vcs_info() 395 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument 409 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 411 pattrib->raid = psta->raid; in update_attrib_phy_info() 412 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info() [all …]
|
D | rtw_recv.c | 501 struct sta_info *psta; in portctrl() local 520 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 523 if (psta && psta->ieee8021x_blocked) { in portctrl() 578 struct sta_info *psta = NULL; in process_pwrbit_data() local 580 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 584 if (psta) { in process_pwrbit_data() 586 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data() 587 stop_sta_xmit(padapter, psta); in process_pwrbit_data() 589 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data() 590 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data() [all …]
|
D | rtw_mlme.c | 803 struct sta_info *psta; in rtw_free_assoc_resources() local 805 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources() 808 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 813 struct sta_info *psta; in rtw_free_assoc_resources() local 817 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 819 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 943 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 947 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() 948 if (!psta) in rtw_joinbss_update_stainfo() 949 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo() [all …]
|
D | rtw_p2p.c | 29 struct sta_info *psta = NULL; in go_add_group_info_attr() local 44 psta = container_of(plist, struct sta_info, asoc_list); in go_add_group_info_attr() 48 if (psta->is_p2p_device) { in go_add_group_info_attr() 54 memcpy(pcur, psta->dev_addr, ETH_ALEN); in go_add_group_info_attr() 58 memcpy(pcur, psta->hwaddr, ETH_ALEN); in go_add_group_info_attr() 61 *pcur = psta->dev_cap; in go_add_group_info_attr() 65 RTW_PUT_BE16(pcur, psta->config_methods); in go_add_group_info_attr() 68 memcpy(pcur, psta->primary_dev_type, 8); in go_add_group_info_attr() 71 *pcur = psta->num_of_secdev_type; in go_add_group_info_attr() 74 memcpy(pcur, psta->secdev_types_list, psta->num_of_secdev_type * 8); in go_add_group_info_attr() [all …]
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_sta_mgt.c | 10 void _rtw_init_stainfo(struct sta_info *psta); 11 void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument 13 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo() 15 spin_lock_init(&psta->lock); in _rtw_init_stainfo() 16 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo() 17 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo() 22 INIT_LIST_HEAD(&psta->sleep_q.queue); in _rtw_init_stainfo() 23 spin_lock_init(&psta->sleep_q.lock); in _rtw_init_stainfo() 24 psta->sleepq_len = 0; in _rtw_init_stainfo() 26 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo() [all …]
|
D | rtw_ap.c | 31 struct sta_info *psta = NULL; in free_mlme_ap_info() local 49 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info() 50 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info() 167 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument 169 sta_update_last_rx_pkts(psta); in chk_sta_is_alive() 178 struct sta_info *psta = NULL; in expire_timeout_chk() local 189 psta = list_entry(plist, struct sta_info, auth_list); in expire_timeout_chk() 191 if (psta->expire_to > 0) { in expire_timeout_chk() 192 psta->expire_to--; in expire_timeout_chk() 193 if (psta->expire_to == 0) { in expire_timeout_chk() [all …]
|
D | rtw_xmit.c | 333 u8 query_ra_short_GI(struct sta_info *psta) in query_ra_short_GI() argument 337 sgi_20m = psta->htpriv.sgi_20m; in query_ra_short_GI() 338 sgi_40m = psta->htpriv.sgi_40m; in query_ra_short_GI() 340 switch (psta->bw_mode) { in query_ra_short_GI() 435 …update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument 439 pattrib->rtsen = psta->rtsen; in update_attrib_phy_info() 440 pattrib->cts2self = psta->cts2self; in update_attrib_phy_info() 448 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info() 450 pattrib->raid = psta->raid; in update_attrib_phy_info() 452 pattrib->bwmode = min(mlmeext->cur_bwmode, psta->bw_mode); in update_attrib_phy_info() [all …]
|
D | rtw_recv.c | 449 struct sta_info *psta; in portctrl() local 467 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl() 470 if ((psta) && (psta->ieee8021x_blocked)) { in portctrl() 537 struct sta_info *psta = NULL; in process_pwrbit_data() local 539 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data() 543 if (psta) { in process_pwrbit_data() 545 if (!(psta->state & WIFI_SLEEP_STATE)) { in process_pwrbit_data() 549 stop_sta_xmit(padapter, psta); in process_pwrbit_data() 553 if (psta->state & WIFI_SLEEP_STATE) { in process_pwrbit_data() 557 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data() [all …]
|
D | rtw_wlan_util.c | 47 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) in networktype_to_raid_ex() argument 51 switch (psta->wireless_mode) { in networktype_to_raid_ex() 67 if (psta->bw_mode == CHANNEL_WIDTH_20) { in networktype_to_raid_ex() 939 struct sta_info *psta; in bwmode_update_check() local 946 psta = rtw_get_stainfo(pstapriv, cur_network->mac_address); in bwmode_update_check() 947 if (psta) { in bwmode_update_check() 948 struct ht_priv *phtpriv_sta = &psta->htpriv; in bwmode_update_check() 952 psta->bw_mode = pmlmeext->cur_bwmode; in bwmode_update_check() 955 psta->bw_mode = CHANNEL_WIDTH_20; in bwmode_update_check() 959 rtw_dm_ra_mask_wk_cmd(padapter, (u8 *)psta); in bwmode_update_check() [all …]
|
D | rtw_mlme.c | 908 struct sta_info *psta; in rtw_free_assoc_resources() local 910 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.mac_address); in rtw_free_assoc_resources() 911 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 915 struct sta_info *psta; in rtw_free_assoc_resources() local 919 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 920 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 1021 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 1026 psta = rtw_get_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1027 if (!psta) in rtw_joinbss_update_stainfo() 1028 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() [all …]
|
D | rtw_mlme_ext.c | 444 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local 466 if (psta) { in mgt_dispatcher() 468 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher() 474 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher() 571 struct sta_info *psta; in OnBeacon() local 628 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 629 if (psta) { in OnBeacon() 640 if ((sta_rx_pkts(psta) & 0xf) == 0) in OnBeacon() 641 update_beacon_info(padapter, pframe, len, psta); in OnBeacon() 646 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() [all …]
|
D | rtw_btcoex.c | 39 struct sta_info *psta; in rtw_btcoex_RejectApAggregatedPacket() local 42 psta = rtw_get_stainfo(&padapter->stapriv, get_bssid(&padapter->mlmepriv)); in rtw_btcoex_RejectApAggregatedPacket() 46 if (psta) in rtw_btcoex_RejectApAggregatedPacket() 47 send_delba(padapter, 0, psta->hwaddr); in rtw_btcoex_RejectApAggregatedPacket()
|
/linux-6.1.9/drivers/staging/rtl8712/ |
D | rtl871x_sta_mgt.c | 25 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 …]
|
D | rtl871x_xmit.c | 179 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 …]
|
D | rtl871x_recv.c | 231 struct sta_info *psta; in r8712_portctrl() local 240 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl() 247 if (psta && psta->ieee8021x_blocked) { in r8712_portctrl() 294 struct sta_info **psta) in sta2sta_data_frame() argument 351 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame() 353 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 354 if (!*psta) { in sta2sta_data_frame() 364 struct sta_info **psta) in ap2sta_data_frame() argument 401 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame() 403 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() [all …]
|
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 138 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local 142 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 143 if (!psta) { in wpa_set_encryption() 148 psta->ieee8021x_blocked = false; in wpa_set_encryption() 152 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption() 156 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : par… in wpa_set_encryption() 160 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption() 161 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption() 167 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption() 528 struct sta_info *psta = NULL, *pbcmc_sta = NULL; in rtw_set_encryption() local [all …]
|
D | xmit_linux.c | 129 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local 144 psta = list_entry(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst() 146 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst() 154 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst() 155 if (!(psta->state & _FW_LINKED)) in rtw_mlcst2unicst() 159 if (!memcmp(psta->hwaddr, &skb->data[6], 6) || in rtw_mlcst2unicst() 160 !memcmp(psta->hwaddr, null_addr, 6) || in rtw_mlcst2unicst() 161 !memcmp(psta->hwaddr, bc_addr, 6)) in rtw_mlcst2unicst() 167 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
|
/linux-6.1.9/drivers/staging/r8188eu/include/ |
D | rtw_ap.h | 12 struct sta_info *psta); 17 void add_RATid(struct adapter *padapter, struct sta_info *psta, 20 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta); 24 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta); 25 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta); 26 void sta_info_update(struct adapter *padapter, struct sta_info *psta); 27 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
|
/linux-6.1.9/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-6.1.9/drivers/staging/r8188eu/hal/ |
D | rtl8188e_rxdesc.c | 120 struct sta_info *psta; in update_recvframe_phyinfo_88e() local 142 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e() 143 if (psta) in update_recvframe_phyinfo_88e() 144 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo_88e() 149 precvframe->psta = NULL; in update_recvframe_phyinfo_88e() 152 if (psta) { in update_recvframe_phyinfo_88e() 153 precvframe->psta = psta; in update_recvframe_phyinfo_88e() 158 if (psta) in update_recvframe_phyinfo_88e() 159 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
|
D | hal_intf.c | 46 struct sta_info *psta = NULL; in rtw_hal_update_ra_mask() local 49 psta = pstapriv->sta_aid[(mac_id - 1) - 1]; in rtw_hal_update_ra_mask() 50 if (psta) in rtw_hal_update_ra_mask() 51 add_RATid(adapt, psta, 0);/* todo: based on rssi_level*/ in rtw_hal_update_ra_mask()
|
/linux-6.1.9/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_dm.c | 191 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local 198 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 199 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps() 200 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps() 216 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local 238 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS() 239 if (!psta) in rtl8723b_HalDmWatchDog_in_LPS() 242 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()
|
D | rtl8723bs_recv.c | 101 struct sta_info *psta; in update_recvframe_phyinfo() local 123 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo() 124 if (psta) in update_recvframe_phyinfo() 125 pkt_info.station_id = psta->mac_id; in update_recvframe_phyinfo() 133 if (psta) in update_recvframe_phyinfo() 134 psta->rssi = pattrib->phy_info.RecvSignalPower; in update_recvframe_phyinfo() 136 precvframe->u.hdr.psta = NULL; in update_recvframe_phyinfo() 141 if (psta) { in update_recvframe_phyinfo() 142 precvframe->u.hdr.psta = psta; in update_recvframe_phyinfo() 148 if (psta) in update_recvframe_phyinfo() [all …]
|