You are not logged in.
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
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