Correct naming of elements, Fixe: missing break in switch case
FossilOrigin-Name: 1cf82fffeef351ef1b8eb764db94203d21f3c1aa7957090969ece1692c499b61
This commit is contained in:
parent
1df562385c
commit
a033cad0fb
@ -66,7 +66,7 @@ static void readsubelems_wtp_board_data(mavl_t cfg, uint8_t * msgelem,
|
||||
CW_ITEM_WTP_BOARD_MODELNO,
|
||||
msgelem + i, sublen);
|
||||
*/
|
||||
key = "model_no";
|
||||
key = "model-no";
|
||||
break;
|
||||
case CW_BOARDDATA_SERIALNO:
|
||||
/* mbag_set_bstrn(itemstore,
|
||||
@ -74,20 +74,20 @@ static void readsubelems_wtp_board_data(mavl_t cfg, uint8_t * msgelem,
|
||||
msgelem + i, sublen);
|
||||
|
||||
*/
|
||||
key = "serial_no";
|
||||
key = "serial-no";
|
||||
break;
|
||||
case CW_BOARDDATA_MACADDRESS:
|
||||
/* mbag_set_bstrn(itemstore,
|
||||
CW_ITEM_WTP_BOARD_MACADDRESS,
|
||||
msgelem + i, sublen);
|
||||
*/
|
||||
key = "mac_address";
|
||||
key = "mac-address";
|
||||
break;
|
||||
case CW_BOARDDATA_BOARDID:
|
||||
/* mbag_set_bstrn(itemstore, CW_ITEM_WTP_BOARD_ID,
|
||||
msgelem + i, sublen);
|
||||
*/
|
||||
key = "board_id";
|
||||
key = "board-id";
|
||||
break;
|
||||
case CW_BOARDDATA_REVISION:
|
||||
/* mbag_set_bstrn(itemstore,
|
||||
@ -95,6 +95,7 @@ static void readsubelems_wtp_board_data(mavl_t cfg, uint8_t * msgelem,
|
||||
msgelem + i, sublen);
|
||||
*/
|
||||
key = "revision";
|
||||
break;
|
||||
default:
|
||||
key = NULL;
|
||||
break;
|
||||
|
@ -61,10 +61,10 @@ int capwap_out_wtp_board_data(struct cw_ElemHandler * eh,
|
||||
d += val->type->put(val,d);
|
||||
/*cw_ktv_add(cfg,vendor_key,CW_TYPE_DWORD,data,len);*/
|
||||
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,CW_SKEY_MODELNO,CW_BOARDDATA_MODELNO);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,CW_SKEY_SERIALNO,CW_BOARDDATA_SERIALNO);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"model-no",CW_BOARDDATA_MODELNO);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"serial-no",CW_BOARDDATA_SERIALNO);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"board-id",CW_BOARDDATA_BOARDID);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"board-revision",CW_BOARDDATA_REVISION);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"revision",CW_BOARDDATA_REVISION);
|
||||
d+=write_boarddata_subelem(d,cfg,eh->key,"mac-address",CW_BOARDDATA_MACADDRESS);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user