-
Notifications
You must be signed in to change notification settings - Fork 4
/
indigo_api.h
408 lines (378 loc) · 21.7 KB
/
indigo_api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
/* Copyright (c) 2020 Wi-Fi Alliance */
/* Permission to use, copy, modify, and/or distribute this software for any */
/* purpose with or without fee is hereby granted, provided that the above */
/* copyright notice and this permission notice appear in all copies. */
/* THE SOFTWARE IS PROVIDED 'AS IS' AND THE AUTHOR DISCLAIMS ALL */
/* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED */
/* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL */
/* THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR */
/* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING */
/* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF */
/* CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT */
/* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS */
/* SOFTWARE. */
#ifndef _INDIGO_API_
#define _INDIGO_API_
#include "indigo_packet.h"
/* API */
#define NAME_SIZE 64
struct indigo_tlv {
unsigned short id;
char name[NAME_SIZE];
};
struct indigo_api {
unsigned short type;
char name[NAME_SIZE];
int (*verify)(struct packet_wrapper *req, struct packet_wrapper *resp);
int (*handle)(struct packet_wrapper *req, struct packet_wrapper *resp);
};
/* API definition */
#define API_VERSION 0x01
#define API_RESERVED_BYTE 0xff
/* Message type definition */
#define API_CMD_RESPONSE 0x0000
#define API_CMD_ACK 0x0001
#define API_AP_START_UP 0x1000
#define API_AP_STOP 0x1001
#define API_AP_CONFIGURE 0x1002
#define API_AP_TRIGGER_CHANSWITCH 0x1003
#define API_AP_SEND_DISCONNECT 0x1004
#define API_AP_SET_PARAM 0x1005
#define API_AP_SEND_BTM_REQ 0x1006
#define API_AP_SEND_ARP_MSGS 0x1007
#define API_AP_START_WPS 0x1008
#define API_AP_CONFIGURE_WSC 0x1009
#define API_STA_ASSOCIATE 0x2000
#define API_STA_CONFIGURE 0x2001
#define API_STA_DISCONNECT 0x2002
#define API_STA_SEND_DISCONNECT 0x2003
#define API_STA_REASSOCIATE 0x2004
#define API_STA_SET_PARAM 0x2005
#define API_STA_SEND_BTM_QUERY 0x2006
#define API_STA_SEND_ANQP_QUERY 0x2007
#define API_STA_START_UP 0x2008
#define API_STA_SET_PHY_MODE 0x2009
#define API_STA_SET_CHANNEL_WIDTH 0x200a
#define API_STA_POWER_SAVE 0x200b
#define API_P2P_START_UP 0x200c
#define API_P2P_FIND 0x200d
#define API_P2P_LISTEN 0x200e
#define API_P2P_ADD_GROUP 0x200f
#define API_P2P_START_WPS 0x2010
#define API_P2P_CONNECT 0x2011
#define API_STA_HS2_ASSOCIATE 0x2012
#define API_STA_ADD_CREDENTIAL 0x2013
#define API_STA_SCAN 0x2014
#define API_P2P_GET_INTENT_VALUE 0x2015
#define API_STA_START_WPS 0x2016
#define API_STA_INSTALL_PPSMO 0x2017
#define API_P2P_INVITE 0x2018
#define API_P2P_STOP_GROUP 0x2019
#define API_P2P_SET_SERV_DISC 0x201a
#define API_STA_SEND_ICON_REQ 0x201b
#define API_P2P_SET_EXT_LISTEN 0x201c
#define API_STA_ENABLE_WSC 0x201d
#define API_GET_IP_ADDR 0x5000
#define API_GET_MAC_ADDR 0x5001
#define API_GET_CONTROL_APP_VERSION 0x5002
#define API_START_LOOP_BACK_SERVER 0x5003
#define API_STOP_LOOP_BACK_SERVER 0x5004
#define API_CREATE_NEW_INTERFACE_BRIDGE_NETWORK 0x5005
#define API_ASSIGN_STATIC_IP 0x5006
#define API_DEVICE_RESET 0x5007
#define API_SEND_LOOP_BACK_DATA 0x5008
#define API_STOP_LOOP_BACK_DATA 0x5009
#define API_START_DHCP 0x500a
#define API_STOP_DHCP 0x500b
#define API_GET_WSC_PIN 0x500c
#define API_GET_WSC_CRED 0x500d
/* TLV definition */
#define TLV_SSID 0x0001
#define TLV_CHANNEL 0x0002
#define TLV_WEP_KEY0 0x0003
#define TLV_AUTH_ALGORITHM 0x0004
#define TLV_WEP_DEFAULT_KEY 0x0005
#define TLV_IEEE80211_D 0x0006
#define TLV_IEEE80211_N 0x0007
#define TLV_IEEE80211_AC 0x0008
#define TLV_COUNTRY_CODE 0x0009
#define TLV_WMM_ENABLED 0x000a
#define TLV_WPA 0x000b
#define TLV_WPA_KEY_MGMT 0x000c
#define TLV_RSN_PAIRWISE 0x000d
#define TLV_WPA_PASSPHRASE 0x000e
#define TLV_WPA_PAIRWISE 0x000f
#define TLV_HT_CAPB 0x0010
#define TLV_IEEE80211_H 0x0011
#define TLV_IEEE80211_W 0x0012
#define TLV_VHT_OPER_CHWIDTH 0x0013
#define TLV_VHT_CAPB 0x0014
#define TLV_IEEE8021_X 0x0015
#define TLV_EAP_SERVER 0x0016
#define TLV_AUTH_SERVER_ADDR 0x0017
#define TLV_AUTH_SERVER_PORT 0x0018
#define TLV_AUTH_SERVER_SHARED_SECRET 0x0019
#define TLV_INTERFACE_NAME 0x001a
#define TLV_NEW_INTERFACE_NAME 0x001b
#define TLV_FREQUENCY 0x001c
#define TLV_BSS_IDENTIFIER 0x001d
#define TLV_HW_MODE 0x001e
#define TLV_VHT_OPER_CENTR_FREQ 0x001f
#define TLV_RESET_TYPE 0x0020
#define APP_TYPE 0x0021
#define TLV_OP_CLASS 0x0022
#define TLV_IE_OVERRIDE 0x0023
#define TLV_HOME_FQDN 0x0024
#define TLV_USERNAME 0x0025
#define TLV_PREFER 0x0026
#define TLV_CREDENTIAL_TYPE 0x0027
#define TLV_ADDRESS 0x0028
#define TLV_DISABLE_PMKSA_CACHING 0x0033
#define TLV_SAE_ANTI_CLOGGING_THRESHOLD 0x0034
#define TLV_STA_SSID 0x0035
#define TLV_KEY_MGMT 0x0036
#define TLV_STA_WEP_KEY0 0x0037
#define TLV_WEP_TX_KEYIDX 0x0038
#define TLV_GROUP 0x0039
#define TLV_PSK 0x003a
#define TLV_PROTO 0x003b
#define TLV_STA_IEEE80211_W 0x003c
#define TLV_PAIRWISE 0x003d
#define TLV_EAP 0x003e
#define TLV_PHASE2 0x003f
#define TLV_IDENTITY 0x0040
#define TLV_PASSWORD 0x0041
#define TLV_CA_CERT 0x0042
#define TLV_PHASE1 0x0043
#define TLV_CLIENT_CERT 0x0044
#define TLV_PRIVATE_KEY 0x0045
#define TLV_STA_POWER_SAVE 0x0052
#define TLV_STATIC_IP 0x0055
#define TLV_DEBUG_LEVEL 0x0057
#define TLV_DUT_IP_ADDRESS 0x0058
#define TLV_HOSTAPD_FILE_NAME 0x0059
#define TLV_ROLE 0x005c
#define TLV_BAND 0x005d
#define TLV_BSSID 0x005e
#define TLV_ARP_TRANSMISSION_RATE 0x005f
#define TLV_ARP_TARGET_IP 0x0060
#define TLV_ARP_FRAME_COUNT 0x0062
#define TLV_PACKET_COUNT 0x0067
#define TLV_PACKET_TYPE 0x0068
#define TLV_PACKET_RATE 0x0069
#define TLV_PHYMODE 0x006a
#define TLV_CHANNEL_WIDTH 0x006b
#define TLV_PAC_FILE 0x006d
#define TLV_STA_SAE_GROUPS 0x006e
#define TLV_SAE_GROUPS 0x0071
#define TLV_IEEE80211_AX 0x0072
#define TLV_HE_OPER_CHWIDTH 0x0073
#define TLV_HE_OPER_CENTR_FREQ 0x0074
#define TLV_MBO 0x0075
#define TLV_MBO_CELL_DATA_CONN_PREF 0x0076
#define TLV_BSS_TRANSITION 0x0077
#define TLV_INTERWORKING 0x0078
#define TLV_RRM_NEIGHBOR_REPORT 0x0079
#define TLV_RRM_BEACON_REPORT 0x007a
#define TLV_COUNTRY3 0x007b
#define TLV_MBO_CELL_CAPA 0x007c
#define TLV_DOMAIN_MATCH 0x007d
#define TLV_DOMAIN_SUFFIX_MATCH 0x007e
#define TLV_MBO_ASSOC_DISALLOW 0x007f
#define TLV_DISASSOC_IMMINENT 0x0081
#define TLV_BSS_TERMINATION 0x0082
#define TLV_DISASSOC_TIMER 0x0083
#define TLV_BSS_TERMINATION_TSF 0x0084
#define TLV_BSS_TERMINATION_DURATION 0x0085
#define TLV_REASSOCIAITION_RETRY_DELAY 0x0086
#define TLV_BTMQUERY_REASON_CODE 0x0087
#define TLV_CANDIDATE_LIST 0x0088
#define TLV_ANQP_INFO_ID 0x0089
#define TLV_GAS_COMEBACK_DELAY 0x008a
#define TLV_SAE_PWE 0x008d
#define TLV_OWE_GROUPS 0x008e
#define TLV_STA_OWE_GROUP 0x008f
#define TLV_HE_MU_EDCA 0x0090
#define TLV_RSNXE_OVERRIDE_EAPOL 0x0092
#define TLV_TRANSITION_DISABLE 0x0093
#define TLV_SAE_CONFIRM_IMMEDIATE 0x0094
#define TLV_RAND_MAC_ADDR 0x0095
#define TLV_PREASSOC_RAND_MAC_ADDR 0x0096
#define TLV_RAND_ADDR_LIFETIME 0x0097
#define TLV_DROP_SA 0x0098
#define TLV_SERVER_CERT 0x0099
#define TLV_CONTROL_INTERFACE 0x009c
#define TLV_PACKET_SIZE 0x009d
#define TLV_DUT_UDP_PORT 0x009e
#define TLV_SKIP_6G_BSS_SECURITY_CHECK 0x00a1
#define TLV_OWE_TRANSITION_BSS_IDENTIFIER 0x00a2
#define TLV_FREQ_LIST 0x00a3
#define TLV_BSSID_FILTER_LIST 0x00a4
#define TLV_HE_BEACON_TX_SU_PPDU 0x00a5
#define TLV_HE_6G_ONLY 0x00a6
#define TLV_HE_UNSOL_PR_RESP_CADENCE 0x00a7
#define TLV_HE_FILS_DISCOVERY_TX 0x00a8
#define TLV_HS20 0x00a9
#define TLV_ACCESS_NETWORK_TYPE 0x00aa
#define TLV_INTERNET 0x00ab
#define TLV_VENUE_GROUP 0x00ac
#define TLV_VENUE_TYPE 0x00ad
#define TLV_HESSID 0x00ae
#define TLV_OSU_SSID 0x00af
#define TLV_ANQP_3GPP_CELL_NETWORK_INFO 0x00b0
#define TLV_PROXY_ARP 0x00b1
#define TLV_BSSLOAD_ENABLE 0x00b2
#define TLV_ROAMING_CONSORTIUM 0x00b3
#define TLV_NETWORK_AUTH_TYPE 0x00b4
#define TLV_DOMAIN_LIST 0x00b5
#define TLV_HS20_OPERATOR_FRIENDLY_NAME 0x00b6
#define TLV_NAI_REALM 0x00b7
#define TLV_VENUE_NAME 0x00b8
#define TLV_IPADDR_TYPE_AVAILABILITY 0x00b9
#define TLV_HS20_WAN_METRICS 0x00ba
#define TLV_HS20_CONN_CAPABILITY 0x00bb
#define TLV_VENUE_URL 0x00bc
#define TLV_OPERATOR_ICON_METADATA 0x00bd
#define TLV_OSU_PROVIDERS_LIST 0x00be
#define TLV_OSU_PROVIDERS_NAI_LIST 0x00bf
#define TLV_REALM 0x00c0
#define TLV_IMSI 0x00c1
#define TLV_MILENAGE 0x00c2
#define TLV_PPSMO_FILE 0x00c3
#define TLV_OSU_SERVER_URI 0x00c4
#define TLV_OSU_METHOD 0x00c5
#define TLV_GO_INTENT 0x00c6
#define TLV_WSC_METHOD 0x00c7
#define TLV_PIN_METHOD 0x00c8
#define TLV_PIN_CODE 0x00c9
#define TLV_P2P_CONN_TYPE 0x00ca
#define TLV_HS20_OPERATING_CLASS_INDICATION 0x00cb
#define TLV_WPS_ENABLE 0x00cc
#define TLV_UPDATE_CONFIG 0x00cd
#define TLV_EAP_FRAG_SIZE 0x00ce
#define TLV_PERFORM_WPS_IE_FRAG 0x00cf
#define TLV_ADVICE_OF_CHARGE 0x00d0
#define TLV_IGNORE_BROADCAST_SSID 0x00d1
#define TLV_PERSISTENT 0x00d2
#define TLV_WSC_CONFIG_ONLY 0x00d3
#define TLV_ICON_FILE 0x00d4
#define TLV_P2P_DISABLED 0x00d5
#define TLV_MANAGE_P2P 0x00d6
#define TLV_AP_STA_COEXIST 0x00d7
#define TLV_WPS_INDEPENDENT 0x00d8
#define TLV_LOCAL_PWR_CONST 0x00d9
#define TLV_SPECTRUM_MGMT_REQ 0x00da
#define TLV_CAPTURE_FILE 0x00db
#define TLV_CAPTURE_FILTER 0x00dc
#define TLV_CAPTURE_INFILE 0x00dd
#define TLV_CAPTURE_OUTFILE 0x00de
#define TLV_TP_IP_ADDRESS 0x00df
#define TLV_WPS_ER_SUPPORT 0x00e0
#define TLV_ADDITIONAL_TEST_PLATFORM_ID 0x00e1
// class ResponseTLV
// List of TLV used in the QuickTrack API response and ACK messages from the DUT
#define TLV_MESSAGE 0xa000
#define TLV_STATUS 0xa001
#define TLV_DUT_WLAN_IP_ADDR 0xa002
#define TLV_DUT_MAC_ADDR 0xa003
#define TLV_CONTROL_APP_VERSION 0xa004
#define TLV_LOOP_BACK_DATA_RECEIVED 0xa005
#define TLV_LOOP_BACK_DATA_SENT 0xa006
#define TLV_ARP_RECV_NUM 0xa007
#define TLV_TEST_PLATFORM_APP_VERSION 0xa008
#define TLV_LOOP_BACK_SERVER_PORT 0xa009
#define TLV_WSC_PIN_CODE 0xa00a
#define TLV_P2P_INTENT_VALUE 0xa00b
#define TLV_WSC_SSID 0xa00c
#define TLV_WSC_WPA_KEY_MGMT 0xa00d
#define TLV_WSC_WPA_PASSPHRASE 0xa00e
#define TLV_PASSPOINT_ICON_CHECKSUM 0xa00f
/* TLV Value */
#define DUT_TYPE_STAUT 0x01
#define DUT_TYPE_APUT 0x02
#define DUT_TYPE_P2PUT 0x03
#define TLV_BAND_24GHZ "2.4GHz"
#define TLV_BAND_5GHZ "5GHz"
#define TLV_BAND_6GHZ "6GHz"
#define TLV_VALUE_APP_VERSION "v2.1"
#define TLV_VALUE_OK "OK"
#define TLV_VALUE_NOT_OK "Failed"
#define TLV_VALUE_INSUFFICIENT_TLV "TLV is insufficient to run the command"
#define TLV_VALUE_STATUS_OK 0x30
#define TLV_VALUE_STATUS_NOT_OK 0x31
#define TLV_VALUE_LOOP_BACK_STOP_OK "Loopback server in idle state"
#define TLV_VALUE_HOSTAPD_STOP_OK "AP stop completed : Hostapd service is inactive."
#define TLV_VALUE_HOSTAPD_STOP_NOT_OK "Failed to stop hostapd service."
#define TLV_VALUE_WPA_SET_PARAMETER_OK "Set parameter action was successful."
#define TLV_VALUE_WPA_SET_PARAMETER_NO_OK "Failed to set parameter."
#define TLV_VALUE_WPA_PARAMETER_NOT_SUPPORT "The set parameter is not supported"
#define TLV_VALUE_HOSTAPD_START_OK "AP is up : Hostapd service is active"
#define TLV_VALUE_ASSIGN_STATIC_IP_OK "Static IP successfully assigned to wireless interface"
#define TLV_VALUE_ASSIGN_STATIC_IP_NOT_OK "Static IP failed to be assigned to wireless interface"
#define TLV_VALUE_LOOPBACK_SVR_START_OK "Loop back server initialized"
#define TLV_VALUE_LOOPBACK_SVR_START_NOT_OK "Failed to initialise loop back server"
#define TLV_VALUE_SEND_LOOPBACK_DATA_OK "Send Loop back data successful"
#define TLV_VALUE_SEND_LOOPBACK_DATA_NOT_OK "Send Loop back data failed"
#define TLV_VALUE_WIRELESS_INTERFACE_NOT_OK "Wireless interface is not available"
#define TLV_VALUE_HOSTAPD_CTRL_NOT_OK "Failed to connect to hostapd control interface"
#define TLV_VALUE_HOSTAPD_NOT_OK "Failed to find hostapd PID"
#define TLV_VALUE_HOSTAPD_RESP_NOT_OK "Hostapd response is failed"
#define TLV_VALUE_BROADCAST_ARP_TEST_OK "Broadcast ARP test successful"
#define TLV_VALUE_BROADCAST_ARP_TEST_NOT_OK "Broadcast ARP test failed"
#define TLV_VALUE_CREATE_BRIDGE_OK "Bridge network is created successfully"
#define TLV_VALUE_CREATE_BRIDGE_NOT_OK "Failed to create bridge network"
#define TLV_VALUE_START_DHCP_NOT_OK "Failed to start DHCP server or client"
#define TLV_VALUE_WPA_S_START_UP_OK "wpa_supplicant is initialized successfully"
#define TLV_VALUE_WPA_S_START_UP_NOT_OK "The wpa_supplicant was unable to initialize."
#define TLV_VALUE_WPA_S_ADD_CRED_OK "Add credential to the STA successfully"
#define TLV_VALUE_WPA_S_ADD_CRED_NOT_OK "Failed to add credential to the STA."
#define TLV_VALUE_WPA_S_STOP_NOT_OK "Failed to stop wpa supplicant service."
#define TLV_VALUE_WPA_S_STOP_OK "QuickTrack tool STA was successfully disconnected"
#define TLV_VALUE_WPA_S_ASSOC_OK "STA is up: WPA supplicant associated"
#define TLV_VALUE_WPA_S_ASSOC_NOT_OK "WPA supplicant cannot associate with AP"
#define TLV_VALUE_WPA_S_DISCONNECT_OK "Sent DISCONNECT message"
#define TLV_VALUE_WPA_S_DISCONNECT_NOT_OK "Failed to send DISCONNECT message"
#define TLV_VALUE_WPA_S_RECONNECT_OK "Sent RECONNECT message"
#define TLV_VALUE_WPA_S_RECONNECT_NOT_OK "Failed to send RECONNECT message"
#define TLV_VALUE_WPA_S_CTRL_NOT_OK "Failed to connect to WPA supplicant control interface"
#define TLV_VALUE_WPA_S_BTM_QUERY_OK "Sent WNM_BSS_QUERY"
#define TLV_VALUE_WPA_S_BTM_QUERY_NOT_OK "Failed to WNM_BSS_QUERY"
#define TLV_VALUE_WPA_S_SCAN_NOT_OK "Failed to trigger SCAN"
#define TLV_VALUE_RESET_OK "Device reset successfully"
#define TLV_VALUE_RESET_NOT_OK "Failed to run Device reset"
#define TLV_VALUE_POWER_SAVE_OK "Set power save value successfully"
#define TLV_VALUE_POWER_SAVE_NOT_OK "Failed to set power save value"
#define TLV_VALUE_P2P_FIND_NOT_OK "Failed to trigger P2P find"
#define TLV_VALUE_P2P_LISTEN_NOT_OK "Failed to trigger P2P listen"
#define TLV_VALUE_P2P_ADD_GROUP_NOT_OK "Failed to add P2P group"
#define TLV_VALUE_P2P_START_WPS_NOT_OK "Failed to start WPS on GO interface"
#define TLV_VALUE_P2P_CONNECT_NOT_OK "Failed to trigger P2P connect"
#define TLV_VALUE_P2P_INVITE_NOT_OK "Failed to invite P2P device"
#define TLV_VALUE_P2P_SET_SERV_DISC_NOT_OK "Failed to set service discovery"
#define TLV_VALUE_P2P_SET_EXT_LISTEN_NOT_OK "Failed to set extended listen timing"
#define TLV_VALUE_HS2_INSTALL_PPSMO_OK "PPSMO file is installed"
#define TLV_VALUE_HS2_INSTALL_PPSMO_NOT_OK "Failed to install PPSMO file"
#define TLV_VALUE_AP_START_WPS_NOT_OK "Failed to start WPS on AP interface"
#define TLV_VALUE_AP_WSC_PIN_CODE_NOT_OK "AP detects invalid PIN code"
#define RESET_TYPE_INIT 0x01
#define RESET_TYPE_TEARDOWN 0x02
#define RESET_TYPE_RECONFIGURE 0x03
#define WPA_CTRL_OK "OK"
#define WPA_CTRL_FAIL "FAIL"
#define P2P_CONN_TYPE_JOIN 0x01
#define P2P_CONN_TYPE_AUTH 0x02
#define WPS_ENABLE_NORMAL 0x01
#define WPS_ENABLE_OOB 0x02
struct indigo_api* get_api_by_id(int id);
struct indigo_tlv* get_tlv_by_id(int id);
char* get_api_type_by_id(int id);
typedef int (*api_callback_func)(struct packet_wrapper *req, struct packet_wrapper *resp);
void register_api(int id, api_callback_func verify, api_callback_func handle);
void fill_wrapper_ack(struct packet_wrapper *wrapper, int seq, int status, char *reason);
void register_api(int id, api_callback_func verify, api_callback_func handle);
void fill_wrapper_message_hdr(struct packet_wrapper *wrapper, int msg_type, int seq);
void fill_wrapper_tlv_byte(struct packet_wrapper *wrapper, int id, char value);
void fill_wrapper_tlv_bytes(struct packet_wrapper *wrapper, int id, int len, char* value);
/* Solution Vendor */
void register_apis();
#endif // __INDIGO_API_