From 779c168ffffbd1b25cbab1dc2d04a9d23264d5b4 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 26 Mar 2016 08:44:33 +0000 Subject: [PATCH] Removed. FossilOrigin-Name: ce277c1241bf7d93d11af1a6937ae93aeb36bed0ebdd79d1c75521c9892f1670 --- src/cw/cwsend_discovery_request.c | 86 ------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 src/cw/cwsend_discovery_request.c diff --git a/src/cw/cwsend_discovery_request.c b/src/cw/cwsend_discovery_request.c deleted file mode 100644 index 6113fde5..00000000 --- a/src/cw/cwsend_discovery_request.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - This file is part of libcapwap. - - libcapwap is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - libcapwap is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Foobar. If not, see . - -*/ - -/** - * @file - * @brief cwsend_discovery_request - */ - -#include "capwap.h" -#include "capwap_cisco.h" - - -#include "conn.h" -#include "cwmsg.h" - -int cwsend_discovery_request(struct conn *conn, struct radioinfo *radioinfo, - struct wtpinfo *wtpinfo) -{ - uint8_t buffer[CWMSG_MAX_SIZE]; - struct cwmsg cwmsg; - - cwmsg_init(&cwmsg, buffer, CW_MSG_DISCOVERY_REQUEST, conn_get_next_seqnum(conn), - radioinfo ); - cwmsg.capwap_mode = conn->capwap_mode; - - - /* Mandatory elements */ - - /* discovery type */ - cwmsg_addelem(&cwmsg, CW_ELEM_DISCOVERY_TYPE, &wtpinfo->discovery_type, sizeof(uint8_t)); - - /* wtp board data */ - cwmsg_addelem_wtp_board_data(&cwmsg, wtpinfo); - - /* wtp descriptor */ - cwmsg_addelem_wtp_descriptor(&cwmsg, wtpinfo); - - /* wtp frame tunnel mode */ - cwmsg_addelem(&cwmsg, CW_ELEM_WTP_FRAME_TUNNEL_MODE, &wtpinfo->frame_tunnel_mode, - sizeof(uint8_t)); - - /* mac type */ - cwmsg_addelem(&cwmsg, CW_ELEM_WTP_MAC_TYPE, &wtpinfo->mac_type, sizeof(uint8_t)); - - - /* radio infos */ -// cwmsg_addelem_wtp_radio_infos(&cwmsg, wtpinfo->radioinfo); - - - /* Non-mandatory elements */ - - switch (cwmsg.capwap_mode) { - case CWMODE_CISCO: - cwmsg_addelem_cisco_rad_name(&cwmsg, (uint8_t *) wtpinfo->name); - - uint8_t data207[4] = {1,1,0,1}; - cwmsg_addelem_vendor_specific_payload(&cwmsg,CW_VENDOR_ID_CISCO, - CW_CISCO_BOARD_DATA_OPTIONS,data207,4); - - - break; - - default: - - if (conn->mtu_discovery) - cwmsg_addelem_mtu_discovery_padding(&cwmsg, conn); - - } - - return conn_send_cwmsg(conn, &cwmsg); -}