cw_out_radio_generic added.

FossilOrigin-Name: fcb869eff341bed095bf9c7252add72a7d72cd38cec876bd992b1018314be2c2
This commit is contained in:
7u83@mail.ru 2016-04-11 02:17:23 +00:00
parent 2ef7f87010
commit 0a3ffcf280
3 changed files with 6 additions and 40 deletions

View File

@ -182,6 +182,7 @@ CAPWAPOBJS= \
cw_check_missing_mand.o \
md5sum.o \
format.o \
# action_sources.o \
# cw_in_cisco_add_wlan.o
DOT11OBJS = \
@ -280,6 +281,7 @@ CWACTION=action.o \
cisco.o \
radio.o \
cw_in_radio_generic.o\
cw_out_radio_generic.o \
cw_out_radio_info.o \
capwap_items.o \
item.o \

View File

@ -572,6 +572,9 @@ static inline int cw_put_elem_session_id(uint8_t *dst, uint8_t *session_id, int
return len+cw_put_elem_hdr(dst,CW_ELEM_SESSION_ID,len);
}
int cw_out_radio_generic(struct conn *conn, struct cw_action_out *a, uint8_t * dst);
/**
* @}
*/

View File

@ -1,51 +1,12 @@
#include "cw.h"
#include "capwap_items.h"
#include "dbg.h"
#include "log.h"
/*
int cw_put_item(uint8_t * dst, struct mbag_item *item)
{
if (MBAG_STR == item->type ){
return cw_put_data(dst, item->data, strlen((char *) item->data));
}
if (MBAG_BYTE == item->type){
return cw_put_byte(dst, item->byte);
}
if (MBAG_WORD == item->type){
return cw_put_word(dst, item->word);
}
if (MBAG_DWORD == item->type){
return cw_put_dword(dst, item->dword);
}
if (MBAG_BSTR == item->type) {
return cw_put_bstr(dst, item->data);
}
if ( MBAG_BSTR16 == item->type)
return cw_put_bstr16(dst,item->data);
if (MBAG_VENDORSTR == item->type)
{
int l=0;
l+=cw_put_dword(dst, bstrv_get_vendor_id(item->data));
l+=cw_put_data(dst+4, bstrv_data(item->data),bstrv_len(item->data));
return l;
}
cw_log(LOG_ERR,"No method to put items of type %d",item->type);
return 0;
}
*/
int cw_out_generic(struct conn *conn, struct cw_action_out *a, uint8_t * dst) // ,struct mbag_item * item)
int cw_out_generic(struct conn *conn, struct cw_action_out *a, uint8_t * dst)
{