0db50b3be4
FossilOrigin-Name: efdcfcb0f44a532e2176b496533c4f3f0ee42b6bd8d62f66ac61d61be22437be
23 lines
480 B
C
23 lines
480 B
C
|
|
|
|
#include "capwap_cisco.h"
|
|
#include "cw_log.h"
|
|
|
|
int cw_readelem_cisco_wtp_radio_cfg(int elem_id,uint8_t *elem, int len,struct radioinfo *ri)
|
|
{
|
|
if (elem_id != CW_CISCO_WTP_RADIO_CFG)
|
|
return 0;
|
|
|
|
if (len!=24){
|
|
cw_dbg(DBG_ELEM,"LWAPP Radio Cfg element too short, %d < 21",len);
|
|
return -1;
|
|
}
|
|
|
|
ri->rid = lw_get_byte(elem);
|
|
ri->occupancy_limit = lw_get_word(elem+2);
|
|
bstr_replace(&ri->bssid,bstr_create(elem+7,6));
|
|
ri->beacon_period = lw_get_word(elem+13);
|
|
|
|
return 1;
|
|
}
|