Made WTP Board Data not mandatory

Older APS dont send WTP Board Data

FossilOrigin-Name: 269b44f2a60be9eb8d6ed9cbcd3f4dba666a41ba9f611bcd5fe769ebd0eeddd0
This commit is contained in:
7u83@mail.ru 2018-02-19 02:29:48 +00:00
parent d41c2ba8d2
commit 9d18facdeb
1 changed files with 24 additions and 10 deletions

View File

@ -81,12 +81,25 @@ static cw_action_in_t actions_in[] = {
}
,
/* Element WTP Board Data - Discovery Request
* Change it to not mandatory, because older Cisco
* firmware does not send this message element.
*/
{
.capwap_state = CW_STATE_DISCOVERY,
.msg_id = CW_MSG_DISCOVERY_REQUEST,
.elem_id = CW_ELEM_WTP_BOARD_DATA,
.start = cw_in_wtp_board_data,
.item_id = CW_ITEM_WTP_BOARD_DATA,
.mand = 0,
}
,
/* --------------------------------------------------------
* Discovery Resquest
* Join Resquest
*/
/* WTP Descriptor - Join Request */
@ -311,6 +324,16 @@ static cw_action_out_t actions_out[]={
* Discovery Response
*/
/* AC Descriptor - Discovery Response */
{
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
.item_id = CW_ITEM_AC_DESCRIPTOR,
.elem_id = CW_ELEM_AC_DESCRIPTOR,
.out = cisco_out_ac_descriptor,
.mand = 1
}
,
/* Cisco AP Timesync - Discovery Request
* Important to get the WTP a DTLS connection established
@ -324,15 +347,6 @@ static cw_action_out_t actions_out[]={
.mand = 1
}
,
/* AC Descriptor - Discovery Response */
{
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
.item_id = CW_ITEM_AC_DESCRIPTOR,
.elem_id = CW_ELEM_AC_DESCRIPTOR,
.out = cisco_out_ac_descriptor,
.mand = 1
}
,
/* AC Descriptor - Join Response */