2015-04-26 12:35:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
#include "action.h"
|
|
|
|
#include "capwap_80211_actions.h"
|
|
|
|
#include "capwap_80211.h"
|
|
|
|
#include "capwap.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cw_action_in_t capwap_80211_actions_ac_in[] = {
|
|
|
|
|
|
|
|
/* --------------------------------------------------------
|
|
|
|
* Discovery Resquest
|
|
|
|
*/
|
|
|
|
|
|
|
|
{0, 0, CW_STATE_DISCOVERY, CW_MSG_DISCOVERY_REQUEST,
|
|
|
|
CW_ACTION_IN_80211_WTP_RADIO_INFORMATION, 1}
|
|
|
|
,
|
2015-04-26 16:08:44 +02:00
|
|
|
/* --------------------------------------------------------
|
|
|
|
* Discovery Resquest
|
|
|
|
*/
|
|
|
|
|
|
|
|
{0, 0, CW_STATE_JOIN, CW_MSG_JOIN_REQUEST,
|
|
|
|
CW_ACTION_IN_80211_WTP_RADIO_INFORMATION, 1}
|
|
|
|
,
|
|
|
|
|
2015-04-26 12:35:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
{0, 0, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
cw_action_out_t capwap_80211_actions_ac_out[]={
|
|
|
|
/* Radio Infos */
|
2015-05-01 00:16:54 +02:00
|
|
|
{CW_MSG_DISCOVERY_RESPONSE, NULL /*CW_ELEM80211_WTP_RADIO_INFORMATION*/, 0,
|
2015-04-26 12:35:48 +02:00
|
|
|
CW_ELEM80211_WTP_RADIO_INFORMATION, NULL,cw_out_radio_infos, NULL,1}
|
|
|
|
,
|
2015-04-26 16:08:44 +02:00
|
|
|
|
|
|
|
/* Radio Infos */
|
2015-05-01 00:16:54 +02:00
|
|
|
{CW_MSG_JOIN_RESPONSE, NULL /*CW_ELEM80211_WTP_RADIO_INFORMATION*/, 0,
|
2015-04-26 16:08:44 +02:00
|
|
|
CW_ELEM80211_WTP_RADIO_INFORMATION, NULL,cw_out_radio_infos, NULL,1}
|
|
|
|
,
|
|
|
|
|
2015-04-26 12:35:48 +02:00
|
|
|
{0,0,0}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int cw_register_actions_capwap_80211_ac(struct cw_actiondef *def)
|
|
|
|
{
|
|
|
|
|
|
|
|
int rc;
|
2015-04-29 12:16:06 +02:00
|
|
|
rc=cw_actionlist_in_register_actions(def->in, capwap_80211_actions_ac_in);
|
|
|
|
rc+=cw_actionlist_out_register_actions(def->out, capwap_80211_actions_ac_out);
|
|
|
|
|
|
|
|
rc+= cw_strheap_register_strings(def->strelem, capwap_strings_elem80211);
|
2015-04-26 12:35:48 +02:00
|
|
|
/*rc += cw_strheap_register_strings(def->strelem, capwap_strings_elem);
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2015-04-29 12:16:06 +02:00
|
|
|
return rc;
|
2015-04-26 12:35:48 +02:00
|
|
|
}
|
|
|
|
|