WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
wai_rxtx.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2022. All rights reserved.
3 * Description: WAPI Implementation
4 */
5
6#ifndef WAI_RXTX_H
7#define WAI_RXTX_H
8
9typedef struct _wai_hdr_stru {
10 unsigned char version[2];
11 unsigned char type;
12 unsigned char subtype;
13 unsigned char reserve[2];
14 unsigned char length[2];
15 unsigned char frameseq[2];
16 unsigned char fragseq;
17 unsigned char flag;
18 /* Followed by Data */
19} STRUCT_PACKED wai_hdr_stru;
20
21void wai_rx_packet(void *ctx, const unsigned char *src_mac,
22 const unsigned char *buf, unsigned int datalen);
23int wai_tx_packet(struct wpa_supplicant *wpa,
24 const unsigned char *buf, unsigned int datalen);
25
26#endif /* end of wai_rxtx.h */
Definition wai_rxtx.h:9
unsigned char fragseq
Definition wai_rxtx.h:16
unsigned char subtype
Definition wai_rxtx.h:12
unsigned char type
Definition wai_rxtx.h:11
unsigned char version[2]
Definition wai_rxtx.h:10
unsigned char reserve[2]
Definition wai_rxtx.h:13
unsigned char flag
Definition wai_rxtx.h:17
unsigned char frameseq[2]
Definition wai_rxtx.h:15
unsigned char length[2]
Definition wai_rxtx.h:14
void wai_rx_packet(void *ctx, const unsigned char *src_mac, const unsigned char *buf, unsigned int datalen)
Receives WAI frames, which are called back when L2 receives WAI data.
Definition wai_rxtx.c:132
struct _wai_hdr_stru wai_hdr_stru
int wai_tx_packet(struct wpa_supplicant *wpa, const unsigned char *buf, unsigned int datalen)
Sending WAI frames
Definition wai_rxtx.c:114