#include <wireshark.h>
Go to the source code of this file.
|
#define | FREQ_IS_BG(freq) ((freq) <= 2484) |
|
#define | CHAN_IS_BG(chan) ((chan) <= 14) |
|
#define | FREQ_IS_6G(freq) (5950 <= (freq) && (freq) <= 7125) |
|
#define | RATE_IS_DSSS(rate) |
|
#define | RATE_IS_OFDM(rate) |
|
◆ RATE_IS_DSSS
#define RATE_IS_DSSS |
( |
|
rate | ) |
|
Value: ((rate) == 2 || \
(rate) == 4 || \
(rate) == 11 || \
(rate) == 22 || \
(rate) == 44 || \
(rate) == 66 )
◆ RATE_IS_OFDM
#define RATE_IS_OFDM |
( |
|
rate | ) |
|
Value: ((rate) == 12 || \
(rate) == 18 || \
(rate) == 24 || \
(rate) == 36 || \
(rate) == 48 || \
(rate) == 72 || \
(rate) == 96 || \
(rate) == 108 )
◆ ieee80211_chan_to_mhz()
WS_DLL_PUBLIC unsigned ieee80211_chan_to_mhz |
( |
int |
chan, |
|
|
bool |
is_bg |
|
) |
| |
Given an 802.11 channel number and a band type, return a center frequency.
- Parameters
-
chan | Channel number |
is_bg | true if the channel is a b/g channel, false otherwise. |
- Returns
- The equivalent frequency or 0 if no match is found.
◆ ieee80211_mhz_to_chan()
WS_DLL_PUBLIC int ieee80211_mhz_to_chan |
( |
unsigned |
freq | ) |
|
Given a center frequency in MHz, return a channel number.
- Parameters
-
- Returns
- The equivalent channel or -1 if no match is found.
◆ ieee80211_mhz_to_str()
WS_DLL_PUBLIC char * ieee80211_mhz_to_str |
( |
unsigned |
freq | ) |
|
Given an 802.11 channel center frequency in MHz, return a string representation.
- Parameters
-
- Returns
- A string showing the frequency, channel number, and type. The string must be freed with g_free() after use.