/* Initialize The MLME Queue, used by MLME Functions.  */
int MlmeQueueInit(struct rt_mlme_queue *Queue)
/* Initialize The MLME Queue, used by MLME Functions.  */
int MlmeQueueInit(struct rt_mlme_queue *Queue)
{
	int i;
	NdisAllocateSpinLock(&Queue->Lock);
	Queue->Num = 0;
	Queue->Head = 0;
	Queue->Tail = 0;
	for (i = 0; i < MAX_LEN_OF_MLME_QUEUE; i++) {
		Queue->Entry[i].Occupied = FALSE;
		Queue->Entry[i].MsgLen = 0;
		NdisZeroMemory(Queue->Entry[i].Msg, MGMT_DMA_BUFFER_SIZE);
	}
	return NDIS_STATUS_SUCCESS;
}