2015-04-10 17:14:55 +02:00
|
|
|
#ifndef __CAPWAP_80211
|
|
|
|
#define __CAPWAP_80211
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
#include "capwap.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "bstr.h"
|
|
|
|
#include "action.h"
|
2015-03-20 22:30:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define CW80211IANA_ENTERPRISE_NUMBER 13277
|
|
|
|
|
|
|
|
#define CWMSG_80211_WLAN_CONFIGURATION_REQUEST 3398913
|
|
|
|
#define CWMSG_80211_WLAN_CONFIGURATION_REPONSE 3398914
|
|
|
|
|
2015-04-19 16:44:20 +02:00
|
|
|
/** 802.11 Message Elements */
|
|
|
|
enum radioelems {
|
|
|
|
/** Add WLAN Message element */
|
|
|
|
CW_ELEM80211_ADD_WLAN =1024,
|
|
|
|
/** Antenna Message element */
|
|
|
|
CW_ELEM80211_ANTENNA =1025,
|
2015-03-19 21:51:28 +01:00
|
|
|
/*
|
2014-07-11 22:12:11 +02:00
|
|
|
IEEE 802.11 Assigned WTP BSSID 1026
|
|
|
|
IEEE 802.11 Delete WLAN 1027
|
|
|
|
IEEE 802.11 Direct Sequence Control 1028
|
|
|
|
IEEE 802.11 Information Element 1029
|
|
|
|
IEEE 802.11 MAC Operation 1030
|
|
|
|
IEEE 802.11 MIC Countermeasures 1031
|
|
|
|
IEEE 802.11 Multi-Domain Capability 1032
|
|
|
|
IEEE 802.11 OFDM Control 1033
|
2015-04-19 16:44:20 +02:00
|
|
|
*/
|
|
|
|
/** Supported WLAN Rates */
|
|
|
|
CW_ELEM80211_RATE_SET=1034,
|
|
|
|
/* IEEE 802.11 RSNA Error Report From Station 1035
|
2014-07-11 22:12:11 +02:00
|
|
|
IEEE 802.11 Station 1036
|
|
|
|
IEEE 802.11 Station QoS Profile 1037
|
|
|
|
IEEE 802.11 Station Session Key 1038
|
|
|
|
IEEE 802.11 Statistics 1039
|
|
|
|
IEEE 802.11 Supported Rates 1040
|
|
|
|
IEEE 802.11 Tx Power 1041
|
|
|
|
IEEE 802.11 Tx Power Level 1042
|
|
|
|
IEEE 802.11 Update Station QoS 1043
|
|
|
|
IEEE 802.11 Update WLAN 1044
|
|
|
|
IEEE 802.11 WTP Quality of Service 1045
|
|
|
|
IEEE 802.11 WTP Radio Configuration 1046
|
|
|
|
IEEE 802.11 WTP Radio Fail Alarm Indication 1047
|
|
|
|
*/
|
|
|
|
|
2015-04-19 16:44:20 +02:00
|
|
|
/** Radio Information Message Element */
|
|
|
|
CW_ELEM80211_WTP_RADIO_INFORMATION=1048
|
|
|
|
};
|
2015-03-19 21:51:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Messages
|
|
|
|
*/
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2014-07-27 16:12:49 +02:00
|
|
|
|
2015-03-19 21:51:28 +01:00
|
|
|
#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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
struct cw_wlan {
|
2015-03-19 21:51:28 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-08-14 23:17:50 +02:00
|
|
|
|
2015-04-19 16:44:20 +02:00
|
|
|
int cw_out_radio_infos(struct conn *conn, struct cw_action_out *a, uint8_t * dst);
|
2014-07-27 16:12:49 +02:00
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
|
|
|
|
extern int cw_register_actions_capwap_80211_wtp(struct cw_actiondef *def);
|
2015-10-18 09:49:14 +02:00
|
|
|
extern struct cw_strlist_elem capwap_strings_elem80211[];
|
2015-04-26 12:36:53 +02:00
|
|
|
extern int cw_register_actions_capwap_80211_ac(struct cw_actiondef *def);
|
|
|
|
|
2015-01-11 22:29:15 +01:00
|
|
|
|
2014-07-27 16:12:49 +02:00
|
|
|
|
2015-03-19 21:51:28 +01:00
|
|
|
|
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
#endif
|
2015-03-19 21:51:28 +01:00
|
|
|
|
|
|
|
|