2016-03-08 18:19:27 +01:00
|
|
|
#ifndef __CAPWAP80211_H
|
|
|
|
#define __CAPWAP80211_H
|
|
|
|
|
2016-03-08 20:09:15 +01:00
|
|
|
#include "strlist.h"
|
|
|
|
|
2016-03-08 18:19:27 +01:00
|
|
|
/**
|
|
|
|
*@file
|
|
|
|
*@brief Definition for CAPWAP IEEE 802.11 bindings as
|
|
|
|
*specified in RFC 5416
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*@defgroup CAPWAP80211 802.11 Bindings
|
|
|
|
*@{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define CW80211IANA_ENTERPRISE_NUMBER 13277
|
|
|
|
|
2016-03-28 02:01:28 +02:00
|
|
|
/**
|
|
|
|
* @defgroup CAPWAP80211_MSG Messages
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2016-03-10 07:48:59 +01:00
|
|
|
#define CW_MSG80211_WLAN_CONFIGURATION_REQUEST 3398913
|
2016-03-28 02:01:28 +02:00
|
|
|
#define CW_MSG80211_WLAN_CONFIGURATION_RESPONSE 3398914
|
2016-03-08 18:19:27 +01:00
|
|
|
|
|
|
|
/**
|
2016-03-28 02:01:28 +02:00
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*@defgroup CAPWAP80211_ELEMS Message Elements
|
2016-03-08 18:19:27 +01:00
|
|
|
*@{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** CAPWAP 802.11 Message Elements */
|
|
|
|
enum radioelems {
|
|
|
|
/**IEER 802.11 Add WLAN Message element */
|
|
|
|
CW_ELEM80211_ADD_WLAN = 1024,
|
|
|
|
/** Antenna Message element */
|
|
|
|
CW_ELEM80211_ANTENNA = 1025,
|
|
|
|
/* IEEE 802.11 Assigned WTP BSSID */
|
|
|
|
CW_ELEM80211_ASSIGNED_WTP_BSSID = 1026,
|
|
|
|
/** IEEE 802.11 Delete WLAN */
|
|
|
|
CW_ELEM80211_DELETE_WLAN = 1027,
|
|
|
|
/** IEEE 802.11 Direct Sequence Control */
|
|
|
|
CW_ELEM80211_DIRECT_SEQUENCE_CONTROL = 1028,
|
|
|
|
/** IEEE 802.11 Information Element **/
|
|
|
|
CW_ELEM80211_INFORMATION_ELEMENT = 1029,
|
|
|
|
/** IEEE 802.11 MAC Operation */
|
|
|
|
CW_ELEM80211_MAC_OPERATION = 1030,
|
|
|
|
/** IEEE 802.11 MIC Countermeasures */
|
|
|
|
CW_ELEM80211_MIC_CPUNTERMEASURES = 1031,
|
|
|
|
/** IEEE 802.11 Multi-Domain Capability */
|
|
|
|
CW_ELEM80211_MULTI_DOMAIN_CAPABILITY = 1032,
|
|
|
|
/** IEEE 802.11 OFDM Control */
|
|
|
|
CW_ELEM80211_ODFM_CONTROL = 1033,
|
|
|
|
/** IEEE 802.11 Supported WLAN Rates */
|
|
|
|
CW_ELEM80211_RATE_SET = 1034,
|
2016-03-09 09:09:28 +01:00
|
|
|
/** IEEE 802.11 RSNA Error Report From Station */
|
|
|
|
CW_ELEM80211_RSNA_ERROR_REPORT_FROM_STATION=1035,
|
|
|
|
/** IEEE 802.11 Station */
|
|
|
|
CW_ELEM80211_STATION=1036,
|
2016-03-10 07:48:59 +01:00
|
|
|
/** IEEE 802.11 Station QoS Profile */
|
|
|
|
CW_ELEM80211_STATION_QOS_PROFILE=1037,
|
|
|
|
/** IEEE 802.11 Station Session Key */
|
|
|
|
CW_ELEM80211_STATIONN_SESSION_KEY=1038,
|
|
|
|
/** IEEE 802.11 Statistics */
|
|
|
|
CW_ELEM80211_STATISTICS=1039,
|
|
|
|
/** IEEE 802.11 Supported Rates */
|
2016-03-27 19:23:18 +02:00
|
|
|
CW_ELEM80211_SUPPORTED_RATES=1040,
|
2016-03-28 02:01:28 +02:00
|
|
|
/** IEEE 802.11 Tx Power */
|
|
|
|
CW_ELEM80211_TX_POWER=1041,
|
|
|
|
/** IEEE 802.11 Tx Power Level */
|
|
|
|
CW_ELEM80211_TX_POWER_LEVEL=1042,
|
|
|
|
/** IEEE 802.11 Update Station QoS */
|
|
|
|
CW_ELEM80211_UPDATE_STATION_QOS=1043,
|
|
|
|
/** IEEE 802.11 Update WLAN */
|
|
|
|
CW_ELEM80211_UPDATE_WLAN=1044,
|
|
|
|
/** IEEE 802.11 WTP Quality of Service */
|
|
|
|
CW_ELEM80211_WTP_QUALITY_OF_SERVICE=1045,
|
|
|
|
/** IEEE 802.11 WTP Radio Configuration */
|
|
|
|
CW_ELEM80211_WTP_RADIO_CONFIGURATION=1046,
|
|
|
|
/** IEEE 802.11 WTP Radio Fail Alarm Indication */
|
|
|
|
CW_ELEM80211_WTP_RADIO_FAIL_ALARM_IDICATION=1047,
|
2016-03-08 18:19:27 +01:00
|
|
|
/** IEEE 802.11 Radio Information Message Element */
|
|
|
|
CW_ELEM80211_WTP_RADIO_INFORMATION = 1048
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
*@}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CW_80211_RADIO_TYPE_B (1)
|
|
|
|
#define CW_80211_RADIO_TYPE_A (2)
|
|
|
|
#define CW_80211_RADIO_TYPE_G (4)
|
|
|
|
#define CW_80211_RADIO_TYPE_N (8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
struct cw_wlan {
|
|
|
|
uint8_t rid; // Radio ID
|
|
|
|
uint8_t wid; // WLAN ID
|
|
|
|
uint16_t capab;
|
|
|
|
uint8_t key_index;
|
|
|
|
uint8_t key_status;
|
|
|
|
uint16_t key_length;
|
|
|
|
uint8_t * key;
|
|
|
|
uint8_t group_tsc[6];
|
|
|
|
uint8_t qos;
|
|
|
|
uint8_t auth_type;
|
|
|
|
uint8_t mac_mode;
|
|
|
|
uint8_t tunnel_mode;
|
|
|
|
uint8_t suppress_ssid;
|
|
|
|
bstr_t ssid;
|
|
|
|
};
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2016-03-09 09:09:28 +01:00
|
|
|
#include "action.h"
|
|
|
|
|
|
|
|
int cw_out_radio_infos(struct conn *conn, struct cw_action_out *a, uint8_t * dst);
|
2016-03-08 18:19:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
//extern int cw_register_actions_capwap_80211_wtp(struct cw_actiondef *def);
|
2016-03-08 19:58:28 +01:00
|
|
|
extern struct cw_strlist_elem capwap_strings_elem80211[];
|
2016-03-08 18:19:27 +01:00
|
|
|
//extern int cw_register_actions_capwap_80211_ac(struct cw_actiondef *def);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*@}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|