more capwap80211 moving

shell
7u83 6 months ago
parent 49905b2aa0
commit 2098cabad1
  1. 11
      src/cw/capwap80211.h
  2. 34
      src/mod/capwap80211/capwap80211_messages.c

@ -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
/**
*@}
*/

@ -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}

Loading…
Cancel
Save