Do some mgic to send Cisco's AC radio info element

This commit is contained in:
2022-08-26 06:46:18 +02:00
parent 744e1b55c2
commit c3b921292b
10 changed files with 76 additions and 151 deletions

View File

@ -68,32 +68,33 @@ static struct cw_ElemHandler handlers[] = {
,
{NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL}
};
/*static int discovery_request_states[] = { CAPWAP_STATE_DISCOVERY, 0 };*/
static struct cw_ElemDef discovery_request_elements[] = {
{0, 0, CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, 1, 0},
{0, 0, 0, 0, 0}
};
static struct cw_ElemDef discovery_response_elements[] = {
{0, 0, CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, 1, 0},
{0, 0, 0, 0, 0}
};
/*static int join_request_states[] = { CAPWAP_STATE_JOIN, 0 };*/
static struct cw_ElemDef join_request_elements[] = {
{0, 0, CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, 1, 0},
{0, 0, 0, 0, 0}
};
/*static int join_response_states[] = { CAPWAP_STATE_JOIN, 0 };*/
static struct cw_ElemDef join_response_elements[] = {
{0, 0, CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, 1, 0},
{0, 0, CAPWAP80211_ELEM_WTP_RADIO_INFORMATION, 1, 0},
{0, 0, 0, 0, 0}
};
/*static int configuration_status_response_states[] = { CAPWAP_STATE_JOIN, 0 };*/
static struct cw_ElemDef configuration_status_response_elements[] = {
{0, 0, CAPWAP80211_ELEM_RATE_SET , 1, 0},
{0, 0, 0, 0, 0}
@ -108,6 +109,14 @@ static struct cw_MsgDef messages[] = {
discovery_request_elements
}
,
{
NULL,
CAPWAP_MSG_DISCOVERY_RESPONSE,
CW_ROLE_WTP,
NULL, /* states */
discovery_response_elements
}
,
{
NULL, /* name */
CAPWAP_MSG_JOIN_REQUEST, /* type */