diff options
author | Roman Yeryomin <roman@advem.lv> | 2012-09-22 19:44:27 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2012-12-03 00:13:22 +0200 |
commit | 709e200be3507c4f1eed2f4f2e0628b7cfba32c9 (patch) | |
tree | 2db687e9619cf0f83d4f7bac1f5bd8d3b75d6e6b /package/librtk-inband/src/inband_if.h | |
parent | 9e96cd6c1bdccc1f9d2d6978ae12523f00bd7f85 (diff) |
Add hostapd-rtk and librtk-inband packages
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'package/librtk-inband/src/inband_if.h')
-rw-r--r-- | package/librtk-inband/src/inband_if.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/librtk-inband/src/inband_if.h b/package/librtk-inband/src/inband_if.h new file mode 100644 index 000000000..c37a3ca10 --- /dev/null +++ b/package/librtk-inband/src/inband_if.h @@ -0,0 +1,30 @@ +#ifndef INCLUDE_INBAND_IF_H +#define INCLUDE_INBAND_IF_H + +#define MAX_APP_DATA_SIZE 65535 +#define CMD_ERROR_REPLY_BIT 0x80 +#define MAX_INBAND_PAYLOAD_LEN 1480 +#define MAX_FRAG_ID (0x8000 -1) +#define FRAG_ID_MASK (~(0x8000)) + +#define EOF_BIT 0x8000 +#define SINGLE_FRAME 0x8000 +#define FIRST_FRAG_ID 0x0000 +#define PER_FRAME_TIMEOUT 2000 //ms + +#define ERROR_TIMOUT -1 +#define ERROR_DEFRAGMENT -2 + +#define RRCP_P_IOH 0x38 // RRCP IOH + +//mark_fm +#define id_firm_upgrade 0x03 + +int inband_open(char *netif_name,char *slave_mac,unsigned short eth_type,int debug); +void inband_close(int chan); +void inband_free_buf(char *data_buf,int data_len); +int inband_rcv_data(int chan,char *cmd_type,char **data,int timout_ms); //return data length +int inband_rcv_data_and_seq(int chan,unsigned int *seq,char *cmd_type,char **data,int timout_ms); //return data length +int inband_write(int chan,unsigned int seq,char cmd,char *data,int data_len,int reply); + +#endif |