Work on updating aps via sql
FossilOrigin-Name: 4b4d4dfa95b0aa4185bb4485f92d5ff3bbc7e4f99fffce654984b92ce55766d2
This commit is contained in:
@ -18,7 +18,8 @@ OBJS=\
|
||||
cisco_out_radio_administrative_states.o \
|
||||
cisco_items.o \
|
||||
cisco80211_in_mac_operation.o \
|
||||
cisco80211_in_wtp_radio_configuration.o
|
||||
cisco80211_in_wtp_radio_configuration.o \
|
||||
cisco80211_out_wtp_radio_configuration.o
|
||||
|
||||
|
||||
|
||||
|
@ -38,5 +38,6 @@ int cisco80211_in_mac_operation(struct conn *conn, struct cw_action_in *a, uint8
|
||||
|
||||
int cisco80211_in_wtp_radio_configuration(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
||||
int len, struct sockaddr *from);
|
||||
int cisco80211_out_wtp_radio_configuration(struct conn *conn, struct cw_action_out *a, uint8_t * dst);
|
||||
|
||||
#endif
|
||||
|
@ -388,11 +388,26 @@ static cw_action_in_t actions80211_in[] = {
|
||||
|
||||
}
|
||||
|
||||
,
|
||||
|
||||
{0,0}
|
||||
|
||||
|
||||
};
|
||||
|
||||
static cw_action_out_t actions80211_out[]={
|
||||
|
||||
{
|
||||
.msg_id = CW_MSG_CONFIGURATION_UPDATE_REQUEST,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_WTP_RADIO_CFG,
|
||||
.out = cisco80211_out_wtp_radio_configuration,
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
{0,0}
|
||||
};
|
||||
|
||||
|
||||
#include "cw/item.h"
|
||||
@ -439,12 +454,12 @@ int cisco_register_actions80211_ac(struct cw_actiondef *def)
|
||||
int rc;
|
||||
rc=0;
|
||||
rc = cw_actionlist_in_register_actions(def->in, actions80211_in);
|
||||
rc += cw_actionlist_out_register_actions(def->out, actions80211_out);
|
||||
rc += cw_itemdefheap_register(def->items, cisco_itemdefs);
|
||||
rc += cw_itemdefheap_register(def->radioitems, cisco_radioitemdefs);
|
||||
|
||||
/* rc += cw_actionlist_out_register_actions(def->out, actions_out);
|
||||
|
||||
rc += cw_strheap_register_strings(def->strmsg, capwap_strings_msg);
|
||||
/* rc += cw_strheap_register_strings(def->strmsg, capwap_strings_msg);
|
||||
rc += cw_strheap_register_strings(def->strelem, cipwap_strings_elem);
|
||||
|
||||
rc += cw_itemdefheap_register(def->radioitems, capwap_radioitemdefs);
|
||||
|
@ -134,6 +134,17 @@ static cw_action_in_t actions_in[] = {
|
||||
}
|
||||
,
|
||||
|
||||
/* Element Cisco 802.11 Radio Config - Config Status Resp */
|
||||
{
|
||||
.capwap_state = CW_STATE_RUN,
|
||||
.msg_id = CW_MSG_CONFIGURATION_UPDATE_REQUEST,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_WTP_RADIO_CFG,
|
||||
.start=cisco80211_in_wtp_radio_configuration,
|
||||
.item_id = "cisco_radio_cfg",
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
|
@ -19,8 +19,8 @@ const char CISCO_RADIOITEM80211_COUNTRY_STR2[]="cisco_country_str2";
|
||||
struct cw_itemdef cisco_radioitemdefs[] = {
|
||||
|
||||
{CISCO_RADIOITEM80211_CFG_TYPE,CW_ITEM_NONE,MBAG_BYTE},
|
||||
{CISCO_RADIOITEM80211_COUNTRY_STR1,CW_ITEM_NONE,MBAG_BSTR},
|
||||
{CISCO_RADIOITEM80211_COUNTRY_STR2,CW_ITEM_NONE,MBAG_BSTR},
|
||||
{CISCO_RADIOITEM80211_COUNTRY_STR1,CW_ITEM_NONE,MBAG_BSTR16},
|
||||
{CISCO_RADIOITEM80211_COUNTRY_STR2,CW_ITEM_NONE,MBAG_BSTR16},
|
||||
|
||||
{CW_ITEM_NONE}
|
||||
};
|
||||
|
Reference in New Issue
Block a user