Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
m2m_wifi_send_wlan_pkt

Synchronous function to transmit a WIFI RAW packet while the implementation of this packet is left to the application developer.

Functions

NMI_API sint8 m2m_wifi_send_wlan_pkt (uint8 *pu8WlanPacket, uint16 u16WlanHeaderLength, uint16 u16WlanPktSize)
 

NMI_API sint8 m2m_wifi_send_wlan_pkt ( uint8 pu8WlanPacket,
uint16  u16WlanHeaderLength,
uint16  u16WlanPktSize 
)
Parameters
[in]pu8WlanPacketPointer to a buffer holding the whole WIFI frame.
[in]u16WlanHeaderLengthThe size of the WIFI packet header ONLY.
[in]u16WlanPktSizeThe size of the whole bytes in packet.
See Also
m2m_wifi_enable_monitoring_mode m2m_wifi_disable_monitoring_mode
Precondition
Enable Monitoring mode first using m2m_wifi_enable_monitoring_mode
Warning
This function available in monitoring mode ONLY.
Note
Packets are user's responsibility.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_send(), M2M_REQ_DATA_PKT, M2M_REQ_GRP_WIFI, M2M_WIFI_REQ_SEND_WIFI_PACKET, NM_BSP_B_L_16, NULL, tstrM2MWifiTxPacketInfo::u16HeaderLength, and tstrM2MWifiTxPacketInfo::u16PacketSize.

Referenced by os_m2m_wifi_send_wlan_pkt_imp().