/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | rtw_mlme.c | 898 struct sta_info *psta; in rtw_free_assoc_resources() local 900 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.mac_address); in rtw_free_assoc_resources() 901 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 905 struct sta_info *psta; in rtw_free_assoc_resources() local 909 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources() 910 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources() 1011 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local 1016 psta = rtw_get_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() 1017 if (!psta) in rtw_joinbss_update_stainfo() 1018 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.mac_address); in rtw_joinbss_update_stainfo() [all …]
|
H A D | rtw_mlme_ext.c | 442 struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe)); in mgt_dispatcher() local 464 if (psta) { in mgt_dispatcher() 466 if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { in mgt_dispatcher() 472 psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; in mgt_dispatcher() 569 struct sta_info *psta; in OnBeacon() local 626 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() 627 if (psta) { in OnBeacon() 638 if ((sta_rx_pkts(psta) & 0xf) == 0) in OnBeacon() 639 update_beacon_info(padapter, pframe, len, psta); in OnBeacon() 644 psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe)); in OnBeacon() [all …]
|
H A 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()
|
H A D | rtw_ioctl_set.c | 477 struct sta_info *psta = NULL; in rtw_get_cur_max_rate() local 484 psta = rtw_get_stainfo(&adapter->stapriv, get_bssid(pmlmepriv)); in rtw_get_cur_max_rate() 485 if (!psta) in rtw_get_cur_max_rate() 488 short_GI = query_ra_short_GI(psta); in rtw_get_cur_max_rate() 490 if (is_supported_ht(psta->wireless_mode)) { in rtw_get_cur_max_rate() 491 max_rate = rtw_mcs_rate(psta->bw_mode == CHANNEL_WIDTH_40 ? 1 : 0, in rtw_get_cur_max_rate() 493 psta->htpriv.ht_cap.mcs.rx_mask); in rtw_get_cur_max_rate()
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A 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 …]
|
H A D | rtl871x_xmit.c | 204 struct sta_info *psta = NULL; in r8712_update_attrib() local 288 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib() 292 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib() 296 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib() 297 if (!psta) /* drop the pkt */ in r8712_update_attrib() 302 pattrib->mac_id = psta->mac_id; in r8712_update_attrib() 306 if (psta) { in r8712_update_attrib() 307 pattrib->psta = psta; in r8712_update_attrib() 324 if (psta->ieee8021x_blocked) { in r8712_update_attrib() 330 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib() [all …]
|
H A D | rtl871x_recv.c | 233 struct sta_info *psta; in r8712_portctrl() local 242 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl() 249 if (psta && psta->ieee8021x_blocked) { in r8712_portctrl() 296 struct sta_info **psta) in sta2sta_data_frame() argument 353 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame() 355 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame() 356 if (!*psta) { in sta2sta_data_frame() 366 struct sta_info **psta) in ap2sta_data_frame() argument 403 *psta = r8712_get_bcmc_stainfo(adapter); in ap2sta_data_frame() 405 *psta = r8712_get_stainfo(pstapriv, pattrib->bssid); in ap2sta_data_frame() [all …]
|
H A D | rtl871x_cmd.c | 514 void r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key) in r8712_setstakey_cmd() argument 522 struct sta_info *sta = (struct sta_info *)psta; in r8712_setstakey_cmd() 656 struct sta_info *psta = NULL; in r8712_createbss_cmd_callback() local 693 psta = r8712_get_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback() 695 if (!psta) { in r8712_createbss_cmd_callback() 696 psta = r8712_alloc_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback() 698 if (!psta) in r8712_createbss_cmd_callback() 737 struct sta_info *psta = r8712_get_stainfo(pstapriv, in r8712_setstaKey_cmdrsp_callback() local 740 if (!psta) in r8712_setstaKey_cmdrsp_callback() 742 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback() [all …]
|
H A D | rtl871x_mlme.c | 583 struct sta_info *psta; in r8712_free_assoc_resources() local 585 psta = r8712_get_stainfo(&adapter->stapriv, in r8712_free_assoc_resources() 589 r8712_free_stainfo(adapter, psta); in r8712_free_assoc_resources() 848 struct sta_info *psta; in r8712_stassoc_event_callback() local 855 psta = r8712_get_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback() 856 if (psta) { in r8712_stassoc_event_callback() 864 psta = r8712_alloc_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback() 865 if (!psta) in r8712_stassoc_event_callback() 868 psta->qos_option = 0; in r8712_stassoc_event_callback() 869 psta->mac_id = le32_to_cpu(pstassoc->cam_id); in r8712_stassoc_event_callback() [all …]
|
H 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 …]
|
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | ioctl_linux.c | 137 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local 141 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 142 if (!psta) { in wpa_set_encryption() 147 psta->ieee8021x_blocked = false; in wpa_set_encryption() 151 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption() 155 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : par… in wpa_set_encryption() 159 memcpy(psta->dot11tkiptxmickey.skey, ¶m->u.crypt.key[16], 8); in wpa_set_encryption() 160 memcpy(psta->dot11tkiprxmickey.skey, ¶m->u.crypt.key[24], 8); in wpa_set_encryption() 166 rtw_setstakey_cmd(padapter, psta, true, true); in wpa_set_encryption() 518 struct sta_info *psta = NULL, *pbcmc_sta = NULL; in rtw_set_encryption() local [all …]
|
H A 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()
|
H A D | ioctl_cfg80211.c | 498 struct sta_info *psta = NULL, *pbcmc_sta = NULL; in rtw_cfg80211_ap_set_encryption() local 523 psta = rtw_get_stainfo(pstapriv, param->sta_addr); in rtw_cfg80211_ap_set_encryption() 524 if (!psta) in rtw_cfg80211_ap_set_encryption() 529 if (strcmp(param->u.crypt.alg, "none") == 0 && !psta) in rtw_cfg80211_ap_set_encryption() 532 if (strcmp(param->u.crypt.alg, "WEP") == 0 && !psta) { in rtw_cfg80211_ap_set_encryption() 570 if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_cfg80211_ap_set_encryption() 618 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X && psta) { /* psk/802_1x */ in rtw_cfg80211_ap_set_encryption() 621 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : par… in rtw_cfg80211_ap_set_encryption() 624 psta->dot118021XPrivacy = _WEP40_; in rtw_cfg80211_ap_set_encryption() 626 psta->dot118021XPrivacy = _WEP104_; in rtw_cfg80211_ap_set_encryption() [all …]
|
H A D | recv_linux.c | 102 struct sta_info *psta = NULL; in rtw_os_recv_indicate_pkt() local 108 psta = rtw_get_bcmc_stainfo(padapter); in rtw_os_recv_indicate_pkt() 111 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_os_recv_indicate_pkt() 114 if (psta) { in rtw_os_recv_indicate_pkt()
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H 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);
|
H A D | rtw_mlme_ext.h | 289 struct sta_info *psta; member 467 extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta); 472 u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta); 540 void VCS_update(struct adapter *padapter, struct sta_info *psta); 541 void update_ldpc_stbc_cap(struct sta_info *psta); 543 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint len, struct sta_info *psta); 548 void update_sta_basic_rate(struct sta_info *psta, u8 wireless_mode); 552 void update_sta_info(struct adapter *padapter, struct sta_info *psta); 553 void Update_RA_Entry(struct adapter *padapter, struct sta_info *psta); 554 void set_sta_rate(struct adapter *padapter, struct sta_info *psta); [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A 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()
|
H A 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 …]
|
H A D | hal_com.c | 546 void rtw_hal_update_sta_rate_mask(struct adapter *padapter, struct sta_info *psta) in rtw_hal_update_sta_rate_mask() argument 551 if (!psta) in rtw_hal_update_sta_rate_mask() 557 for (i = 0; i < sizeof(psta->bssrateset); i++) { in rtw_hal_update_sta_rate_mask() 558 if (psta->bssrateset[i]) in rtw_hal_update_sta_rate_mask() 559 tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value(psta->bssrateset[i]&0x7f); in rtw_hal_update_sta_rate_mask() 563 if (psta->htpriv.ht_option) { in rtw_hal_update_sta_rate_mask() 567 if (psta->htpriv.ht_cap.mcs.rx_mask[i/8] & BIT(i%8)) in rtw_hal_update_sta_rate_mask() 572 psta->ra_mask = tx_ra_bitmap; in rtw_hal_update_sta_rate_mask() 573 psta->init_rate = get_highest_rate_idx(tx_ra_bitmap)&0x3f; in rtw_hal_update_sta_rate_mask() 762 struct sta_info *psta; in GetHalDefVar() local [all …]
|
H 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 …]
|