Capwpa 802.11 radio infos send and accept...

FossilOrigin-Name: 67290a384fba6794570a7f578dcef211456831d1e5255ea959ca57336a7b0129
This commit is contained in:
7u83@mail.ru
2016-03-09 08:09:28 +00:00
parent 51ea7bc45e
commit e5203b81a2
12 changed files with 71 additions and 15 deletions

View File

@ -1,11 +1,11 @@
include ../Config.mak
all:
$(MAKE) -C capwap
$(MAKE) -C capwap80211
$(MAKE) -C cipwap
$(MAKE) -C cisco
cc -c modload_ac.c -I../
cc -c modload_wtp.c -I../
$(CC) -c modload_ac.c -I../
$(CC) -c modload_wtp.c -I../
clean:
$(MAKE) -C capwap clean

View File

@ -1,7 +1,9 @@
OBJS=\
mod_capwap80211_ac.o \
capwap80211_actions_ac.o
mod_capwap80211_wtp.o \
capwap80211_actions_ac.o \
capwap80211_actions_wtp.o
NAME=libcapwap80211.a

View File

@ -20,7 +20,7 @@ static cw_action_in_t actions_ac_in[] = {
* Discovery Resquest
*/
/* Element Discovery Type */
/* 802.11 Radio Inmformation - Discovery Request */
{
.capwap_state = CW_STATE_DISCOVERY,
.msg_id = CW_MSG_DISCOVERY_REQUEST,
@ -34,6 +34,24 @@ static cw_action_in_t actions_ac_in[] = {
,
/* --------------------------------------------------------
* Join Resquest
*/
/* 802.11 Radio Inmformation - Join Request */
{
.capwap_state = CW_STATE_JOIN,
.msg_id = CW_MSG_JOIN_REQUEST,
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
.item_id = "radio_information",
.start = cw_in_radio_generic,
.mand = 1,
.min_len = 5,
.max_len = 5
}
,
// {0, 0, CW_STATE_DISCOVERY, CW_MSG_DISCOVERY_REQUEST,
// CW_ACTION_IN_80211_WTP_RADIO_INFORMATION, 1}

View File

@ -2,9 +2,10 @@
#define __MOD_CAPWAP80211_H
struct mod_ac *mod_capwap80211_ac();
struct mod_wtp *mod_capwap2011_wtp();
struct mod_wtp *mod_capwap80211_wtp();
extern int capwap80211_register_actions_ac(struct cw_actiondef *def);
extern int capwap80211_register_actions_wtp(struct cw_actiondef *def);
#endif

View File

@ -4,3 +4,14 @@
struct mod_ac * modload_ac(const char *name);
struct mod_wtp * modload_wtp(const char *name);
#include "cipwap/mod_cipwap.h"
#include "capwap/mod_capwap.h"
#include "cisco/mod_cisco.h"
#include "capwap80211/mod_capwap80211.h"
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, mod_capwap80211_ac, NULL }
#define MODS_WTP { mod_capwap_wtp,mod_capwap80211_wtp, NULL }

View File

@ -1,3 +1,6 @@
#include "modload.h"
/*
#include "../cw/mod.h"
@ -8,6 +11,8 @@
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, mod_capwap80211_ac, NULL }
*/
struct mod_ac *(*mods_ac[])() = MODS_AC;

View File

@ -1,3 +1,4 @@
/*
#include "../cw/mod.h"
@ -7,6 +8,9 @@
#define MODS_WTP { mod_capwap_wtp, NULL }
*/
#include "modload.h"
struct mod_wtp *(*mods_wtp[])() = MODS_WTP;