Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_sta_mgt.c30 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
32 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
34 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
35 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
36 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
37 _rtw_init_queue(&psta->sleep_q); in _rtw_init_stainfo()
38 psta->sleepq_len = 0; in _rtw_init_stainfo()
40 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv); in _rtw_init_stainfo()
41 _rtw_init_sta_recv_priv(&psta->sta_recvpriv); in _rtw_init_stainfo()
45 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo()
[all …]
Drtw_ap.c49 struct sta_info *psta = NULL; in free_mlme_ap_info() local
66 psta = rtw_get_bcmc_stainfo(padapter); in free_mlme_ap_info()
68 rtw_free_stainfo(padapter, psta); in free_mlme_ap_info()
273 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
277 if ((psta->sta_stats.last_rx_data_pkts + in chk_sta_is_alive()
278 psta->sta_stats.last_rx_ctrl_pkts) == in chk_sta_is_alive()
279 (psta->sta_stats.rx_data_pkts + in chk_sta_is_alive()
280 psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive()
285 sta_update_last_rx_pkts(psta); in chk_sta_is_alive()
294 struct sta_info *psta = NULL; in expire_timeout_chk() local
[all …]
Drtw_xmit.c276 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local
293 if (psta->rtsen) in update_attrib_vcs_info()
295 else if (psta->cts2self) in update_attrib_vcs_info()
310 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info()
311 if (psta->rtsen) in update_attrib_vcs_info()
313 else if (psta->cts2self) in update_attrib_vcs_info()
349 static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *psta) in update_attrib_phy_info() argument
363 pattrib->qos_en = psta->qos_option; in update_attrib_phy_info()
365 pattrib->raid = psta->raid; in update_attrib_phy_info()
366 pattrib->ht_en = psta->htpriv.ht_option; in update_attrib_phy_info()
[all …]
Drtw_recv.c479 struct sta_info *psta; in portctrl() local
495 psta = rtw_get_stainfo(pstapriv, psta_addr); in portctrl()
507 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in portctrl()
583 struct sta_info *psta = NULL; in process_pwrbit_data() local
585 psta = rtw_get_stainfo(pstapriv, pattrib->src); in process_pwrbit_data()
589 if (psta) { in process_pwrbit_data()
591 if (!(psta->state & WIFI_SLEEP_STATE)) in process_pwrbit_data()
592 stop_sta_xmit(padapter, psta); in process_pwrbit_data()
594 if (psta->state & WIFI_SLEEP_STATE) in process_pwrbit_data()
595 wakeup_sta_to_xmit(padapter, psta); in process_pwrbit_data()
[all …]
Drtw_debug.c247 struct sta_info *psta; in proc_get_ap_info() local
256 psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); in proc_get_ap_info()
257 if (psta) { in proc_get_ap_info()
262 len += snprintf(page + len, count - len, "sta's macaddr:%pM\n", psta->hwaddr); in proc_get_ap_info()
264 len += snprintf(page + len, count - len, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); in proc_get_ap_info()
265 …ount - len, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta-… in proc_get_ap_info()
266 … count - len, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, pst… in proc_get_ap_info()
267 …, count - len, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, p… in proc_get_ap_info()
268 len += snprintf(page + len, count - len, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); in proc_get_ap_info()
269 …- len, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->ht… in proc_get_ap_info()
[all …]
Drtw_mlme.c786 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
788 psta = rtw_get_stainfo(&adapter->stapriv, tgt_network->network.MacAddress); in rtw_free_assoc_resources_locked()
791 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
796 struct sta_info *psta; in rtw_free_assoc_resources_locked() local
800 psta = rtw_get_bcmc_stainfo(adapter); in rtw_free_assoc_resources_locked()
802 rtw_free_stainfo(adapter, psta); in rtw_free_assoc_resources_locked()
905 struct sta_info *bmc_sta, *psta = NULL; in rtw_joinbss_update_stainfo() local
909 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
910 if (psta == NULL) in rtw_joinbss_update_stainfo()
911 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
[all …]
Drtw_mlme_ext.c752 static void issue_auth(struct adapter *padapter, struct sta_info *psta, in issue_auth() argument
795 if (psta) {/* for AP mode */ in issue_auth()
798 memcpy(pwlanhdr->addr1, psta->hwaddr, ETH_ALEN); in issue_auth()
804 val16 = (u16)psta->authalg; in issue_auth()
820 val16 = (u16)psta->auth_seq; in issue_auth()
832 if ((psta->auth_seq == 2) && (psta->state & WIFI_FW_AUTH_STATE) && (use_shared_key == 1)) in issue_auth()
833 pframe = rtw_set_ie(pframe, _CHLGETXT_IE_, 128, psta->chg_txt, &(pattrib->pktlen)); in issue_auth()
1651 struct sta_info *psta; in issue_action_BA() local
1707 psta = rtw_get_stainfo(pstapriv, raddr); in issue_action_BA()
1708 if (psta != NULL) { in issue_action_BA()
[all …]
Drtw_wlan_util.c692 struct sta_info *psta; in bwmode_update_check() local
699 psta = rtw_get_stainfo(pstapriv, cur_network->MacAddress); in bwmode_update_check()
700 if (psta) { in bwmode_update_check()
701 struct ht_priv *phtpriv_sta = &psta->htpriv; in bwmode_update_check()
827 void VCS_update(struct adapter *padapter, struct sta_info *psta) in VCS_update() argument
835 psta->rtsen = 0; in VCS_update()
836 psta->cts2self = 0; in VCS_update()
840 psta->rtsen = 1; in VCS_update()
841 psta->cts2self = 0; in VCS_update()
843 psta->rtsen = 0; in VCS_update()
[all …]
Drtw_cmd.c600 u8 rtw_setstakey_cmd(struct adapter *padapter, u8 *psta, u8 unicast_key) in rtw_setstakey_cmd() argument
609 struct sta_info *sta = (struct sta_info *)psta; in rtw_setstakey_cmd()
661 u8 rtw_clearstakey_cmd(struct adapter *padapter, u8 *psta, u8 entry, u8 enqueue) in rtw_clearstakey_cmd() argument
667 struct sta_info *sta = (struct sta_info *)psta; in rtw_clearstakey_cmd()
1290 struct sta_info *psta = NULL; in rtw_createbss_cmd_callback() local
1308 psta = rtw_get_stainfo(&padapter->stapriv, pnetwork->MacAddress); in rtw_createbss_cmd_callback()
1309 if (!psta) { in rtw_createbss_cmd_callback()
1310 psta = rtw_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress); in rtw_createbss_cmd_callback()
1311 if (psta == NULL) { in rtw_createbss_cmd_callback()
1356 struct sta_info *psta = rtw_get_stainfo(pstapriv, psetstakey_rsp->addr); in rtw_setstaKey_cmdrsp_callback() local
[all …]
Drtw_security.c589 if (pattrib->psta) in rtw_tkip_encrypt()
590 stainfo = pattrib->psta; in rtw_tkip_encrypt()
1223 if (pattrib->psta) in rtw_aes_encrypt()
1224 stainfo = pattrib->psta; in rtw_aes_encrypt()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_sta_mgt.c27 static void _rtw_init_stainfo(struct sta_info *psta) in _rtw_init_stainfo() argument
29 memset((u8 *)psta, 0, sizeof(struct sta_info)); in _rtw_init_stainfo()
30 spin_lock_init(&psta->lock); in _rtw_init_stainfo()
31 INIT_LIST_HEAD(&psta->list); in _rtw_init_stainfo()
32 INIT_LIST_HEAD(&psta->hash_list); in _rtw_init_stainfo()
33 _rtw_init_queue23a(&psta->sleep_q); in _rtw_init_stainfo()
34 psta->sleepq_len = 0; in _rtw_init_stainfo()
35 _rtw_init_sta_xmit_priv23a(&psta->sta_xmitpriv); in _rtw_init_stainfo()
36 _rtw_init_sta_recv_priv23a(&psta->sta_recvpriv); in _rtw_init_stainfo()
38 INIT_LIST_HEAD(&psta->asoc_list); in _rtw_init_stainfo()
[all …]
Drtw_ap.c42 struct sta_info *psta = NULL; in free_mlme_ap_info23a() local
59 psta = rtw_get_bcmc_stainfo23a(padapter); in free_mlme_ap_info23a()
61 rtw_free_stainfo23a(padapter, psta); in free_mlme_ap_info23a()
160 static u8 chk_sta_is_alive(struct sta_info *psta) in chk_sta_is_alive() argument
164 if ((psta->sta_stats.last_rx_data_pkts + in chk_sta_is_alive()
165 psta->sta_stats.last_rx_ctrl_pkts) != in chk_sta_is_alive()
166 (psta->sta_stats.rx_data_pkts + psta->sta_stats.rx_ctrl_pkts)) in chk_sta_is_alive()
169 sta_update_last_rx_pkts(psta); in chk_sta_is_alive()
178 struct sta_info *psta; in expire_timeout_chk23a() local
190 psta = container_of(plist, struct sta_info, auth_list); in expire_timeout_chk23a()
[all …]
Drtw_xmit.c242 struct sta_info *psta = pattrib->psta; in update_attrib_vcs_info() local
246 if (pattrib->psta) { in update_attrib_vcs_info()
247 psta = pattrib->psta; in update_attrib_vcs_info()
250 psta = rtw_get_stainfo23a(&padapter->stapriv, &pattrib->ra[0]); in update_attrib_vcs_info()
253 if (psta == NULL) { in update_attrib_vcs_info()
258 if (!(psta->state &_FW_LINKED)) { in update_attrib_vcs_info()
259 DBG_8723A("%s, psta->state(0x%x) != _FW_LINKED\n", __func__, psta->state); in update_attrib_vcs_info()
276 if (psta->rtsen) in update_attrib_vcs_info()
278 else if (psta->cts2self) in update_attrib_vcs_info()
295 if (psta->rtsen || psta->cts2self) { in update_attrib_vcs_info()
[all …]
Drtw_recv.c536 struct sta_info *psta; in portctrl() local
550 psta = rtw_get_stainfo23a(pstapriv, psta_addr); in portctrl()
564 if (psta && psta->ieee8021x_blocked) { in portctrl()
629 struct sta_info *psta; in process23a_pwrbit_data() local
631 psta = rtw_get_stainfo23a(pstapriv, pattrib->src); in process23a_pwrbit_data()
633 if (psta) { in process23a_pwrbit_data()
637 if (!(psta->state & WIFI_SLEEP_STATE)) in process23a_pwrbit_data()
638 stop_sta_xmit23a(padapter, psta); in process23a_pwrbit_data()
640 if (psta->state & WIFI_SLEEP_STATE) in process23a_pwrbit_data()
641 wakeup_sta_to_xmit23a(padapter, psta); in process23a_pwrbit_data()
[all …]
Drtw_mlme.c741 struct sta_info *psta; in rtw_free_assoc_resources23a() local
751 psta = rtw_get_stainfo23a(&adapter->stapriv, in rtw_free_assoc_resources23a()
755 rtw_free_stainfo23a(adapter, psta); in rtw_free_assoc_resources23a()
763 psta = rtw_get_bcmc_stainfo23a(adapter); in rtw_free_assoc_resources23a()
765 rtw_free_stainfo23a(adapter, psta); in rtw_free_assoc_resources23a()
890 struct sta_info *bmc_sta, *psta; in rtw_joinbss_update_stainfo() local
894 psta = rtw_get_stainfo23a(pstapriv, pnetwork->network.MacAddress); in rtw_joinbss_update_stainfo()
895 if (!psta) in rtw_joinbss_update_stainfo()
896 psta = rtw_alloc_stainfo23a(pstapriv, in rtw_joinbss_update_stainfo()
900 if (psta) { /* update ptarget_sta */ in rtw_joinbss_update_stainfo()
[all …]
Drtw_mlme_ext.c55 static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
639 struct sta_info *psta; in mgt_dispatcher23a() local
665 psta = rtw_get_stainfo23a(&padapter->stapriv, mgmt->sa); in mgt_dispatcher23a()
667 if (psta) { in mgt_dispatcher23a()
670 psta->RxMgmtFrameSeqNum) { in mgt_dispatcher23a()
678 psta->RxMgmtFrameSeqNum = precv_frame->attrib.seq_num; in mgt_dispatcher23a()
785 struct sta_info *psta; in OnBeacon23a() local
852 psta = rtw_get_stainfo23a(pstapriv, mgmt->sa); in OnBeacon23a()
853 if (psta) { in OnBeacon23a()
864 if ((sta_rx_pkts(psta) & 0xf) == 0) { in OnBeacon23a()
[all …]
Drtw_wlan_util.c660 struct sta_info *psta; in bwmode_update_check() local
668 psta = rtw_get_stainfo23a(pstapriv, cur_network->MacAddress); in bwmode_update_check()
669 if (psta) { in bwmode_update_check()
670 struct ht_priv *phtpriv_sta = &psta->htpriv; in bwmode_update_check()
814 void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta) in VCS_update23a() argument
822 psta->rtsen = 0; in VCS_update23a()
823 psta->cts2self = 0; in VCS_update23a()
827 psta->rtsen = 1; in VCS_update23a()
828 psta->cts2self = 0; in VCS_update23a()
830 psta->rtsen = 0; in VCS_update23a()
[all …]
Drtw_sreset.c52 struct sta_info *psta; in sreset_restore_security_station() local
67 psta = rtw_get_stainfo23a(pstapriv, get_bssid(mlmepriv)); in sreset_restore_security_station()
68 if (psta == NULL) { in sreset_restore_security_station()
72 rtw_setstakey_cmd23a(padapter, (unsigned char *)psta, true); in sreset_restore_security_station()
Drtw_cmd.c662 int rtw_setstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 unicast_key) in rtw_setstakey_cmd23a() argument
670 struct sta_info *sta = (struct sta_info *)psta; in rtw_setstakey_cmd23a()
727 int rtw_clearstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 entry, in rtw_clearstakey_cmd23a() argument
734 struct sta_info *sta = (struct sta_info *)psta; in rtw_clearstakey_cmd23a()
1341 struct sta_info *psta; in rtw_createbss_cmd23a_callback() local
1358 psta = rtw_get_stainfo23a(&padapter->stapriv, in rtw_createbss_cmd23a_callback()
1360 if (!psta) { in rtw_createbss_cmd23a_callback()
1361 psta = rtw_alloc_stainfo23a(&padapter->stapriv, in rtw_createbss_cmd23a_callback()
1364 if (!psta) { in rtw_createbss_cmd23a_callback()
1422 struct sta_info *psta; in rtw_setstaKey_cmdrsp_callback23a() local
[all …]
Drtw_security.c629 if (pattrib->psta) in rtw_tkip_encrypt23a()
630 stainfo = pattrib->psta; in rtw_tkip_encrypt23a()
1304 if (pattrib->psta) { in rtw_aes_encrypt23a()
1305 stainfo = pattrib->psta; in rtw_aes_encrypt23a()
/linux-4.4.14/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
267 psta = r8712_get_bcmc_stainfo(padapter); in r8712_update_attrib()
271 psta = r8712_get_stainfo(pstapriv, in r8712_update_attrib()
275 psta = r8712_get_stainfo(pstapriv, pattrib->ra); in r8712_update_attrib()
276 if (psta == NULL) /* drop the pkt */ in r8712_update_attrib()
281 pattrib->mac_id = psta->mac_id; in r8712_update_attrib()
285 if (psta) { in r8712_update_attrib()
286 pattrib->psta = psta; in r8712_update_attrib()
303 if (psta->ieee8021x_blocked) { in r8712_update_attrib()
309 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
[all …]
Drtl871x_recv.c255 struct sta_info *psta; in r8712_portctrl() local
264 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_portctrl()
272 if ((psta != NULL) && (psta->ieee8021x_blocked)) { in r8712_portctrl()
317 struct sta_info **psta) in sta2sta_data_frame() argument
371 *psta = r8712_get_bcmc_stainfo(adapter); in sta2sta_data_frame()
373 *psta = r8712_get_stainfo(pstapriv, sta_addr); /* get ap_info */ in sta2sta_data_frame()
374 if (*psta == NULL) { in sta2sta_data_frame()
384 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.c649 u8 r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key) in r8712_setstakey_cmd() argument
657 struct sta_info *sta = (struct sta_info *)psta; in r8712_setstakey_cmd()
893 struct sta_info *psta = NULL; in r8712_createbss_cmd_callback() local
930 psta = r8712_get_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback()
932 if (!psta) { in r8712_createbss_cmd_callback()
933 psta = r8712_alloc_stainfo(&padapter->stapriv, in r8712_createbss_cmd_callback()
935 if (psta == NULL) in r8712_createbss_cmd_callback()
971 struct sta_info *psta = r8712_get_stainfo(pstapriv, in r8712_setstaKey_cmdrsp_callback() local
974 if (psta == NULL) in r8712_setstaKey_cmdrsp_callback()
976 psta->aid = psta->mac_id = psetstakey_rsp->keyid; /*CAM_ID(CAM_ENTRY)*/ in r8712_setstaKey_cmdrsp_callback()
[all …]
Drtl871x_mlme.c639 struct sta_info *psta; in r8712_free_assoc_resources() local
641 psta = r8712_get_stainfo(&adapter->stapriv, in r8712_free_assoc_resources()
645 r8712_free_stainfo(adapter, psta); in r8712_free_assoc_resources()
926 struct sta_info *psta; in r8712_stassoc_event_callback() local
933 psta = r8712_get_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback()
934 if (psta != NULL) { in r8712_stassoc_event_callback()
941 psta = r8712_alloc_stainfo(&adapter->stapriv, pstassoc->macaddr); in r8712_stassoc_event_callback()
942 if (psta == NULL) in r8712_stassoc_event_callback()
945 psta->qos_option = 0; in r8712_stassoc_event_callback()
946 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 …]
Drtl8712_xmit.c67 struct sta_info *psta; in r8712_txframes_sta_ac_pending() local
71 psta = pattrib->psta; in r8712_txframes_sta_ac_pending()
75 ptxservq = &(psta->sta_xmitpriv.bk_q); in r8712_txframes_sta_ac_pending()
79 ptxservq = &(psta->sta_xmitpriv.vi_q); in r8712_txframes_sta_ac_pending()
83 ptxservq = &(psta->sta_xmitpriv.vo_q); in r8712_txframes_sta_ac_pending()
88 ptxservq = &(psta->sta_xmitpriv.be_q); in r8712_txframes_sta_ac_pending()
Drtl871x_security.h144 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument
156 encry_algo = (u8)psta->XPrivacy; \
Drtl8712_recv.h139 struct sta_info *psta; member
Dsta_info.h138 void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta);
Drtl871x_ioctl_linux.c95 static inline void handle_pairwise_key(struct sta_info *psta, in handle_pairwise_key() argument
100 memcpy(psta->x_UncstKey.skey, param->u.crypt.key, in handle_pairwise_key()
103 memcpy(psta->tkiptxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
105 memcpy(psta->tkiprxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
111 r8712_setstakey_cmd(padapter, (unsigned char *)psta, true); in handle_pairwise_key()
446 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
451 psta = r8712_get_stainfo(pstapriv, in wpa_set_encryption()
453 if (psta) { in wpa_set_encryption()
454 psta->ieee8021x_blocked = false; in wpa_set_encryption()
459 psta->XPrivacy = padapter-> in wpa_set_encryption()
[all …]
Drtl8712_recv.c258 struct sta_info *psta; in r8712_recvframe_chk_defrag() local
271 psta = r8712_get_stainfo(pstapriv, psta_addr); in r8712_recvframe_chk_defrag()
272 if (psta == NULL) in r8712_recvframe_chk_defrag()
275 pdefrag_q = &psta->sta_recvpriv.defrag_q; in r8712_recvframe_chk_defrag()
Drtl871x_xmit.h131 struct sta_info *psta; member
Drtl871x_security.c594 if (pattrib->psta) in r8712_tkip_encrypt()
595 stainfo = pattrib->psta; in r8712_tkip_encrypt()
1173 if (pattrib->psta) in r8712_aes_encrypt()
1174 stainfo = pattrib->psta; in r8712_aes_encrypt()
Drtl871x_cmd.h725 u8 r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key);
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dmlme_linux.c131 void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta) in init_addba_retry_timer() argument
133 setup_timer(&psta->addba_retry_timer, addba_timer_hdl, in init_addba_retry_timer()
134 (unsigned long)psta); in init_addba_retry_timer()
149 void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_assoc_event() argument
154 if (!psta) in rtw_indicate_sta_assoc_event()
157 if (psta->aid > NUM_STA) in rtw_indicate_sta_assoc_event()
160 if (pstapriv->sta_aid[psta->aid - 1] != psta) in rtw_indicate_sta_assoc_event()
166 memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); in rtw_indicate_sta_assoc_event()
173 void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *psta) in rtw_indicate_sta_disassoc_event() argument
178 if (!psta) in rtw_indicate_sta_disassoc_event()
[all …]
Dioctl_linux.c444 struct sta_info *psta, *pbcmc_sta; in wpa_set_encryption() local
448 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption()
449 if (psta == NULL) { in wpa_set_encryption()
453 psta->ieee8021x_blocked = false; in wpa_set_encryption()
457 psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; in wpa_set_encryption()
460 …memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)… in wpa_set_encryption()
463 memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); in wpa_set_encryption()
464 memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); in wpa_set_encryption()
470 rtw_setstakey_cmd(padapter, (unsigned char *)psta, true); in wpa_set_encryption()
2115 static u8 set_pairwise_key(struct adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
[all …]
Drecv_linux.c126 struct sta_info *psta = NULL; in rtw_recv_indicatepkt() local
134 psta = rtw_get_bcmc_stainfo(padapter); in rtw_recv_indicatepkt()
137 psta = rtw_get_stainfo(pstapriv, pattrib->dst); in rtw_recv_indicatepkt()
140 if (psta) { in rtw_recv_indicatepkt()
Dxmit_linux.c172 struct sta_info *psta = NULL; in rtw_mlcst2unicst() local
181 psta = container_of(plist, struct sta_info, asoc_list); in rtw_mlcst2unicst()
186 if (!memcmp(psta->hwaddr, &skb->data[6], 6)) in rtw_mlcst2unicst()
192 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtw_ap.h30 struct sta_info *psta);
32 struct sta_info *psta);
41 void add_RATid(struct adapter *padapter, struct sta_info *psta,
44 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
51 void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta);
52 u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta);
53 void sta_info_update(struct adapter *padapter, struct sta_info *psta);
54 void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
55 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta,
Drtw_xmit.h157 struct sta_info *psta; member
340 struct sta_info *psta, int up, u8 *ac);
366 void stop_sta_xmit(struct adapter *padapter, struct sta_info *psta);
367 void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta);
368 void xmit_delivery_enabled_frames(struct adapter *padapter, struct sta_info *psta);
Drtw_mlme_ext.h290 struct sta_info *psta; member
520 void VCS_update(struct adapter *padapter, struct sta_info *psta);
523 struct sta_info *psta);
534 void update_sta_info(struct adapter *padapter, struct sta_info *psta);
539 void set_sta_rate(struct adapter *padapter, struct sta_info *psta);
578 struct sta_info *psta);
Drtw_cmd.h343 u8 rtw_setstakey_cmd(struct adapter *padapter, u8 *psta, u8 unicast_key);
344 u8 rtw_clearstakey_cmd(struct adapter *padapter, u8 *psta, u8 entry,
Drtw_security.h178 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument
190 encry_algo = (u8)psta->dot118021XPrivacy; \
Drtw_mlme.h533 struct sta_info *psta, u8 free_assoc);
590 void rtw_stassoc_hw_rpt(struct adapter *adapter, struct sta_info *psta);
Drtw_recv.h262 struct sta_info *psta; member
Dsta_info.h361 u32 rtw_free_stainfo(struct adapter *adapt, struct sta_info *psta);
/linux-4.4.14/drivers/staging/rtl8723au/include/
Drtw_ap.h32 void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_level);
34 void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info *psta);
43 void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info *psta);
44 u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info *psta);
45 void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta);
46 void ap_sta_info_defer_update23a(struct rtw_adapter *padapter, struct sta_info *psta);
47 u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool active, u16 reason);
Drtw_mlme_ext.h294 struct sta_info *psta; member
451 void init_addba_retry_timer23a(struct sta_info *psta);
503 void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta);
507 struct sta_info *psta);
519 void update_sta_info23a(struct rtw_adapter *padapter, struct sta_info *psta);
523 void Update_RA_Entry23a(struct rtw_adapter *padapter, struct sta_info *psta);
524 void set_sta_rate23a(struct rtw_adapter *padapter, struct sta_info *psta);
575 void mlmeext_sta_add_event_callback23a(struct rtw_adapter *padapter, struct sta_info *psta);
Drtw_xmit.h155 struct sta_info *psta; member
348 struct sta_info *psta, int up, u8 *ac);
373 void stop_sta_xmit23a(struct rtw_adapter *padapter, struct sta_info *psta);
374 void wakeup_sta_to_xmit23a(struct rtw_adapter *padapter, struct sta_info *psta);
376 struct sta_info *psta);
Dhal_intf.h102 void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level);
Drtw_security.h166 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\ argument
178 encry_algo = psta->dot118021XPrivacy;\
Drtw_cmd.h684 int rtw_setstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 unicast_key);
685 int rtw_clearstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 entry, u8 enqueue);
Drtw_recv.h268 struct sta_info *psta; member
Drtw_mlme.h286 struct sta_info *psta, u8 free_assoc);
Dsta_info.h366 int rtw_free_stainfo23a(struct rtw_adapter *padapter, struct sta_info *psta);
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Dhal_intf.c24 void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level) in rtw_hal_update_ra_mask23a() argument
29 if (!psta) in rtw_hal_update_ra_mask23a()
32 padapter = psta->padapter; in rtw_hal_update_ra_mask23a()
38 add_RATid23a(padapter, psta, rssi_level); in rtw_hal_update_ra_mask23a()
41 rtl8723a_update_ramask(padapter, psta->mac_id, rssi_level); in rtw_hal_update_ra_mask23a()
Drtl8723au_recv.c191 struct sta_info *psta; in update_recvframe_phyinfo() local
242 psta = rtw_get_stainfo23a(pstapriv, sa); in update_recvframe_phyinfo()
243 if (psta) { in update_recvframe_phyinfo()
244 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo()
251 precvframe->psta = NULL; in update_recvframe_phyinfo()
254 if (psta) { in update_recvframe_phyinfo()
255 precvframe->psta = psta; in update_recvframe_phyinfo()
262 if (psta) in update_recvframe_phyinfo()
263 precvframe->psta = psta; in update_recvframe_phyinfo()
Drtl8723au_xmit.c439 struct sta_info *psta; in rtl8723au_hal_xmit() local
444 if (pattrib->psta) in rtl8723au_hal_xmit()
445 psta = pattrib->psta; in rtl8723au_hal_xmit()
447 psta = rtw_get_stainfo23a(pstapriv, pattrib->ra); in rtl8723au_hal_xmit()
449 if (psta) { in rtl8723au_hal_xmit()
450 if (psta->sleepq_len > (NR_XMITFRAME>>3)) in rtl8723au_hal_xmit()
451 wakeup_sta_to_xmit23a(padapter, psta); in rtl8723au_hal_xmit()
Dodm.c1253 struct sta_info *psta; in odm_RSSIMonitorCheck() local
1259 psta = pDM_Odm->pODM_StaInfo[i]; in odm_RSSIMonitorCheck()
1260 if (psta) { in odm_RSSIMonitorCheck()
1261 if (psta->rssi_stat.UndecoratedSmoothedPWDB < MinDB) in odm_RSSIMonitorCheck()
1262 MinDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheck()
1264 if (psta->rssi_stat.UndecoratedSmoothedPWDB > MaxDB) in odm_RSSIMonitorCheck()
1265 MaxDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheck()
1267 if (psta->rssi_stat.UndecoratedSmoothedPWDB != -1) { in odm_RSSIMonitorCheck()
1268 tmpdb = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheck()
1269 PWDB_rssi[sta_cnt++] = psta->mac_id | in odm_RSSIMonitorCheck()
Dusb_halinit.c1177 struct sta_info *psta; in rtl8723a_update_ramask() local
1192 psta = pmlmeinfo->FW_sta_info[mac_id].psta; in rtl8723a_update_ramask()
1193 if (psta == NULL) in rtl8723a_update_ramask()
1267 psta->raid = raid; in rtl8723a_update_ramask()
1268 psta->init_rate = init_rate; in rtl8723a_update_ramask()
Drtl8723a_hal_init.c920 struct sta_info *psta = (struct sta_info *)pValue1; in rtl8723a_SetHalODMVar() local
923 DBG_8723A("Set STA_(%d) info\n", psta->mac_id); in rtl8723a_SetHalODMVar()
926 psta->mac_id, psta); in rtl8723a_SetHalODMVar()
928 DBG_8723A("Clean STA_(%d) info\n", psta->mac_id); in rtl8723a_SetHalODMVar()
931 psta->mac_id, NULL); in rtl8723a_SetHalODMVar()
Drtl8723a_bt-coexist.c5800 struct sta_info *psta; in btdm_1AntUpdateHalRAMask() local
5822 psta = pmlmeinfo->FW_sta_info[mac_id].psta; in btdm_1AntUpdateHalRAMask()
5823 if (!psta) { in btdm_1AntUpdateHalRAMask()
5829 raid = psta->raid; in btdm_1AntUpdateHalRAMask()
5871 psta->init_rate = init_rate; in btdm_1AntUpdateHalRAMask()
5881 struct sta_info *psta; in btdm_1AntUpdateHalRAMaskForSCO() local
5892 psta = rtw_get_stainfo23a(pstapriv, cur_network->MacAddress); in btdm_1AntUpdateHalRAMaskForSCO()
5893 macid = psta->mac_id; in btdm_1AntUpdateHalRAMaskForSCO()
5912 struct sta_info *psta; in btdm_1AntRecoverHalRAMask() local
5921 psta = rtw_get_stainfo23a(pstapriv, cur_network->MacAddress); in btdm_1AntRecoverHalRAMask()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188e_rxdesc.c154 struct sta_info *psta; in update_recvframe_phyinfo_88e() local
184 psta = rtw_get_stainfo(pstapriv, sa); in update_recvframe_phyinfo_88e()
185 if (psta) in update_recvframe_phyinfo_88e()
186 pkt_info.StationID = psta->mac_id; in update_recvframe_phyinfo_88e()
191 precvframe->psta = NULL; in update_recvframe_phyinfo_88e()
194 if (psta) { in update_recvframe_phyinfo_88e()
195 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
200 if (psta) in update_recvframe_phyinfo_88e()
201 precvframe->psta = psta; in update_recvframe_phyinfo_88e()
Dhal_intf.c214 struct sta_info *psta = NULL; in rtw_hal_update_ra_mask() local
218 psta = pstapriv->sta_aid[(mac_id-1) - 1]; in rtw_hal_update_ra_mask()
219 if (psta) in rtw_hal_update_ra_mask()
220 add_RATid(adapt, psta, 0);/* todo: based on rssi_level*/ in rtw_hal_update_ra_mask()
Dodm.c1150 struct sta_info *psta; in odm_RSSIMonitorCheckCE() local
1157 psta = pDM_Odm->pODM_StaInfo[i]; in odm_RSSIMonitorCheckCE()
1158 if (IS_STA_VALID(psta) && in odm_RSSIMonitorCheckCE()
1159 (psta->state & WIFI_ASOC_STATE) && in odm_RSSIMonitorCheckCE()
1160 memcmp(psta->hwaddr, bcast_addr, ETH_ALEN) && in odm_RSSIMonitorCheckCE()
1161 memcmp(psta->hwaddr, myid(&Adapter->eeprompriv), ETH_ALEN)) { in odm_RSSIMonitorCheckCE()
1162 if (psta->rssi_stat.UndecoratedSmoothedPWDB < tmpEntryMinPWDB) in odm_RSSIMonitorCheckCE()
1163 tmpEntryMinPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE()
1165 if (psta->rssi_stat.UndecoratedSmoothedPWDB > tmpEntryMaxPWDB) in odm_RSSIMonitorCheckCE()
1166 tmpEntryMaxPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB; in odm_RSSIMonitorCheckCE()
[all …]
Drtl8188e_hal_init.c160 struct sta_info *psta = pValue1; in rtl8188e_SetHalODMVar() local
163 DBG_88E("### Set STA_(%d) info\n", psta->mac_id); in rtl8188e_SetHalODMVar()
164 ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS, psta->mac_id, psta); in rtl8188e_SetHalODMVar()
165 ODM_RAInfo_Init(podmpriv, psta->mac_id); in rtl8188e_SetHalODMVar()
167 DBG_88E("### Clean STA_(%d) info\n", psta->mac_id); in rtl8188e_SetHalODMVar()
168 ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS, psta->mac_id, NULL); in rtl8188e_SetHalODMVar()
Drtl8188eu_xmit.c440 struct sta_info *psta = NULL; in rtl8188eu_xmitframe_complete() local
508 psta = pfirstframe->attrib.psta; in rtl8188eu_xmitframe_complete()
512 ptxservq = &(psta->sta_xmitpriv.bk_q); in rtl8188eu_xmitframe_complete()
517 ptxservq = &(psta->sta_xmitpriv.vi_q); in rtl8188eu_xmitframe_complete()
522 ptxservq = &(psta->sta_xmitpriv.vo_q); in rtl8188eu_xmitframe_complete()
528 ptxservq = &(psta->sta_xmitpriv.be_q); in rtl8188eu_xmitframe_complete()
Dusb_halinit.c1881 struct sta_info *psta; in GetHalDefVar8188EUsb() local
1882 psta = rtw_get_stainfo(pstapriv, pmlmepriv->cur_network.network.MacAddress); in GetHalDefVar8188EUsb()
1883 if (psta) in GetHalDefVar8188EUsb()
1884 *((int *)pValue) = psta->rssi_stat.UndecoratedSmoothedPWDB; in GetHalDefVar8188EUsb()
1968 struct sta_info *psta; in UpdateHalRAMask8188EUsb() local
1976 psta = pmlmeinfo->FW_sta_info[mac_id].psta; in UpdateHalRAMask8188EUsb()
1977 if (psta == NULL) in UpdateHalRAMask8188EUsb()
2020 psta->raid = raid; in UpdateHalRAMask8188EUsb()
2021 psta->init_rate = init_rate; in UpdateHalRAMask8188EUsb()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Drecv_linux.c100 struct sta_info *psta = NULL; in rtw_recv_indicatepkt23a() local
111 psta = rtw_get_bcmc_stainfo23a(padapter); in rtw_recv_indicatepkt23a()
114 psta = rtw_get_stainfo23a(pstapriv, pattrib->dst); in rtw_recv_indicatepkt23a()
117 if (psta) { in rtw_recv_indicatepkt23a()
Dioctl_cfg80211.c388 static int set_pairwise_key(struct rtw_adapter *padapter, struct sta_info *psta) in set_pairwise_key() argument
410 psetstakey_para->algorithm = psta->dot118021XPrivacy; in set_pairwise_key()
412 ether_addr_copy(psetstakey_para->addr, psta->hwaddr); in set_pairwise_key()
414 memcpy(psetstakey_para->key, &psta->dot118021x_UncstKey, 16); in set_pairwise_key()
476 struct sta_info *psta = NULL, *pbcmc_sta = NULL; in rtw_cfg80211_ap_set_encryption() local
484 psta = rtw_get_stainfo23a(pstapriv, sta_addr); in rtw_cfg80211_ap_set_encryption()
485 if (!psta) { in rtw_cfg80211_ap_set_encryption()
495 if (!psta && (keyparms->cipher == WLAN_CIPHER_SUITE_WEP40 || in rtw_cfg80211_ap_set_encryption()
524 if (!psta) { /* group key */ in rtw_cfg80211_ap_set_encryption()
601 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X && psta) { in rtw_cfg80211_ap_set_encryption()
[all …]
/linux-4.4.14/drivers/net/wireless/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()