aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/decode_as_dlg.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-28 03:06:30 +0000
committerEvan Huus <eapache@gmail.com>2013-03-28 03:06:30 +0000
commitaee73d6d9e101927150b1ca3a16d404b50196366 (patch)
tree3080e4ed90e09b79c8ca3bb0df23632f191fcc81 /ui/gtk/decode_as_dlg.c
parent37de47688f9ba7363c9cef63d6481918cf9ce2d8 (diff)
From Michal Labedzki via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8530
Enable "Decode As" for Bluetooth over USB. svn path=/trunk/; revision=48605
Diffstat (limited to 'ui/gtk/decode_as_dlg.c')
-rw-r--r--ui/gtk/decode_as_dlg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gtk/decode_as_dlg.c b/ui/gtk/decode_as_dlg.c
index 986f88ea7e..6750a9c60c 100644
--- a/ui/gtk/decode_as_dlg.c
+++ b/ui/gtk/decode_as_dlg.c
@@ -1927,6 +1927,7 @@ decode_as_ok(void)
cfile.edt->pi.ptype == PT_TCP || cfile.edt->pi.ptype == PT_UDP ||
cfile.edt->pi.mpls_label ||
cfile.cd_t == WTAP_FILE_BER ||
+ cfile.edt->pi.ptype == PT_BLUETOOTH ||
wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4 ||
wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR;
}
@@ -2019,7 +2020,8 @@ decode_add_notebook (GtkWidget *format_hb)
}
if (wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4 ||
- wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR) {
+ wtap_file_encap(cfile.wth) == WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR ||
+ cfile.edt->pi.ptype == PT_BLUETOOTH) {
gint page_l2cap_service = -1;
gint page_l2cap_cid = -1;
gint page_l2cap_psm = -1;