WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2020-Jan-17 05:31:58

Ayan_Chatterjee
Member
Registered: 2019-Oct-31
Posts: 15

Regarding Ethernet Data Encapsulation

In "wlan_mac_ap.c" file, you have written that before passing any data packet to the "ethernet_receive" function it has to be encapsulated.

Therefore, you have written that encapsulation is happening in "mac_high" framework.

Let me guess, Is "lock_tx_pkt_buf" function in "wlan_mac_pkt_buf_util.c" responsible for that encapsulation?

So, on this regard, can you please give me the exact location where is that encapsulation is happening?(Function Name and File Name)

Thanks in Advance.

Offline

 

#2 2020-Jan-17 09:35:03

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Regarding Ethernet Data Encapsulation

Let me guess, Is "lock_tx_pkt_buf" function in "wlan_mac_pkt_buf_util.c" responsible for that encapsulation?

It is not necessary to guess - you have access to the complete MAC source code. Even a brief search will lead you to the wlan_eth_encap() function.

Offline

 

Board footer