124 lines
4.9 KiB
C
Executable File
124 lines
4.9 KiB
C
Executable File
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef CVG_NWM_SG_INTERNAL_H
|
|
#define CVG_NWM_SG_INTERNAL_H
|
|
|
|
/* cvg module internal includes */
|
|
#include "cvg_nwm_internal.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* @brief cvg_nwm_sof_single_hop_rx_check() - sanity check for sof single-hop
|
|
* frame
|
|
* @param: nwm -- nwm vdev pointer
|
|
* @param: fc -- ointer to frame control of the frame
|
|
* @param: data -- point to pointer to mac header. it
|
|
* will point to pointer to msdu
|
|
* payload for return.
|
|
* @param:len -- pointer to len of the data buffer.
|
|
* it will point to length of the
|
|
* msdu payload for return.
|
|
*
|
|
* @return 0 - for success case
|
|
* @return otherwise - error code
|
|
*/
|
|
uint8_t cvg_nwm_sof_single_hop_rx_check(cvg_nwm_vdev_t *nwm, frame_control_t *fc,
|
|
uint8_t **data, uint32_t *len);
|
|
|
|
/*
|
|
* @brief cvg_nwm_sof_rx_check() - sanity check for sof frame
|
|
* @param: nwm -- nwm vdev pointer
|
|
* @param: fc -- ointer to frame control of the frame
|
|
* @param: data -- point to pointer to mac header. it
|
|
* will point to pointer to msdu
|
|
* payload for return.
|
|
* @param:len -- pointer to len of the data buffer.
|
|
* it will point to length of the
|
|
* msdu payload for return.
|
|
*
|
|
* @return 0 - for success case
|
|
* @return otherwise - error code
|
|
*/
|
|
uint8_t cvg_nwm_sof_rx_check(cvg_nwm_vdev_t *nwm, frame_control_t *fc,
|
|
uint8_t **data, uint32_t *len);
|
|
|
|
/**
|
|
* @brief cvg_nwm_cert_test_sof_rx_check() - sanity check for
|
|
* cert test sof frame.
|
|
* @param: nwm -- nwm vdev pointer
|
|
* @param: fc -- pointer to frame control of the frame
|
|
* @param: data -- point to pointer to mac header.
|
|
* it will point to pointer to
|
|
* msdu payload for return.
|
|
* @param: len -- pointer to len of the data buffer.
|
|
* it will point to length of
|
|
* the msdu payload for return.
|
|
* @return 0 - for success case
|
|
* @return otherwise - error code
|
|
*/
|
|
uint8_t cvg_nwm_cert_test_sof_rx_check(cvg_nwm_vdev_t *nwm,
|
|
frame_control_t *fc, uint8_t **data, uint32_t *len);
|
|
|
|
/**
|
|
* @brief cvg_nwm_sila_nhm_msdu_rx_check() - sanity check for
|
|
* sila non header mode msdu.
|
|
* @param: nwm - nwm vdev pointer.
|
|
* @param: mac - pointer to the mac header.
|
|
* @param: data - pointer to msdu payload.
|
|
* @param: len - length of the msdu payload.
|
|
* @return 0 - for success case
|
|
* @return otherwise - error code
|
|
*/
|
|
uint8_t cvg_nwm_sila_nhm_msdu_rx_check(cvg_nwm_vdev_t *nwm, mac_header_t *mac,
|
|
uint8_t *data, uint32_t len);
|
|
|
|
/**
|
|
* @brief cvg_nwm_cert_test_msdu_rx_check() - sanity check for cert test msdu.
|
|
* @param: nwm - nwm vdev pointer
|
|
* @param: data - point to pointer msdu.
|
|
* if cert test port id is CERT_TEST_PORT_EXT,
|
|
* it will point to pointer to conn less header for return.
|
|
* @param: len - pointer to len of the data buffer.
|
|
* if cert test port id is CERT_TEST_PORT_EXT,
|
|
* it will point to length of the conn less massage for return.
|
|
* @return 0 - for fail case
|
|
* @return otherwise - cert test command type, see CERT_TEST_PORT_XXX
|
|
*/
|
|
uint8_t cvg_nwm_cert_test_msdu_rx_check(cvg_nwm_vdev_t *nwm,
|
|
uint8_t **data, uint32_t *len);
|
|
|
|
/**
|
|
* @brief cvg_nwm_app_sniffrer_sof_rx_check() - sanity check for app sniffer
|
|
* msdu.
|
|
* @param: nwm - nwm vdev pointer
|
|
* @param: data - point to pointer msdu.
|
|
* will point to pointer to msdu payload for return.
|
|
* @param: len - pointer to len of the data buffer.
|
|
* it will point to length of the msdu payload for return.
|
|
* @return 0 - for success case
|
|
* @return otherwise - error code
|
|
*/
|
|
uint8_t cvg_nwm_app_sniffrer_sof_rx_check(cvg_nwm_vdev_t *nwm,
|
|
frame_control_t *fc, uint8_t **data, uint32_t *len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CVG_NWM_SG_INTERNAL_H */ |