[go: nahoru, domu]

Lines Matching refs:psta

37 static void _init_stainfo(struct sta_info *psta)
39 memset((u8 *)psta, 0, sizeof(struct sta_info));
40 spin_lock_init(&psta->lock);
41 INIT_LIST_HEAD(&psta->list);
42 INIT_LIST_HEAD(&psta->hash_list);
43 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv);
44 _r8712_init_sta_recv_priv(&psta->sta_recvpriv);
45 INIT_LIST_HEAD(&psta->asoc_list);
46 INIT_LIST_HEAD(&psta->auth_list);
51 struct sta_info *psta;
65 psta = (struct sta_info *)(pstapriv->pstainfo_buf);
67 _init_stainfo(psta);
69 list_add_tail(&psta->list, &pstapriv->free_sta_queue.queue);
70 psta++;
82 struct sta_info *psta = NULL;
88 psta = LIST_CONTAINOR(plist, struct sta_info, list);
115 struct sta_info *psta;
125 psta = NULL;
127 psta = LIST_CONTAINOR(pfree_sta_queue->queue.next,
129 list_del_init(&(psta->list));
130 tmp_aid = psta->aid;
131 _init_stainfo(psta);
132 memcpy(psta->hwaddr, hwaddr, ETH_ALEN);
135 psta = NULL;
139 list_add_tail(&psta->hash_list, phash_list);
148 memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i],
152 preorder_ctrl = &psta->recvreorder_ctrl[i];
163 return psta;
167 void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta)
177 if (psta == NULL)
180 pstaxmitpriv = &psta->sta_xmitpriv;
197 list_del_init(&psta->hash_list);
200 _r8712_init_sta_xmit_priv(&psta->sta_xmitpriv);
201 _r8712_init_sta_recv_priv(&psta->sta_recvpriv);
205 preorder_ctrl = &psta->recvreorder_ctrl[i];
210 list_add_tail(&psta->list, &pfree_sta_queue->queue);
220 struct sta_info *psta = NULL;
231 psta = LIST_CONTAINOR(plist,
234 if (pbcmc_stainfo != psta)
235 r8712_free_stainfo(padapter , psta);
246 struct sta_info *psta = NULL;
256 psta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
257 if ((!memcmp(psta->hwaddr, hwaddr, ETH_ALEN))) {
261 psta = NULL;
265 return psta;
270 struct sta_info *psta;
275 psta = r8712_alloc_stainfo(pstapriv, bcast_addr);
276 if (psta == NULL)
278 ptxservq = &(psta->sta_xmitpriv.be_q);
283 struct sta_info *psta;
287 psta = r8712_get_stainfo(pstapriv, bc_addr);
288 return psta;