more capwap80211 moving

This commit is contained in:
7u83 2022-08-25 21:10:48 +02:00
parent 49905b2aa0
commit 2098cabad1
2 changed files with 40 additions and 5 deletions

View File

@ -83,10 +83,17 @@ enum radioelems {
CW_ELEM80211_WTP_RADIO_CONFIGURATION=1046,
/** IEEE 802.11 WTP Radio Fail Alarm Indication */
CW_ELEM80211_WTP_RADIO_FAIL_ALARM_IDICATION=1047,
/** IEEE 802.11 Radio Information Message Element */
CAPWAP80211_ELEM_WTP_RADIO_INFORMATION = 1048
};
/** IEEE 802.11 Radio Information Message Element */
#define CAPWAP80211_ELEM_WTP_RADIO_INFORMATION 1048
/** IEEE 802.11 Antenna Message element */
#define CAPWAP80211_ELEM_ANTENNA 1025
/**
*@}
*/

View File

@ -15,14 +15,27 @@
uint8_t * data, int len);
*/
char x[] = {'a','b'};
static cw_ValStruct_t capwap80211_antenna_stru[]={
{CW_TYPE_BOOL,"diversity",1,-1},
{CW_TYPE_BYTE,"combiner",1,-1},
{CW_TYPE_BYTE,"antenna-count",1,-1},
{NULL,"xxx",1,-1,x},
// {NULL,"xxx",1,-1,"a",}
{NULL,NULL,0,0}
};
static struct cw_ElemHandler handlers[] = {
{
"IEEE 802.11 WTP Radio Information", /* name */
"IEEE 802.11 WTP Radio Information", /* name */
CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, /* Element ID */
0, 0, /* Vendor / Proto */
0, 0, /* min/max length */
CW_TYPE_DWORD, /* type */
"wtp-radio-information", /* Key */
"capwap80211/wtp-radio-information", /* Key */
cw_in_radio_generic, /* get */
cw_out_radio_generic /* put */
}
@ -33,11 +46,26 @@ static struct cw_ElemHandler handlers[] = {
0, 0, /* Vendor / Proto */
3, 0, /* min/max length */
CW_TYPE_BSTR16, /* type */
"rate_set", /* Key */
"capwap80211/rate-set", /* Key */
cw_in_radio_generic, /* get */
cw_out_radio_generic /* put */
}
,
{
"IEEE 802.11 Antenna", /* name */
CAPWAP80211_ELEM_ANTENNA, /* Element ID */
0, 0, /* Vendor / Proto */
3, 0, /* min/max length */
CW_TYPE_STRUCT, /* type */
"capwap80211/antenna", /* Key */
cw_in_radio_generic, /* get */
cw_out_radio_generic, /* put */
NULL,
NULL,
capwap80211_antenna_stru
}
,
{NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL}