aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarien Spencer <cusneud@mail.com>2018-08-18 16:09:53 +0300
committerAnders Broman <a.broman58@gmail.com>2018-08-19 06:45:34 +0000
commit4b4f644afc2eccfcaca09c95c7bf50fca0618dcb (patch)
tree2bd0042e0dbe2d0dcaf60435f19e87118fdfcb5a
parentf7d4b2ca350629a2e207e238376bfffd1214c25f (diff)
AT: Add CLAC command
Change-Id: I84dbc146fe4300e22dfed21572b97e57b449af54 Reviewed-on: https://code.wireshark.org/review/29186 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-at.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-at.c b/epan/dissectors/packet-at.c
index 4f4c627036..a3de336495 100644
--- a/epan/dissectors/packet-at.c
+++ b/epan/dissectors/packet-at.c
@@ -472,6 +472,12 @@ static gboolean check_cind(gint role, guint16 type) {
return FALSE;
}
+static gboolean check_clac(gint role, guint16 type) {
+ if (role == ROLE_DTE && (type == TYPE_ACTION_SIMPLY || type == TYPE_TEST)) return TRUE;
+
+ return FALSE;
+}
+
static gboolean check_clcc(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;
@@ -1247,6 +1253,7 @@ static const at_cmd_t at_cmds[] = {
{ "+CIMI", "Request International Mobile Subsciber Identity (IMSI)", check_cimi, dissect_cimi_parameter },
{ "^CIMI", "Request International Mobile Subsciber Identity (IMSI)", check_cimi, dissect_cimi_parameter },
{ "+CIND", "Phone Indicators", check_cind, dissect_cind_parameter },
+ { "+CLAC", "List All Available AT Commands", check_clac, dissect_clcc_parameter },
{ "+CLCC", "Current Calls", check_clcc, dissect_clcc_parameter },
{ "+CLIP", "Calling Line Identification Notification", check_clip, dissect_clip_parameter },
{ "+CME ERROR", "Mobile Termination Error Result Code", check_cme, dissect_cme_error_parameter },