diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-06-02 05:58:26 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-06-02 05:58:26 +0200 |
commit | bcc6be4eec5629f6302d1550763a29617bfc2c1d (patch) | |
tree | 632081ef32bdcbd6164a458aad3dbcb247db09ab | |
parent | 1e96728c936c3c26f4e9586d9450f5264ed4fbaa (diff) | |
download | isi-wireshark-plugin-bcc6be4eec5629f6302d1550763a29617bfc2c1d.tar.bz2 |
NET_RSSI_IND: Show Percentage in info column
-rw-r--r-- | src/isi-network.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/isi-network.c b/src/isi-network.c index 3462d58..f06102c 100644 --- a/src/isi-network.c +++ b/src/isi-network.c @@ -698,10 +698,14 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i col_set_str(pinfo->cinfo, COL_INFO, "Network Select Mode Set Response"); break; case 0x1E: /* NET_RSSI_IND */ - col_set_str(pinfo->cinfo, COL_INFO, "Network RSSI Indication"); + { + guint8 bars = tvb_get_guint8(tvb, 1);; + col_add_fstr(pinfo->cinfo, COL_INFO, "Network RSSI Indication: %d%%", bars); + proto_tree_add_item(tree, hf_isi_network_rssi_bars, tvb, 1, 1, FALSE); proto_tree_add_item(tree, hf_isi_network_rssi_db, tvb, 2, 1, FALSE); break; + } case 0x20: /* NET_CIPHERING_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Ciphering Indication"); proto_tree_add_item(tree, hf_isi_network_ciphering_status, tvb, 1, 1, FALSE); |