2016-04-10 15:53:50 +02:00
|
|
|
#include "cw.h"
|
|
|
|
#include "capwap.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t *cw_init_data_keep_alive_msg(uint8_t * buffer,uint8_t *rmac)
|
|
|
|
{
|
|
|
|
/* zero the first 8 bytes */
|
|
|
|
memset(buffer,0,8);
|
|
|
|
|
|
|
|
/* put capwap header, unencrypted */
|
|
|
|
#if CAPWAP_PACKET_PREAMBLE != 0
|
|
|
|
cw_set_hdr_preamble(buffer, CAPWAP_PACKET_PREAMBLE);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
cw_set_hdr_rmac(buffer, rmac);
|
|
|
|
|
2018-02-23 09:30:10 +01:00
|
|
|
cw_set_hdr_flags(buffer, CAPWAP_FLAG_HDR_K,1);
|
2016-04-10 15:53:50 +02:00
|
|
|
|
|
|
|
return cw_get_hdr_payload_ptr(buffer);
|
|
|
|
}
|
|
|
|
|