2013-05-01 14:52:55 +02:00
|
|
|
#include "wtp.h"
|
|
|
|
#include "capwap_dfa.h"
|
|
|
|
#include "capwap_element.h"
|
|
|
|
#include "wtp_dfa.h"
|
2014-02-08 18:03:38 +01:00
|
|
|
#include "wtp_radio.h"
|
2014-04-21 23:16:56 +02:00
|
|
|
#include "ieee80211.h"
|
|
|
|
|
2013-05-01 14:52:55 +02:00
|
|
|
/* */
|
2014-02-16 15:28:27 +01:00
|
|
|
static int send_echo_request(void) {
|
2013-05-01 14:52:55 +02:00
|
|
|
int result = -1;
|
2013-05-27 21:33:23 +02:00
|
|
|
struct capwap_header_data capwapheader;
|
|
|
|
struct capwap_packet_txmng* txmngpacket;
|
2013-05-01 14:52:55 +02:00
|
|
|
|
|
|
|
/* Build packet */
|
2013-05-27 21:33:23 +02:00
|
|
|
capwap_header_init(&capwapheader, CAPWAP_RADIOID_NONE, g_wtp.binding);
|
2014-12-27 19:10:08 +01:00
|
|
|
txmngpacket = capwap_packet_txmng_create_ctrl_message(&capwapheader, CAPWAP_ECHO_REQUEST, g_wtp.localseqnumber, g_wtp.mtu);
|
2013-05-27 21:33:23 +02:00
|
|
|
|
|
|
|
/* Add message element */
|
2013-08-21 23:00:54 +02:00
|
|
|
/* CAPWAP_ELEMENT_VENDORPAYLOAD */ /* TODO */
|
2013-05-01 14:52:55 +02:00
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
/* Echo request complete, get fragment packets */
|
|
|
|
wtp_free_reference_last_request();
|
|
|
|
capwap_packet_txmng_get_fragment_packets(txmngpacket, g_wtp.requestfragmentpacket, g_wtp.fragmentid);
|
|
|
|
if (g_wtp.requestfragmentpacket->count > 1) {
|
|
|
|
g_wtp.fragmentid++;
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
/* Free packets manager */
|
|
|
|
capwap_packet_txmng_free(txmngpacket);
|
2013-05-01 14:52:55 +02:00
|
|
|
|
|
|
|
/* Send echo request to AC */
|
2014-09-10 21:58:23 +02:00
|
|
|
if (capwap_crypt_sendto_fragmentpacket(&g_wtp.dtls, g_wtp.requestfragmentpacket)) {
|
2013-05-27 21:33:23 +02:00
|
|
|
result = 0;
|
|
|
|
} else {
|
|
|
|
/* Error to send packets */
|
|
|
|
capwap_logging_debug("Warning: error to send echo request packet");
|
|
|
|
wtp_free_reference_last_request();
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
2013-05-27 21:33:23 +02:00
|
|
|
|
2013-05-01 14:52:55 +02:00
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* */
|
2013-05-27 21:33:23 +02:00
|
|
|
static int receive_echo_response(struct capwap_parsed_packet* packet) {
|
2013-08-11 18:38:23 +02:00
|
|
|
struct capwap_resultcode_element* resultcode;
|
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
ASSERT(packet != NULL);
|
2013-08-11 18:38:23 +02:00
|
|
|
|
|
|
|
/* Check the success of the Request */
|
|
|
|
resultcode = (struct capwap_resultcode_element*)capwap_get_message_element_data(packet, CAPWAP_ELEMENT_RESULTCODE);
|
|
|
|
if (resultcode && !CAPWAP_RESULTCODE_OK(resultcode->code)) {
|
|
|
|
capwap_logging_warning("Receive Echo Response with error: %d", (int)resultcode->code);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2013-05-01 14:52:55 +02:00
|
|
|
/* Valid packet, free request packet */
|
|
|
|
wtp_free_reference_last_request();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* */
|
2013-05-27 21:33:23 +02:00
|
|
|
static void receive_reset_request(struct capwap_parsed_packet* packet) {
|
2013-05-01 14:52:55 +02:00
|
|
|
unsigned short binding;
|
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
ASSERT(packet != NULL);
|
2013-05-01 14:52:55 +02:00
|
|
|
|
|
|
|
/* */
|
2013-05-27 21:33:23 +02:00
|
|
|
binding = GET_WBID_HEADER(packet->rxmngpacket->header);
|
|
|
|
if ((binding == g_wtp.binding) && IS_SEQUENCE_SMALLER(g_wtp.remoteseqnumber, packet->rxmngpacket->ctrlmsg.seq)) {
|
|
|
|
struct capwap_header_data capwapheader;
|
|
|
|
struct capwap_packet_txmng* txmngpacket;
|
|
|
|
struct capwap_resultcode_element resultcode = { .code = CAPWAP_RESULTCODE_SUCCESS };
|
|
|
|
|
|
|
|
/* Build packet */
|
|
|
|
capwap_header_init(&capwapheader, CAPWAP_RADIOID_NONE, g_wtp.binding);
|
|
|
|
txmngpacket = capwap_packet_txmng_create_ctrl_message(&capwapheader, CAPWAP_RESET_RESPONSE, packet->rxmngpacket->ctrlmsg.seq, g_wtp.mtu);
|
|
|
|
|
|
|
|
/* Add message element */
|
|
|
|
capwap_packet_txmng_add_message_element(txmngpacket, CAPWAP_ELEMENT_RESULTCODE, &resultcode);
|
2013-08-21 23:00:54 +02:00
|
|
|
/* CAPWAP_ELEMENT_VENDORPAYLOAD */ /* TODO */
|
2013-05-27 21:33:23 +02:00
|
|
|
|
|
|
|
/* Reset response complete, get fragment packets */
|
|
|
|
wtp_free_reference_last_response();
|
|
|
|
capwap_packet_txmng_get_fragment_packets(txmngpacket, g_wtp.responsefragmentpacket, g_wtp.fragmentid);
|
|
|
|
if (g_wtp.responsefragmentpacket->count > 1) {
|
|
|
|
g_wtp.fragmentid++;
|
|
|
|
}
|
2013-05-01 14:52:55 +02:00
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
/* Free packets manager */
|
|
|
|
capwap_packet_txmng_free(txmngpacket);
|
2013-05-01 14:52:55 +02:00
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
/* Save remote sequence number */
|
2014-09-10 21:58:23 +02:00
|
|
|
g_wtp.remotetype = packet->rxmngpacket->ctrlmsg.type;
|
2013-05-27 21:33:23 +02:00
|
|
|
g_wtp.remoteseqnumber = packet->rxmngpacket->ctrlmsg.seq;
|
2013-05-01 14:52:55 +02:00
|
|
|
|
2013-05-27 21:33:23 +02:00
|
|
|
/* Send Reset response to AC */
|
2014-09-10 21:58:23 +02:00
|
|
|
if (!capwap_crypt_sendto_fragmentpacket(&g_wtp.dtls, g_wtp.responsefragmentpacket)) {
|
2013-05-27 21:33:23 +02:00
|
|
|
capwap_logging_debug("Warning: error to send reset response packet");
|
|
|
|
}
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-02 22:40:04 +02:00
|
|
|
/* */
|
|
|
|
static void receive_station_configuration_request(struct capwap_parsed_packet* packet) {
|
|
|
|
unsigned short binding;
|
|
|
|
|
|
|
|
ASSERT(packet != NULL);
|
|
|
|
|
|
|
|
/* */
|
|
|
|
binding = GET_WBID_HEADER(packet->rxmngpacket->header);
|
|
|
|
if ((binding == g_wtp.binding) && IS_SEQUENCE_SMALLER(g_wtp.remoteseqnumber, packet->rxmngpacket->ctrlmsg.seq)) {
|
|
|
|
struct capwap_header_data capwapheader;
|
|
|
|
struct capwap_packet_txmng* txmngpacket;
|
2014-04-14 22:33:12 +02:00
|
|
|
struct capwap_resultcode_element resultcode = { .code = CAPWAP_RESULTCODE_FAILURE };
|
2014-04-02 22:40:04 +02:00
|
|
|
|
2014-04-14 22:33:12 +02:00
|
|
|
/* Parsing request message */
|
|
|
|
if (capwap_get_message_element(packet, CAPWAP_ELEMENT_ADDSTATION)) {
|
|
|
|
resultcode.code = wtp_radio_add_station(packet);
|
|
|
|
} else if (capwap_get_message_element(packet, CAPWAP_ELEMENT_DELETESTATION)) {
|
|
|
|
resultcode.code = wtp_radio_delete_station(packet);
|
|
|
|
}
|
2014-04-02 22:40:04 +02:00
|
|
|
|
|
|
|
/* Build packet */
|
|
|
|
capwap_header_init(&capwapheader, CAPWAP_RADIOID_NONE, g_wtp.binding);
|
|
|
|
txmngpacket = capwap_packet_txmng_create_ctrl_message(&capwapheader, CAPWAP_STATION_CONFIGURATION_RESPONSE, packet->rxmngpacket->ctrlmsg.seq, g_wtp.mtu);
|
|
|
|
|
2014-04-14 22:33:12 +02:00
|
|
|
/* Add message element */
|
|
|
|
capwap_packet_txmng_add_message_element(txmngpacket, CAPWAP_ELEMENT_RESULTCODE, &resultcode);
|
|
|
|
/* CAPWAP_ELEMENT_VENDORPAYLOAD */ /* TODO */
|
2014-04-02 22:40:04 +02:00
|
|
|
|
|
|
|
/* Station Configuration response complete, get fragment packets */
|
|
|
|
wtp_free_reference_last_response();
|
|
|
|
capwap_packet_txmng_get_fragment_packets(txmngpacket, g_wtp.responsefragmentpacket, g_wtp.fragmentid);
|
|
|
|
if (g_wtp.responsefragmentpacket->count > 1) {
|
|
|
|
g_wtp.fragmentid++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Free packets manager */
|
|
|
|
capwap_packet_txmng_free(txmngpacket);
|
|
|
|
|
|
|
|
/* Save remote sequence number */
|
2014-09-10 21:58:23 +02:00
|
|
|
g_wtp.remotetype = packet->rxmngpacket->ctrlmsg.type;
|
2014-04-02 22:40:04 +02:00
|
|
|
g_wtp.remoteseqnumber = packet->rxmngpacket->ctrlmsg.seq;
|
|
|
|
|
|
|
|
/* Send Station Configuration response to AC */
|
2014-09-10 21:58:23 +02:00
|
|
|
if (!capwap_crypt_sendto_fragmentpacket(&g_wtp.dtls, g_wtp.responsefragmentpacket)) {
|
2014-04-02 22:40:04 +02:00
|
|
|
capwap_logging_debug("Warning: error to send Station Configuration response packet");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-04 22:25:16 +01:00
|
|
|
/* */
|
|
|
|
static void receive_ieee80211_wlan_configuration_request(struct capwap_parsed_packet* packet) {
|
|
|
|
unsigned short binding;
|
|
|
|
|
|
|
|
ASSERT(packet != NULL);
|
|
|
|
|
|
|
|
/* */
|
|
|
|
binding = GET_WBID_HEADER(packet->rxmngpacket->header);
|
|
|
|
if ((binding == g_wtp.binding) && IS_SEQUENCE_SMALLER(g_wtp.remoteseqnumber, packet->rxmngpacket->ctrlmsg.seq)) {
|
2016-03-08 10:21:51 +01:00
|
|
|
struct capwap_message_element_id action = {0, 0};
|
2013-12-04 22:25:16 +01:00
|
|
|
struct capwap_header_data capwapheader;
|
|
|
|
struct capwap_packet_txmng* txmngpacket;
|
2013-12-07 18:14:32 +01:00
|
|
|
struct capwap_80211_assignbssid_element bssid;
|
|
|
|
struct capwap_resultcode_element resultcode = { .code = CAPWAP_RESULTCODE_FAILURE };
|
|
|
|
|
|
|
|
/* Parsing request message */
|
|
|
|
if (capwap_get_message_element(packet, CAPWAP_ELEMENT_80211_ADD_WLAN)) {
|
|
|
|
action = CAPWAP_ELEMENT_80211_ADD_WLAN;
|
|
|
|
resultcode.code = wtp_radio_create_wlan(packet, &bssid);
|
|
|
|
} else if (capwap_get_message_element(packet, CAPWAP_ELEMENT_80211_UPDATE_WLAN)) {
|
|
|
|
action = CAPWAP_ELEMENT_80211_UPDATE_WLAN;
|
|
|
|
resultcode.code = wtp_radio_update_wlan(packet);
|
|
|
|
} else if (capwap_get_message_element(packet, CAPWAP_ELEMENT_80211_DELETE_WLAN)) {
|
|
|
|
action = CAPWAP_ELEMENT_80211_DELETE_WLAN;
|
|
|
|
resultcode.code = wtp_radio_delete_wlan(packet);
|
|
|
|
}
|
2013-12-04 22:25:16 +01:00
|
|
|
|
|
|
|
/* Build packet */
|
|
|
|
capwap_header_init(&capwapheader, CAPWAP_RADIOID_NONE, g_wtp.binding);
|
|
|
|
txmngpacket = capwap_packet_txmng_create_ctrl_message(&capwapheader, CAPWAP_IEEE80211_WLAN_CONFIGURATION_RESPONSE, packet->rxmngpacket->ctrlmsg.seq, g_wtp.mtu);
|
|
|
|
|
|
|
|
/* Add message element */
|
|
|
|
capwap_packet_txmng_add_message_element(txmngpacket, CAPWAP_ELEMENT_RESULTCODE, &resultcode);
|
2016-03-08 10:21:51 +01:00
|
|
|
if (resultcode.code == CAPWAP_RESULTCODE_SUCCESS &&
|
|
|
|
memcmp(&action, &CAPWAP_ELEMENT_80211_ADD_WLAN, sizeof(CAPWAP_ELEMENT_80211_ADD_WLAN)) == 0)
|
2013-12-07 18:14:32 +01:00
|
|
|
capwap_packet_txmng_add_message_element(txmngpacket, CAPWAP_ELEMENT_80211_ASSIGN_BSSID, &bssid);
|
|
|
|
|
2013-12-04 22:25:16 +01:00
|
|
|
/* CAPWAP_ELEMENT_VENDORPAYLOAD */ /* TODO */
|
|
|
|
|
|
|
|
/* IEEE802.11 WLAN Configuration response complete, get fragment packets */
|
|
|
|
wtp_free_reference_last_response();
|
|
|
|
capwap_packet_txmng_get_fragment_packets(txmngpacket, g_wtp.responsefragmentpacket, g_wtp.fragmentid);
|
|
|
|
if (g_wtp.responsefragmentpacket->count > 1) {
|
|
|
|
g_wtp.fragmentid++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Free packets manager */
|
|
|
|
capwap_packet_txmng_free(txmngpacket);
|
|
|
|
|
|
|
|
/* Save remote sequence number */
|
2014-09-10 21:58:23 +02:00
|
|
|
g_wtp.remotetype = packet->rxmngpacket->ctrlmsg.type;
|
2013-12-04 22:25:16 +01:00
|
|
|
g_wtp.remoteseqnumber = packet->rxmngpacket->ctrlmsg.seq;
|
|
|
|
|
|
|
|
/* Send IEEE802.11 WLAN Configuration response to AC */
|
2014-09-10 21:58:23 +02:00
|
|
|
if (!capwap_crypt_sendto_fragmentpacket(&g_wtp.dtls, g_wtp.responsefragmentpacket)) {
|
2013-12-04 22:25:16 +01:00
|
|
|
capwap_logging_debug("Warning: error to send IEEE802.11 WLAN Configuration response packet");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-16 15:28:27 +01:00
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
void wtp_dfa_state_run_echo_timeout(struct capwap_timeout* timeout, unsigned long index, void* context, void* param) {
|
|
|
|
capwap_logging_debug("Send Echo Request");
|
|
|
|
if (!send_echo_request()) {
|
|
|
|
g_wtp.retransmitcount = 0;
|
|
|
|
capwap_timeout_set(g_wtp.timeout, g_wtp.idtimercontrol, WTP_RETRANSMIT_INTERVAL, wtp_dfa_retransmition_timeout, NULL, NULL);
|
2014-02-16 15:28:27 +01:00
|
|
|
} else {
|
2014-09-10 21:58:23 +02:00
|
|
|
capwap_logging_error("Unable to send Echo Request");
|
2014-02-19 19:16:33 +01:00
|
|
|
wtp_teardown_connection();
|
2014-02-16 15:28:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
void wtp_dfa_state_run_keepalive_timeout(struct capwap_timeout* timeout, unsigned long index, void* context, void* param) {
|
|
|
|
capwap_logging_debug("Send Keep-Alive");
|
|
|
|
capwap_timeout_unset(g_wtp.timeout, g_wtp.idtimerkeepalive);
|
|
|
|
capwap_timeout_set(g_wtp.timeout, g_wtp.idtimerkeepalivedead, WTP_DATACHANNEL_KEEPALIVEDEAD, wtp_dfa_state_run_keepalivedead_timeout, NULL, NULL);
|
2014-06-09 22:30:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
if (wtp_kmod_send_keepalive()) {
|
|
|
|
capwap_logging_error("Unable to send Keep-Alive");
|
|
|
|
wtp_teardown_connection();
|
2014-06-09 22:30:04 +02:00
|
|
|
}
|
2014-09-10 21:58:23 +02:00
|
|
|
}
|
2014-06-09 22:30:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
/* */
|
|
|
|
void wtp_dfa_state_run_keepalivedead_timeout(struct capwap_timeout* timeout, unsigned long index, void* context, void* param) {
|
|
|
|
capwap_logging_info("Keep-Alive timeout, teardown");
|
|
|
|
wtp_teardown_connection();
|
|
|
|
}
|
2014-06-09 22:30:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
/* */
|
|
|
|
void wtp_recv_data_keepalive(void) {
|
|
|
|
capwap_logging_debug("Receive Keep-Alive");
|
2014-06-09 22:30:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
/* Receive Data Keep-Alive, wait for next packet */
|
|
|
|
capwap_timeout_unset(g_wtp.timeout, g_wtp.idtimerkeepalivedead);
|
|
|
|
capwap_timeout_set(g_wtp.timeout, g_wtp.idtimerkeepalive, WTP_DATACHANNEL_KEEPALIVE_INTERVAL, wtp_dfa_state_run_keepalive_timeout, NULL, NULL);
|
|
|
|
}
|
2014-06-09 22:30:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
/* */
|
|
|
|
void wtp_recv_data(uint8_t* buffer, int length) {
|
|
|
|
int headersize;
|
|
|
|
struct capwap_header* header = (struct capwap_header*)buffer;
|
2014-02-16 15:28:27 +01:00
|
|
|
|
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
if (length < sizeof(struct capwap_header)) {
|
|
|
|
return;
|
2014-04-14 22:33:12 +02:00
|
|
|
}
|
|
|
|
|
2014-06-09 22:30:04 +02:00
|
|
|
/* */
|
2014-09-10 21:58:23 +02:00
|
|
|
headersize = GET_HLEN_HEADER(header) * 4;
|
|
|
|
if ((length - headersize) > 0) {
|
|
|
|
wtp_radio_receive_data_packet(GET_RID_HEADER(header), GET_WBID_HEADER(header), (buffer + headersize), (length - headersize));
|
2014-03-02 19:31:27 +01:00
|
|
|
}
|
|
|
|
}
|
2013-08-13 17:53:04 +02:00
|
|
|
|
2014-03-02 19:31:27 +01:00
|
|
|
/* */
|
|
|
|
void wtp_dfa_state_run(struct capwap_parsed_packet* packet) {
|
|
|
|
ASSERT(packet != NULL);
|
2013-08-13 17:53:04 +02:00
|
|
|
|
2014-12-27 19:10:08 +01:00
|
|
|
if (capwap_is_request_type(packet->rxmngpacket->ctrlmsg.type) || (g_wtp.localseqnumber == packet->rxmngpacket->ctrlmsg.seq)) {
|
|
|
|
/* Update sequence */
|
|
|
|
if (!capwap_is_request_type(packet->rxmngpacket->ctrlmsg.type)) {
|
|
|
|
g_wtp.localseqnumber++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Parsing message */
|
2014-09-10 21:58:23 +02:00
|
|
|
switch (packet->rxmngpacket->ctrlmsg.type) {
|
|
|
|
case CAPWAP_CONFIGURATION_UPDATE_REQUEST: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2013-08-13 17:53:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_CHANGE_STATE_EVENT_RESPONSE: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2013-08-13 17:53:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_ECHO_RESPONSE: {
|
|
|
|
if (!receive_echo_response(packet)) {
|
|
|
|
capwap_logging_debug("Receive Echo Response");
|
|
|
|
capwap_timeout_unset(g_wtp.timeout, g_wtp.idtimercontrol);
|
|
|
|
capwap_timeout_set(g_wtp.timeout, g_wtp.idtimerecho, g_wtp.echointerval, wtp_dfa_state_run_echo_timeout, NULL, NULL);
|
2014-03-02 19:31:27 +01:00
|
|
|
}
|
2013-08-13 17:53:04 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
break;
|
|
|
|
}
|
2013-10-20 17:33:57 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_CLEAR_CONFIGURATION_REQUEST: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2014-03-02 19:31:27 +01:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_WTP_EVENT_RESPONSE: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2013-05-27 21:33:23 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_DATA_TRANSFER_REQUEST: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2014-03-02 19:31:27 +01:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_DATA_TRANSFER_RESPONSE: {
|
|
|
|
/* TODO */
|
|
|
|
break;
|
|
|
|
}
|
2013-05-27 21:33:23 +02:00
|
|
|
|
2014-09-10 21:58:23 +02:00
|
|
|
case CAPWAP_STATION_CONFIGURATION_REQUEST: {
|
|
|
|
receive_station_configuration_request(packet);
|
|
|
|
break;
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
2014-09-10 21:58:23 +02:00
|
|
|
|
|
|
|
case CAPWAP_RESET_REQUEST: {
|
|
|
|
receive_reset_request(packet);
|
|
|
|
wtp_dfa_change_state(CAPWAP_RESET_STATE);
|
|
|
|
wtp_dfa_state_reset();
|
|
|
|
break;
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
2014-09-10 21:58:23 +02:00
|
|
|
|
|
|
|
case CAPWAP_IEEE80211_WLAN_CONFIGURATION_REQUEST: {
|
|
|
|
receive_ieee80211_wlan_configuration_request(packet);
|
|
|
|
break;
|
2014-04-21 23:16:56 +02:00
|
|
|
}
|
2013-05-01 14:52:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|