| /linux/drivers/staging/rtl8723bs/core/ |
| A D | rtw_sta_mgt.c | 32 psta->expire_to = 0; in _rtw_init_stainfo() 34 psta->flags = 0; in _rtw_init_stainfo() 86 psta++; in _rtw_init_sta_priv() 211 psta = NULL; in rtw_alloc_stainfo() 266 return psta; in rtw_alloc_stainfo() 279 if (!psta) in rtw_free_stainfo() 412 if ((psta->aid > 0) && (pstapriv->sta_aid[psta->aid - 1] == psta)) { in rtw_free_stainfo() 414 psta->aid = 0; in rtw_free_stainfo() 489 psta = NULL; in rtw_get_stainfo() 493 return psta; in rtw_get_stainfo() [all …]
|
| A D | rtw_ap.c | 206 psta = NULL; in expire_timeout_chk() 214 if (chk_sta_is_alive(psta) || !psta->expire_to) { in expire_timeout_chk() 331 if (!psta) in add_RATid() 356 psta->raid = networktype_to_raid_ex(padapter, psta); in add_RATid() 382 if (psta) { in update_bmc_sta() 387 pmlmeinfo->FW_sta_info[psta->mac_id].psta = psta; in update_bmc_sta() 419 psta->raid = networktype_to_raid_ex(padapter, psta); in update_bmc_sta() 1150 if (!psta) in rtw_check_beacon_data() 1829 if (!psta) in bss_cap_update_on_sta_leave() 1893 if (!psta) in ap_free_sta() [all …]
|
| A D | rtw_xmit.c | 709 if (!psta) { in update_attrib() 726 pattrib->psta = psta; in update_attrib() 935 if (pattrib->psta != psta) in rtw_make_wlanhdr() 938 if (!psta) in rtw_make_wlanhdr() 1224 psta = pattrib->psta; in rtw_mgmt_xmitframe_coalesce() 1228 if (!psta) in rtw_mgmt_xmitframe_coalesce() 1384 psta = pxmitframe->attrib.psta; in rtw_count_tx_stats() 1385 if (psta) { in rtw_count_tx_stats() 1800 if (pattrib->psta != psta) in rtw_xmit_classifier() 2024 if (pattrib->psta != psta) in xmitframe_enqueue_for_sleeping_sta() [all …]
|
| A D | rtw_recv.c | 469 if ((psta) && (psta->ieee8021x_blocked)) { in portctrl() 542 if (psta) { in process_pwrbit_data() 571 if (!psta) in process_wmmps_data() 631 psta = sta; in count_rx_stats() 633 psta = prframe->u.hdr.psta; in count_rx_stats() 635 if (psta) { in count_rx_stats() 906 if (!psta) in validate_recv_ctrl_frame() 1118 if (!psta) { in recvframe_chk_defrag() 1204 if (psta) { in validate_recv_mgnt_frame() 1291 if (!psta) { in validate_recv_data_frame() [all …]
|
| A D | rtw_wlan_util.c | 946 if (psta) { in bwmode_update_check() 1099 psta->rtsen = 0; in VCS_update() 1105 psta->rtsen = 1; in VCS_update() 1108 psta->rtsen = 0; in VCS_update() 1124 psta->rtsen = 0; in VCS_update() 1135 psta->ldpc = 1; in update_ldpc_stbc_cap() 1138 psta->stbc = 1; in update_ldpc_stbc_cap() 1140 psta->ldpc = 0; in update_ldpc_stbc_cap() 1141 psta->stbc = 0; in update_ldpc_stbc_cap() 1674 if (psta) { in process_addba_req() [all …]
|
| A D | rtw_mlme.c | 955 if (!psta) in rtw_joinbss_update_stainfo() 970 psta->raid = networktype_to_raid_ex(padapter, psta); in rtw_joinbss_update_stainfo() 990 psta->dot11txpn.val = psta->dot11txpn.val + 1; in rtw_joinbss_update_stainfo() 1025 return psta; in rtw_joinbss_update_stainfo() 1227 if (!psta) in rtw_sta_media_status_rpt() 1257 if (psta->passoc_req && psta->assoc_req_len > 0) { in rtw_stassoc_event_callback() 1281 if (psta) { in rtw_stassoc_event_callback() 1288 if (!psta) in rtw_stassoc_event_callback() 1340 if (psta) in rtw_stadel_event_callback() 2438 if (pattrib->psta != psta) in rtw_issue_addbareq_cmd() [all …]
|
| A D | rtw_mlme_ext.c | 463 if (psta) { in mgt_dispatcher() 1601 if (!psta) in on_action_spct() 1648 if (!psta) in OnAction_back() 3739 if (!psta) in send_delba() 4637 if (psta) in report_del_sta_event() 4775 if (psta) in rtw_mlmeext_disconnect() 4851 pmlmeinfo->FW_sta_info[psta->mac_id].psta = psta; in mlmeext_joinbss_event_callback() 4914 pmlmeinfo->FW_sta_info[psta->mac_id].psta = psta; in mlmeext_sta_add_event_callback() 5061 psta = pmlmeinfo->FW_sta_info[i].psta; in linked_status_chk() 5169 if (!psta) in addba_timer_hdl() [all …]
|
| A D | rtw_btcoex.c | 38 struct sta_info *psta; in rtw_btcoex_RejectApAggregatedPacket() local 41 psta = rtw_get_stainfo(&padapter->stapriv, get_bssid(&padapter->mlmepriv)); in rtw_btcoex_RejectApAggregatedPacket() 45 if (psta) in rtw_btcoex_RejectApAggregatedPacket() 46 send_delba(padapter, 0, psta->hwaddr); in rtw_btcoex_RejectApAggregatedPacket()
|
| A D | rtw_ioctl_set.c | 476 struct sta_info *psta = NULL; in rtw_get_cur_max_rate() local 483 psta = rtw_get_stainfo(&adapter->stapriv, get_bssid(pmlmepriv)); in rtw_get_cur_max_rate() 484 if (!psta) in rtw_get_cur_max_rate() 487 short_GI = query_ra_short_GI(psta); in rtw_get_cur_max_rate() 489 if (is_supported_ht(psta->wireless_mode)) { in rtw_get_cur_max_rate() 490 max_rate = rtw_mcs_rate(psta->bw_mode == CHANNEL_WIDTH_40 ? 1 : 0, in rtw_get_cur_max_rate() 492 psta->htpriv.ht_cap.mcs.rx_mask); in rtw_get_cur_max_rate()
|
| /linux/drivers/staging/rtl8712/ |
| A D | rtl871x_sta_mgt.c | 39 struct sta_info *psta; in _r8712_init_sta_priv() local 55 _init_stainfo(psta); in _r8712_init_sta_priv() 58 psta++; in _r8712_init_sta_priv() 93 struct sta_info *psta; in r8712_alloc_stainfo() local 104 if (psta) { in r8712_alloc_stainfo() 106 _init_stainfo(psta); in r8712_alloc_stainfo() 110 psta = NULL; in r8712_alloc_stainfo() 138 return psta; in r8712_alloc_stainfo() 152 if (!psta) in r8712_free_stainfo() 237 psta = NULL; in r8712_get_stainfo() [all …]
|
| A D | rtl871x_xmit.c | 303 if (psta) { in r8712_update_attrib() 304 pattrib->psta = psta; in r8712_update_attrib() 380 if (pattrib->psta) in xmitframe_addmic() 548 if (pattrib->psta) in make_wlanhdr() 549 psta = pattrib->psta; in make_wlanhdr() 556 if (psta) { in make_wlanhdr() 616 if (!pattrib->psta) in r8712_xmitframe_coalesce() 618 psta = pattrib->psta; in r8712_xmitframe_coalesce() 647 if (psta) { in r8712_xmitframe_coalesce() 921 psta = pattrib->psta; in r8712_xmit_classifier() [all …]
|
| A D | rtl871x_recv.c | 233 struct sta_info *psta; in r8712_portctrl() local 249 if (psta && psta->ieee8021x_blocked) { in r8712_portctrl() 356 if (!*psta) { in sta2sta_data_frame() 366 struct sta_info **psta) in ap2sta_data_frame() argument 406 if (!*psta) in ap2sta_data_frame() 417 if (!*psta) in ap2sta_data_frame() 427 struct sta_info **psta) in sta2ap_data_frame() argument 442 if (!*psta) in sta2ap_data_frame() 466 struct sta_info *psta = NULL; in validate_recv_data_frame() local 505 if (!psta) in validate_recv_data_frame() [all …]
|
| A D | rtl871x_cmd.c | 503 struct sta_info *sta = (struct sta_info *)psta; in r8712_setstakey_cmd() 632 struct sta_info *psta = NULL; in r8712_createbss_cmd_callback() local 660 psta = r8712_get_stainfo(&padapter->stapriv, pnetwork->MacAddress); in r8712_createbss_cmd_callback() 661 if (!psta) { in r8712_createbss_cmd_callback() 662 psta = r8712_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress); in r8712_createbss_cmd_callback() 663 if (!psta) in r8712_createbss_cmd_callback() 697 struct sta_info *psta = r8712_get_stainfo(pstapriv, psetstakey_rsp->addr); in r8712_setstaKey_cmdrsp_callback() local 699 if (!psta) in r8712_setstaKey_cmdrsp_callback() 701 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback() 716 if (!psta) in r8712_setassocsta_cmdrsp_callback() [all …]
|
| A D | rtl871x_mlme.c | 583 struct sta_info *psta; in r8712_free_assoc_resources() local 848 struct sta_info *psta; in r8712_stassoc_event_callback() local 856 if (psta) { in r8712_stassoc_event_callback() 865 if (!psta) in r8712_stassoc_event_callback() 868 psta->qos_option = 0; in r8712_stassoc_event_callback() 874 psta->ieee8021x_blocked = false; in r8712_stassoc_event_callback() 889 struct sta_info *psta; in r8712_stadel_event_callback() local 958 struct sta_info *psta; in r8712_got_addbareq_event_callback() local 963 if (psta) { in r8712_got_addbareq_event_callback() 1643 struct sta_info *bmc_sta, *psta; in update_ht_cap() local [all …]
|
| A D | rtl871x_mp_ioctl.c | 153 struct sta_info *psta; in mp_start_test() local 188 psta = r8712_get_stainfo(&padapter->stapriv, in mp_start_test() 190 if (psta) in mp_start_test() 191 r8712_free_stainfo(padapter, psta); in mp_start_test() 192 psta = r8712_alloc_stainfo(&padapter->stapriv, bssid->MacAddress); in mp_start_test() 193 if (!psta) { in mp_start_test() 199 tgt_network->aid = psta->aid = 1; in mp_start_test() 217 struct sta_info *psta; in mp_stop_test() local 226 psta = r8712_get_stainfo(&padapter->stapriv, in mp_stop_test() 228 if (psta) in mp_stop_test() [all …]
|
| /linux/drivers/staging/rtl8723bs/os_dep/ |
| A D | ioctl_linux.c | 141 if (!psta) { in wpa_set_encryption() 545 if (!psta) in rtw_set_encryption() 809 if (psta) { in rtw_add_sta() 818 psta->qos_option = 1; in rtw_add_sta() 820 psta->qos_option = 0; in rtw_add_sta() 823 psta->qos_option = 0; in rtw_add_sta() 864 if (psta) { in rtw_del_sta() 877 psta = NULL; in rtw_del_sta() 903 if (psta) { in rtw_ioctl_get_sta_data() 925 memcpy(psta_data->tx_supp_rates, psta->bssrateset, psta->bssratelen); in rtw_ioctl_get_sta_data() [all …]
|
| A D | xmit_linux.c | 128 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local 143 psta = list_entry(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst() 145 stainfo_offset = rtw_stainfo_offset(pstapriv, psta); in rtw_mlcst2unicst() 152 psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); in rtw_mlcst2unicst() 153 if (!(psta->state & _FW_LINKED)) in rtw_mlcst2unicst() 157 if (!memcmp(psta->hwaddr, &skb->data[6], 6) || in rtw_mlcst2unicst() 158 !memcmp(psta->hwaddr, null_addr, 6) || in rtw_mlcst2unicst() 159 !memcmp(psta->hwaddr, bc_addr, 6)) in rtw_mlcst2unicst() 165 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
|
| A D | ioctl_cfg80211.c | 523 if (!psta) in rtw_cfg80211_ap_set_encryption() 773 if (psta) { in rtw_cfg80211_set_encryption() 979 struct sta_info *psta = NULL; in cfg80211_rtw_get_station() local 990 if (!psta) { in cfg80211_rtw_get_station() 2347 struct sta_info *psta = NULL; in cfg80211_rtw_del_station() local 2378 if (psta->dot8021xalg != 1 || psta->bpairwise_key_installed) { in cfg80211_rtw_del_station() 2384 psta = NULL; in cfg80211_rtw_del_station() 2410 struct sta_info *psta = NULL; in rtw_sta_info_get_by_idx() local 2423 return psta; in rtw_sta_info_get_by_idx() 2439 if (psta == NULL) { in cfg80211_rtw_dump_station() [all …]
|
| A D | recv_linux.c | 101 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local 107 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt() 110 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt() 113 if (psta) { in rtw_os_recv_indicate_pkt()
|
| /linux/drivers/staging/rtl8723bs/include/ |
| A 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);
|
| A D | rtw_mlme_ext.h | 252 struct sta_info *psta; member 430 extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta); 435 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta); 503 void VCS_update(struct adapter *padapter, struct sta_info *psta); 504 void update_ldpc_stbc_cap(struct sta_info *psta); 511 void update_sta_basic_rate(struct sta_info *psta, u8 wireless_mode); 515 void update_sta_info(struct adapter *padapter, struct sta_info *psta); 516 void Update_RA_Entry(struct adapter *padapter, struct sta_info *psta); 517 void set_sta_rate(struct adapter *padapter, struct sta_info *psta); 529 extern void rtw_alloc_macid(struct adapter *padapter, struct sta_info *psta); [all …]
|
| /linux/drivers/staging/rtl8723bs/hal/ |
| A D | rtl8723b_dm.c | 190 struct sta_info *psta = NULL; in rtl8723b_hal_dm_in_lps() local 197 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 198 if (psta && (psta->rssi_stat.UndecoratedSmoothedPWDB > 0)) { in rtl8723b_hal_dm_in_lps() 199 PWDB_rssi = (psta->mac_id | (psta->rssi_stat.UndecoratedSmoothedPWDB<<16)); in rtl8723b_hal_dm_in_lps() 215 struct sta_info *psta = NULL; in rtl8723b_HalDmWatchDog_in_LPS() local 237 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS() 238 if (!psta) in rtl8723b_HalDmWatchDog_in_LPS() 241 pdmpriv->EntryMinUndecoratedSmoothedPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in rtl8723b_HalDmWatchDog_in_LPS()
|
| A D | rtl8723bs_recv.c | 100 struct sta_info *psta; in update_recvframe_phyinfo() local 122 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo() 123 if (psta) in update_recvframe_phyinfo() 124 pkt_info.station_id = psta->mac_id; in update_recvframe_phyinfo() 132 if (psta) in update_recvframe_phyinfo() 133 psta->rssi = pattrib->phy_info.RecvSignalPower; in update_recvframe_phyinfo() 135 precvframe->u.hdr.psta = NULL; in update_recvframe_phyinfo() 140 if (psta) { in update_recvframe_phyinfo() 141 precvframe->u.hdr.psta = psta; in update_recvframe_phyinfo() 147 if (psta) in update_recvframe_phyinfo() [all …]
|
| A D | hal_com.c | 550 if (!psta) in rtw_hal_update_sta_rate_mask() 556 for (i = 0; i < sizeof(psta->bssrateset); i++) { in rtw_hal_update_sta_rate_mask() 557 if (psta->bssrateset[i]) in rtw_hal_update_sta_rate_mask() 562 if (psta->htpriv.ht_option) { in rtw_hal_update_sta_rate_mask() 566 if (psta->htpriv.ht_cap.mcs.rx_mask[i/8] & BIT(i%8)) in rtw_hal_update_sta_rate_mask() 571 psta->ra_mask = tx_ra_bitmap; in rtw_hal_update_sta_rate_mask() 572 psta->init_rate = get_highest_rate_idx(tx_ra_bitmap)&0x3f; in rtw_hal_update_sta_rate_mask() 761 struct sta_info *psta; in GetHalDefVar() local 766 if (psta) in GetHalDefVar() 825 struct sta_info *psta = pValue1; in SetHalODMVar() local [all …]
|
| A D | odm.c | 574 struct sta_info *psta; in odm_RSSIMonitorCheckCE() local 577 psta = pDM_Odm->pODM_StaInfo[i]; in odm_RSSIMonitorCheckCE() 578 if (IS_STA_VALID(psta)) { in odm_RSSIMonitorCheckCE() 579 if (is_multicast_ether_addr(psta->hwaddr)) /* if (psta->mac_id == 1) */ in odm_RSSIMonitorCheckCE() 582 if (psta->rssi_stat.UndecoratedSmoothedPWDB == (-1)) in odm_RSSIMonitorCheckCE() 585 if (psta->rssi_stat.UndecoratedSmoothedPWDB < tmpEntryMinPWDB) in odm_RSSIMonitorCheckCE() 586 tmpEntryMinPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE() 588 if (psta->rssi_stat.UndecoratedSmoothedPWDB > tmpEntryMaxPWDB) in odm_RSSIMonitorCheckCE() 589 tmpEntryMaxPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE() 591 if (psta->rssi_stat.UndecoratedSmoothedPWDB != (-1)) in odm_RSSIMonitorCheckCE() [all …]
|