to handle radios starting with ID 0 FossilOrigin-Name: 41cc2ada858bf59094847e8c106ae23d4efe54660eddcecec3ef917f6e9695cbbsdmakefiles
parent
8cb55b6e7a
commit
d05617e84e
@ -0,0 +1,25 @@ |
||||
|
||||
|
||||
#include "cw/cw.h" |
||||
#include "cw/dbg.h" |
||||
|
||||
#include "mod_cisco.h" |
||||
|
||||
|
||||
int cisco_out_radio_generic(struct cw_ElemHandler * handler, struct cw_ElemHandlerParams * params |
||||
, uint8_t * dst) |
||||
{ |
||||
int len,i,l; |
||||
int radios; |
||||
len =0; |
||||
|
||||
radios = cw_ktv_get_byte(params->conn->local_cfg,"wtp-descriptor/max-radios",0); |
||||
|
||||
for(i=0;i<radios+0;i++){ |
||||
l = cw_write_radio_element(handler,params,i,dst+len); |
||||
cw_dbg_elem(DBG_ELEM_OUT,params->conn,params->msgdata->type,handler,dst,l); |
||||
len+=l; |
||||
} |
||||
return len; |
||||
} |
||||
|
Loading…
Reference in new issue