summaryrefslogtreecommitdiff
path: root/wiretap/commview.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-07-05 19:05:52 -0700
committerGuy Harris <guy@alum.mit.edu>2015-07-06 02:07:08 +0000
commita7ac6cf0484611867aae51891ad72d49c0739e6f (patch)
tree8d6a5ef54249ee1a59a823e5aa982ac97bb9f703 /wiretap/commview.c
parent94eb30ab044858581a60c3ecc2a8555b6c426d31 (diff)
downloadwireshark-a7ac6cf0484611867aae51891ad72d49c0739e6f.tar.gz
Stub out the US public safety band.
OK, anybody know how to convert a frequency between 4.9 GHz and 5.0 GHz into a channel number, in a fashion that handles what's actually used in both the US and Japan? Change-Id: I95f4f9649e379b3d6651aadf8f62d8406b81b3b3 Reviewed-on: https://code.wireshark.org/review/9511 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/commview.c')
-rw-r--r--wiretap/commview.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wiretap/commview.c b/wiretap/commview.c
index c852709f29..3d773669a2 100644
--- a/wiretap/commview.c
+++ b/wiretap/commview.c
@@ -221,6 +221,15 @@ commview_read_packet(FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf,
frequency = ieee80211_chan_to_mhz(cv_hdr.channel, TRUE);
break;
+ case BAND_PUBLIC_SAFETY:
+ /*
+ * XXX - what do we do here? What are the channel
+ * numbers? How do we distinguish the several
+ * different flavors of 4.9 GHz frequencies?
+ */
+ frequency = 0;
+ break;
+
default:
frequency = 0;
break;