Colored debugging, some code cleaning.
FossilOrigin-Name: 23a60b9297d5719fa502b2163680fa1af8bc0201cb777771dc30de045f84b341
This commit is contained in:
@ -1,19 +1,18 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "acinfo.h"
|
||||
#include "lwapp.h"
|
||||
|
||||
int lw_put_ac_descriptor(uint8_t * dst, struct ac_info * acinfo)
|
||||
int lw_put_ac_descriptor(uint8_t * dst)
|
||||
{
|
||||
uint8_t *d=dst;
|
||||
d+=lw_put_byte(d,0); /* Cisco MWAR type */
|
||||
|
||||
d+=lw_put_bstr(d,acinfo->hardware_version); /* length must be 4 */
|
||||
d+=lw_put_bstr(d,acinfo->software_version); /* length must be 4 */
|
||||
// d+=lw_put_bstr(d,acinfo->hardware_version); /* length must be 4 */
|
||||
// d+=lw_put_bstr(d,acinfo->software_version); /* length must be 4 */
|
||||
d+=lw_put_word(d,200);
|
||||
d+=lw_put_word(d,1000);
|
||||
d+=lw_put_word(d,2);
|
||||
d+=lw_put_word(d,2);
|
||||
d+=lw_put_byte(d,acinfo->security);
|
||||
//d+=lw_put_byte(d,acinfo->security);
|
||||
return d-dst;
|
||||
}
|
||||
|
Reference in New Issue
Block a user