2015-03-23 21:20:09 +01:00
|
|
|
#include <string.h>
|
|
|
|
|
2018-03-17 17:29:09 +01:00
|
|
|
|
2015-03-23 21:20:09 +01:00
|
|
|
#include "lwapp.h"
|
2016-03-04 21:01:38 +01:00
|
|
|
#include "lw.h"
|
2015-03-23 21:20:09 +01:00
|
|
|
|
2015-04-12 10:19:02 +02:00
|
|
|
int lw_put_ac_descriptor(uint8_t * dst)
|
2015-03-23 21:20:09 +01:00
|
|
|
{
|
2018-03-17 16:21:23 +01:00
|
|
|
/* uint8_t *d=dst;
|
|
|
|
d+=lw_put_byte(d,0); / Cisco MWAR type /
|
2015-03-23 21:20:09 +01:00
|
|
|
|
2018-03-17 16:21:23 +01:00
|
|
|
// d+=lw_put_bstr(d,acinfo->hardware_version); / length must be 4
|
|
|
|
// d+=lw_put_bstr(d,acinfo->software_version); / length must be 4
|
2015-03-23 21:20:09 +01:00
|
|
|
d+=lw_put_word(d,200);
|
|
|
|
d+=lw_put_word(d,1000);
|
|
|
|
d+=lw_put_word(d,2);
|
|
|
|
d+=lw_put_word(d,2);
|
2015-04-12 10:19:02 +02:00
|
|
|
//d+=lw_put_byte(d,acinfo->security);
|
2015-03-23 21:20:09 +01:00
|
|
|
return d-dst;
|
2018-03-17 16:21:23 +01:00
|
|
|
*/
|
|
|
|
return 0;
|
2015-03-23 21:20:09 +01:00
|
|
|
}
|