diff --git a/actube.workspace b/actube.workspace
index e0162c79..c63c2d68 100644
--- a/actube.workspace
+++ b/actube.workspace
@@ -4,8 +4,8 @@
-
-
+
+
diff --git a/src/mod/cisco/cisco_actions_ac.c b/src/mod/cisco/cisco_actions_ac.c
index 0e997441..06300f94 100644
--- a/src/mod/cisco/cisco_actions_ac.c
+++ b/src/mod/cisco/cisco_actions_ac.c
@@ -380,59 +380,13 @@ static cw_KTVStruct_t cisco_ap_venue_settings[]={
{NULL,NULL,0,0}
};
-/*
-int cisco_in_with_index(struct cw_ElemHandler *eh,
- struct cw_ElemHandlerParams *params,
- uint8_t * data, int len)
-{
- char key[CW_KTV_MAX_KEY_LEN];
- int idx;
-
- idx = cw_get_byte(data);
- sprintf(key,"%s.%d",eh->key,idx);
- cw_ktv_add(params->conn->remote_cfg,key,eh->type,data+1,len-1);
- return 1;
-}
+static cw_KTVStruct_t cisco_ap_mode_and_type[]={
+ {CW_TYPE_BYTE,"mode",1,-1},
+ {CW_TYPE_BYTE,"type",1,-1},
+ {NULL,NULL,0,0}
+};
-int cisco_out_with_index(struct cw_ElemHandler * eh,
- struct cw_ElemHandlerParams * params, uint8_t * dst)
-
-{
- char key[CW_KTV_MAX_KEY_LEN];
- int idx;
- cw_KTV_t * result, search;
- int len,start;
- uint8_t * ob;
-
-
- idx = 0;
- ob = dst;
-
- do {
- sprintf(key,"%s.%d",eh->key,idx);
- search.key=key;
- result = mavl_get_first(params->conn->local_cfg,&search);
- if (result==NULL)
- break;
- if (strncmp(result->key,key,strlen(key))!=0)
- break;
-
- start = params->conn->header_len(eh);
- len = cw_put_byte(ob+start,idx);
-
- len += result->type->put(result,ob+start+len);
-
- ob += params->conn->write_header(eh,ob,len);
-
- idx++;
-
- }while(1);
-
- return ob-dst;
-}
-
-*/
@@ -738,10 +692,10 @@ static struct cw_ElemHandler handlers[] = {
CISCO_ELEM_AP_MODE_AND_TYPE, /* Element ID */
CW_VENDOR_ID_CISCO,0, /* Vendor / Proto */
2,2, /* min/max length */
- CW_TYPE_WORD, /* type */
+ cisco_ap_mode_and_type, /* type */
"cisco/ap-mode-and-type", /* Key */
- cw_in_generic, /* get */
- cw_out_generic /* put */
+ cw_in_generic_struct, /* get */
+ cw_out_generic_struct /* put */
},
{
diff --git a/src/wtp/cisco.ktv b/src/wtp/cisco.ktv
index 4ee031cb..8c7af559 100644
--- a/src/wtp/cisco.ktv
+++ b/src/wtp/cisco.ktv
@@ -96,7 +96,7 @@ cisco/wtp-board-data/failover-priority :Bstr16: .x01010003
cisco/wtp-board-data/options/ant-type :Byte: 1
cisco/wtp-board-data/options/ap-type :Byte: 0
cisco/wtp-board-data/options/failover-priority :Byte: 2
-cisco/wtp-board-data/options/flex-connect :Byte: 0
+cisco/wtp-board-data/options/flex-connect :Byte: 1
cisco/wtp-board-data/wtp-model-hi :Dword: 0
cisco/wtp-board-data/wtp-model-lo :Dword: 0
cisco/wtp-board-data/wtp-serial-number :Str: FCZ1406W232
@@ -216,3 +216,8 @@ wtp-reboot-statistics/other-failure-count :Word: 13
wtp-reboot-statistics/reboot-count :Word: 0
wtp-reboot-statistics/sw-failure-count :Word: 0
wtp-reboot-statistics/unknown-failure-count :Word: 0
+
+cisco/ap-mode-and-type/mode :Byte: 0
+cisco/ap-mode-and-type/type :Byte: 15
+
+cisco/ap-model/model :Str: AIR-LAP1142N-E-K9