aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-at.c
diff options
context:
space:
mode:
authorDarien Spencer <cusneud@mail.com>2018-09-12 16:45:18 +0300
committerAnders Broman <a.broman58@gmail.com>2018-09-12 21:57:45 +0000
commit9a40000182d24d5413623bee4d26cc95a8d8b0d5 (patch)
tree5a52a7e6a63bf14b0ca2d10a57aed95a5b5640f1 /epan/dissectors/packet-at.c
parent366c52315be61f758c99b347e6c5ddb745b8c2b4 (diff)
AT: Add CSUPI command
Change-Id: I501bd0e00a20b39e4c53bdd7e5e2b9b3c5234469 Reviewed-on: https://code.wireshark.org/review/29635 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-at.c')
-rw-r--r--epan/dissectors/packet-at.c8
1 files changed, 8 insertions, 0 deletions
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 },