Пример #1
0
void IKANOS_DataFrameRx(RTMP_ADAPTER *pAd, struct sk_buff *pSkb)
{
	apPreHeader_t *apBuf;
	void *pRxParam = pSkb->dev;
	UINT32 Length = pSkb->len;
	UCHAR wdev_idx, mbss_idx;

	apBuf = (apPreHeader_t *)(translateMbuf2Apbuf(pSkb, 0));
	apBuf->flags1 = 1 << AP_FLAG1_IS_ETH_BIT;
	wdev_idx = RTMP_GET_PACKET_WDEV(pSkb);
	mbss_idx = pAd->wdev_list[wdev_idx]->func_idx;
	apBuf->specInfoElement = mbss_idx; /* MBSS */
	pIkanosAd = pAd;

	apBuf->flags2 = 0;

	apClassify(IKANOS_PERAP_ID, apBuf, (void *)IKANOS_WlanPktFromAp);
	dev_kfree_skb(pSkb); 
}
Пример #2
0
void IKANOS_DataFrameRx(
	IN PRTMP_ADAPTER	pAd,
	IN struct sk_buff	*pSkb)
{
    apPreHeader_t *apBuf;
	void *pRxParam = pSkb->dev;
	UINT32 Length = pSkb->len;


    apBuf = (apPreHeader_t *)(translateMbuf2Apbuf(pSkb, 0));

    apBuf->flags1 = 1 << AP_FLAG1_IS_ETH_BIT;
    apBuf->specInfoElement = RTMP_GET_PACKET_NET_DEVICE_MBSSID(pSkb); /* MBSS */
	pIkanosAd = pAd;

/*  apBuf->egressList[0].pEgress = NULL; */
/*  apBuf->egressList[0].pFlowID = NULL; */
    apBuf->flags2 = 0;

    apClassify(IKANOS_PERAP_ID, apBuf, (void *)IKANOS_WlanPktFromAp);
    dev_kfree_skb(pSkb); 
} /* End of IKANOS_DataFrameRx */