WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2015-Jul-16 08:23:13

crimechb
Member
Registered: 2010-Sep-01
Posts: 205

About LTG_evnet

Dear sir,

In wlan_mac_sta.c ,what kind of situation will send the LTG_event?

If we would like to use the station to generates our defined packet to AP and use wireshark which it can check our packet.
How to modify this program? Could you give us this guideline?

Offline

 

#2 2015-Jul-16 15:46:22

chunter
Administrator
From: Mango Communications
Registered: 2006-Aug-24
Posts: 1212

Re: About LTG_evnet

In the reference design, the ltg_event function gets called by the MAC High Framework's LTG subsystem. The framework knows to call this function because the STA called wlan_mac_ltg_sched_set_callback() to assign the callback. You can enable or disable LTG flows directly from C or from the wlan_exp python framework.

The current ltg_event implementations in each of the top-level designs (AP, STA, IBSS) really only send a dummy payload with the exception of a custom "ltg header" that we created to carry metadata about the flow. You could modify ltg_event to send your own custom payload and still be to control when and how often the transmissions take place via the wlan_exp LTG commands.

Alternatively and even easier, take a look at how the AP has a beacon_transmit() function that creates and enqueus a beacon. That function is called periodically by the MAC High Framework's scheduler after it is set up with with wlan_mac_schedule_event_repeated(). You can mimic that structure to send your own custom payloads and skip dealing with LTGs if you don't need the flexibility they provide.

Offline

 

Board footer