summaryrefslogtreecommitdiffstats
path: root/wsutil/802_11-utils.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /wsutil/802_11-utils.h
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-c4e8a3222648fcf22ca207f1815ebbf7cd144eeb.tar.xz
wireshark-c4e8a3222648fcf22ca207f1815ebbf7cd144eeb.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil/802_11-utils.h')
-rw-r--r--wsutil/802_11-utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/802_11-utils.h b/wsutil/802_11-utils.h
index 887faddb..5c496da2 100644
--- a/wsutil/802_11-utils.h
+++ b/wsutil/802_11-utils.h
@@ -51,10 +51,19 @@ WS_DLL_PUBLIC
char*
ieee80211_mhz_to_str(unsigned freq);
+/*
+ * Get Frequency given a Channel number and band.
+ */
+WS_DLL_PUBLIC
+unsigned
+ieee80211_chan_band_to_mhz(int chan, bool is_bg, bool is_6ghz);
+
/* Should this be "(freq < 4920)", or something else? */
#define FREQ_IS_BG(freq) ((freq) <= 2484)
#define CHAN_IS_BG(chan) ((chan) <= 14)
+#define FREQ_IS_6G(freq) (5950 <= (freq) && (freq) <= 7125)
+
/*
* Test whether a data rate is an {HR}/DSSS (legacy DSSS/11b) data rate
* and whether it's an OFDM (11a/11g OFDM mode) data rate.