Working on differences from 7.3 to 7.5 version
FossilOrigin-Name: 02bf967f2dfcb1349d8c843daab6b16ac998a5b857ffb4ee71d7e84f44313ef8
This commit is contained in:
@ -7,19 +7,27 @@
|
||||
int cw_in_generic_struct(struct cw_ElemHandler * handler, struct cw_ElemHandlerParams * params,
|
||||
uint8_t * elem_data, int elem_len)
|
||||
{
|
||||
/*cw_KTV_t * result;*/
|
||||
const char * key;
|
||||
char tmpkey[CW_KTV_MAX_KEY_LEN];
|
||||
|
||||
if (handler->mkkey != NULL){
|
||||
handler->mkkey(key,elem_data,elem_len, tmpkey);
|
||||
key = tmpkey;
|
||||
}
|
||||
else{
|
||||
key = handler->key;
|
||||
}
|
||||
|
||||
/* int (*mkkey)(struct cw_ElemHandler * handler, char *dst, struct cw_ElemHandlerParams * params,
|
||||
uint8_t*data, int len);
|
||||
*/
|
||||
|
||||
if (!handler->type){
|
||||
cw_log(LOG_ERR,"Can't handle element: %s, no type defined",handler->name);
|
||||
return CAPWAP_RESULT_UNRECOGNIZED_MESSAGE_ELEMENT;
|
||||
}
|
||||
|
||||
/* result = cw_ktv_add(params->conn->remote_cfg, handler->key,
|
||||
handler->type, elem_data,elem_len);
|
||||
*/
|
||||
cw_ktv_read_struct(params->conn->remote_cfg,handler->type,handler->key,elem_data,elem_len);
|
||||
|
||||
/*params->elem=result;*/
|
||||
|
||||
cw_ktv_read_struct(params->conn->remote_cfg,handler->type,key,elem_data,elem_len);
|
||||
|
||||
return CAPWAP_RESULT_SUCCESS;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@
|
||||
|
||||
/* LWAPP IEEE 802.11 bindings */
|
||||
|
||||
#define LW_ELEM_80211_ADD_WLAN LW_ELEM_ADD_WLAN
|
||||
#define LW_ELEM_80211_ADD_WLAN LWAPP_ELEM_ADD_WLAN
|
||||
#define LW_ELEM_80211_WTP_WLAN_RADIO_CONFIGURATION 8
|
||||
#define LW_ELEM_80211_MULTI_DOMAIN_CAPABILITY 10
|
||||
#define LW_ELEM_80211_MAC_OPERATION 11
|
||||
|
@ -57,9 +57,9 @@ struct cw_ElemHandler {
|
||||
|
||||
int (*put)(struct cw_ElemHandler * handler, struct cw_ElemHandlerParams * params, uint8_t * dst);
|
||||
|
||||
/*
|
||||
int (*end_in)(struct conn *conn,struct cw_action_in *a,uint8_t*elem,int len,struct sockaddr *from);
|
||||
*/
|
||||
int (*mkkey)(const char *pkey, uint8_t*data, int len, char *dst);
|
||||
|
||||
|
||||
};
|
||||
|
||||
struct cw_MsgDef{
|
||||
|
Reference in New Issue
Block a user