wmc: STATUS is appears to be NETWORK_INFO
So rename it in various places.
This commit is contained in:
@@ -326,7 +326,7 @@ test_com_status (void *f, void *data)
|
||||
WmcResult *result;
|
||||
size_t reply_len;
|
||||
|
||||
len = wmc_cmd_status_new (buf, sizeof (buf));
|
||||
len = wmc_cmd_network_info_new (buf, sizeof (buf));
|
||||
g_assert (len == 2);
|
||||
|
||||
/* Send the command */
|
||||
@@ -337,25 +337,25 @@ test_com_status (void *f, void *data)
|
||||
reply_len = wait_reply (d, buf, sizeof (buf));
|
||||
|
||||
/* Parse the response into a result structure */
|
||||
result = wmc_cmd_status_result (buf, reply_len);
|
||||
result = wmc_cmd_network_info_result (buf, reply_len);
|
||||
g_assert (result);
|
||||
|
||||
g_print ("\n");
|
||||
|
||||
dbm = 0;
|
||||
wmc_result_get_u8 (result, WMC_CMD_STATUS_ITEM_CDMA_DBM, &dbm);
|
||||
wmc_result_get_u8 (result, WMC_CMD_NETWORK_INFO_ITEM_CDMA_DBM, &dbm);
|
||||
g_message ("%s: CDMA 1x dBm: %d", __func__, dbm);
|
||||
|
||||
dbm = 0;
|
||||
wmc_result_get_u8 (result, WMC_CMD_STATUS_ITEM_HDR_DBM, &dbm);
|
||||
wmc_result_get_u8 (result, WMC_CMD_NETWORK_INFO_ITEM_HDR_DBM, &dbm);
|
||||
g_message ("%s: HDR dBm: %d", __func__, dbm);
|
||||
|
||||
dbm = 0;
|
||||
wmc_result_get_u8 (result, WMC_CMD_STATUS_ITEM_LTE_DBM, &dbm);
|
||||
wmc_result_get_u8 (result, WMC_CMD_NETWORK_INFO_ITEM_LTE_DBM, &dbm);
|
||||
g_message ("%s: LTE dBm: %d", __func__, dbm);
|
||||
|
||||
str = NULL;
|
||||
wmc_result_get_string (result, WMC_CMD_STATUS_ITEM_OPNAME, &str);
|
||||
wmc_result_get_string (result, WMC_CMD_NETWORK_INFO_ITEM_OPNAME, &str);
|
||||
g_message ("%s: Operator Name: %s", __func__, str ? str : "(none)");
|
||||
|
||||
wmc_result_unref (result);
|
||||
|
Reference in New Issue
Block a user