void
ieee80211_psq_cleanup(struct ieee80211_psq *psq)
{
#if 0
	psq_drain(psq);				/* XXX should not be needed? */
#else
	KASSERT(psq->psq_len == 0, ("%d frames on ps q", psq->psq_len));
#endif
}
예제 #2
0
void
ieee80211_psq_cleanup(struct ieee80211_psq *psq)
{
#if 0
	psq_drain(psq);				/* XXX should not be needed? */
#else
	KASSERT(psq->psq_len == 0, ("%d frames on ps q", psq->psq_len));
#endif
	IEEE80211_PSQ_DESTROY(psq);		/* OS-dependent cleanup */
}
예제 #3
0
/*
 * Clear any frames queued in the power save queue.
 * The number of frames that were present is returned.
 */
int
ieee80211_node_psq_drain(struct ieee80211_node *ni)
{
	return psq_drain(&ni->ni_psq);
}