[go: nahoru, domu]

Lines Matching refs:psta

30 static void _rtw_init_stainfo(struct sta_info *psta)
32 memset((u8 *)psta, 0, sizeof (struct sta_info));
34 spin_lock_init(&psta->lock);
35 INIT_LIST_HEAD(&psta->list);
36 INIT_LIST_HEAD(&psta->hash_list);
37 _rtw_init_queue(&psta->sleep_q);
38 psta->sleepq_len = 0;
40 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv);
41 _rtw_init_sta_recv_priv(&psta->sta_recvpriv);
45 INIT_LIST_HEAD(&psta->asoc_list);
47 INIT_LIST_HEAD(&psta->auth_list);
49 psta->expire_to = 0;
51 psta->flags = 0;
53 psta->capability = 0;
55 psta->bpairwise_key_installed = false;
58 psta->nonerp_set = 0;
59 psta->no_short_slot_time_set = 0;
60 psta->no_short_preamble_set = 0;
61 psta->no_ht_gf_set = 0;
62 psta->no_ht_set = 0;
63 psta->ht_20mhz_set = 0;
66 psta->under_exist_checking = 0;
68 psta->keep_alive_trycnt = 0;
76 struct sta_info *psta;
96 psta = (struct sta_info *)(pstapriv->pstainfo_buf);
99 _rtw_init_stainfo(psta);
103 list_add_tail(&psta->list, get_list_head(&pstapriv->free_sta_queue));
105 psta++;
152 struct sta_info *psta = NULL;
161 psta = container_of(plist, struct sta_info , list);
177 struct sta_info *psta = NULL;
190 psta = container_of(plist, struct sta_info , hash_list);
194 preorder_ctrl = &psta->recvreorder_ctrl[i];
215 struct sta_info *psta;
228 psta = NULL;
230 psta = container_of((&pfree_sta_queue->queue)->next, struct sta_info, list);
231 list_del_init(&(psta->list));
233 _rtw_init_stainfo(psta);
234 memcpy(psta->hwaddr, hwaddr, ETH_ALEN);
239 psta = NULL;
246 list_add_tail(&psta->hash_list, phash_list);
258 memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i], &wRxSeqInitialValue, 2);
264 init_addba_retry_timer(pstapriv->padapter, psta);
268 preorder_ctrl = &psta->recvreorder_ctrl[i];
284 psta->rssi_stat.UndecoratedSmoothedPWDB = (-1);
285 psta->rssi_stat.UndecoratedSmoothedCCK = (-1);
288 psta->RxMgmtFrameSeqNum = 0xffff;
292 return psta;
296 u32 rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta)
306 if (psta == NULL)
311 pstaxmitpriv = &psta->sta_xmitpriv;
315 rtw_free_xmitframe_queue(pxmitpriv, &psta->sleep_q);
316 psta->sleepq_len = 0;
336 list_del_init(&psta->hash_list);
337 RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, ("\n free number_%d stainfo with hwaddr=0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n", pstapriv->asoc_sta_count , psta->hwaddr[0], psta->hwaddr[1], psta->hwaddr[2], psta->hwaddr[3], psta->hwaddr[4], psta->hwaddr[5]));
341 _rtw_init_sta_xmit_priv(&psta->sta_xmitpriv);
342 _rtw_init_sta_recv_priv(&psta->sta_recvpriv);
344 del_timer_sync(&psta->addba_retry_timer);
354 preorder_ctrl = &psta->recvreorder_ctrl[i];
379 if (!(psta->state & WIFI_AP_STATE))
380 rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, false);
385 if (!list_empty(&psta->auth_list)) {
386 list_del_init(&psta->auth_list);
391 psta->expire_to = 0;
393 psta->sleepq_ac_len = 0;
394 psta->qos_info = 0;
396 psta->max_sp_len = 0;
397 psta->uapsd_bk = 0;
398 psta->uapsd_be = 0;
399 psta->uapsd_vi = 0;
400 psta->uapsd_vo = 0;
401 psta->has_legacy_ac = 0;
403 pstapriv->sta_dz_bitmap &= ~BIT(psta->aid);
404 pstapriv->tim_bitmap &= ~BIT(psta->aid);
406 if ((psta->aid > 0) && (pstapriv->sta_aid[psta->aid - 1] == psta)) {
407 pstapriv->sta_aid[psta->aid - 1] = NULL;
408 psta->aid = 0;
411 psta->under_exist_checking = 0;
416 list_add_tail(&psta->list, get_list_head(pfree_sta_queue));
430 struct sta_info *psta = NULL;
445 psta = container_of(plist, struct sta_info , hash_list);
449 if (pbcmc_stainfo != psta)
450 rtw_free_stainfo(padapter , psta);
460 struct sta_info *psta = NULL;
482 psta = container_of(plist, struct sta_info, hash_list);
484 if ((!memcmp(psta->hwaddr, addr, ETH_ALEN)) == true) {
488 psta = NULL;
493 return psta;
498 struct sta_info *psta;
504 psta = rtw_alloc_stainfo(pstapriv, bcast_addr);
506 if (psta == NULL) {
513 psta->mac_id = 1;
521 struct sta_info *psta;
524 psta = rtw_get_stainfo(pstapriv, bc_addr);
525 return psta;