[PATCH v2 06/11] qmi: gprs-context: Remove parsing of unused TLVs
Denis Kenzior <[email protected]>
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <[email protected]> |
The information from these TLVs is currently unused and only printed to
debug output. Same can be accomplished using an external sniffer.
Remove this code until the information in these TLVs is needed for
something.
---
drivers/qmimodem/gprs-context.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/qmimodem/gprs-context.c b/drivers/qmimodem/gprs-context.c
index 5582a8052c0b..f29f10720710 100644
--- a/drivers/qmimodem/gprs-context.c
+++ b/drivers/qmimodem/gprs-context.c
@@ -173,29 +173,17 @@ static void get_settings_ipv4(struct ofono_gprs_context *gc,
static void get_settings_cb(struct qmi_result *result, void *user_data)
{
- static const uint8_t RESULT_PDP_TYPE = 0x11; /* uint8 */
- static const uint8_t RESULT_APN = 0x14; /* string */
static const uint8_t RESULT_IP_FAMILY = 0x2b; /* uint8 */
struct cb_data *cbd = user_data;
ofono_gprs_context_cb_t cb = cbd->cb;
struct ofono_gprs_context *gc = cbd->user;
- uint8_t pdp_type, ip_family;
- char *apn;
+ uint8_t ip_family;
DBG("");
if (qmi_result_set_error(result, NULL))
goto done;
- apn = qmi_result_get_string(result, RESULT_APN);
- if (apn) {
- DBG("APN: %s", apn);
- l_free(apn);
- }
-
- if (qmi_result_get_uint8(result, RESULT_PDP_TYPE, &pdp_type))
- DBG("PDP type %d", pdp_type);
-
if (!qmi_result_get_uint8(result, RESULT_IP_FAMILY, &ip_family)) {
ofono_error("No IP family in results");
goto done;
--
2.45.2