From 9a40000182d24d5413623bee4d26cc95a8d8b0d5 Mon Sep 17 00:00:00 2001 From: Darien Spencer Date: Wed, 12 Sep 2018 16:45:18 +0300 Subject: AT: Add CSUPI command Change-Id: I501bd0e00a20b39e4c53bdd7e5e2b9b3c5234469 Reviewed-on: https://code.wireshark.org/review/29635 Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-at.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/epan/dissectors/packet-at.c b/epan/dissectors/packet-at.c index 8699d60077..63aa8245e6 100644 --- a/epan/dissectors/packet-at.c +++ b/epan/dissectors/packet-at.c @@ -682,6 +682,13 @@ static gboolean check_csq(gint role, guint16 type) { return FALSE; } + +static gboolean check_csupi(gint role, guint16 type) { + if (role == ROLE_DTE && (type == TYPE_ACTION_SIMPLY || type == TYPE_TEST)) return TRUE; + + return FALSE; +} + static gboolean check_gmi(gint role, guint16 type) { if (role == ROLE_DTE && (type == TYPE_ACTION_SIMPLY || type == TYPE_TEST)) return TRUE; if (role == ROLE_DCE && type == TYPE_RESPONSE) return TRUE; @@ -1657,6 +1664,7 @@ static const at_cmd_t at_cmds[] = { { "+CSCS", "Select TE Character Set", check_cscs, dissect_cscs_parameter }, { "+CSIM", "Generic SIM access", check_csim, dissect_csim_parameter }, { "+CSQ", "Signal Quality", check_csq, dissect_csq_parameter }, + { "+CSUPI", "Request 5G subscription permanent identifier", check_csupi, dissect_no_parameter }, { "+GMI", "Request manufacturer identification", check_gmi, dissect_gmi_parameter }, { "+GMM", "Request model identification", check_gmm, dissect_gmm_parameter }, { "+GMR", "Request revision identification", check_gmr, dissect_gmr_parameter }, -- cgit v1.2.3