code cleanup
FossilOrigin-Name: 9a108e18195d7c46a978339d7818ac688dec8315eb4afdd826d39f8cebab82a3
This commit is contained in:
@ -20,12 +20,14 @@
|
||||
#include "cw/cw.h"
|
||||
#include "cw/ktv.h"
|
||||
#include "cw/log.h"
|
||||
#include "cw/dbg.h"
|
||||
|
||||
#include "cw/msgset.h"
|
||||
#include "cw/keys.h"
|
||||
|
||||
#include "mod_capwap.h"
|
||||
|
||||
|
||||
static struct cw_ElemHandler handlers[] = {
|
||||
|
||||
{
|
||||
@ -219,12 +221,16 @@ static struct cw_MsgDef messages[] = {
|
||||
struct cw_MsgSet * capwap_register_msg_set(struct cw_MsgSet * set, int mode){
|
||||
if (mode != CW_MOD_MODE_CAPWAP)
|
||||
return NULL;
|
||||
|
||||
cw_dbg(DBG_INFO,"CAPWAP: Register messages");
|
||||
|
||||
cw_msgset_add(set,messages, handlers);
|
||||
mavl_add_ptr(set->types_tree,CW_TYPE_BSTR16);
|
||||
mavl_add_ptr(set->types_tree,CW_TYPE_BYTE);
|
||||
mavl_add_ptr(set->types_tree,CW_TYPE_DWORD);
|
||||
mavl_add_ptr(set->types_tree,CW_TYPE_WORD);
|
||||
|
||||
cw_dbg(DBG_INFO,"CAPWAP: Done register messages");
|
||||
return set;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ int capwap_in_vendor_specific_payload(struct cw_ElemHandler *handler,
|
||||
return 0;
|
||||
}
|
||||
|
||||
cw_dbg_elem(DBG_ELEM_IN,params->conn,0,vhandler, params, data+6,len-6);
|
||||
// cw_dbg_elem(DBG_ELEM_IN,params->conn,0,vhandler, data+6,len-6);
|
||||
//vhandler->get(vhandler, params, data+6, len-6);
|
||||
|
||||
cw_process_element(params,0,vendor_id,elem_id,data+6,len-6);
|
||||
|
@ -14,6 +14,7 @@ extern int capwap_register_actions_ac(struct cw_actiondef *def);
|
||||
|
||||
static int init(struct cw_Mod * mod, mavl_t global_cfg, int role)
|
||||
{
|
||||
cw_dbg(DBG_INFO,"CAPWAP: Inititalizing mod_capwap.");
|
||||
switch (role){
|
||||
case CW_ROLE_AC:{
|
||||
cw_dbg(DBG_MOD, "CAPWAP: Initialiazing mod_capwap in AC mode");
|
||||
|
Reference in New Issue
Block a user