#include <wireshark.h>
Go to the source code of this file.
◆ CHAN_IS_BG
| #define CHAN_IS_BG |
( |
| chan | ) |
|
◆ FREQ_IS_6G
| #define FREQ_IS_6G |
( |
| freq | ) |
|
Value:(5950 <= (freq) && (freq) <= 7125)
◆ FREQ_IS_BG
| #define FREQ_IS_BG |
( |
| freq | ) |
|
◆ 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_band_to_mhz()
| WS_DLL_PUBLIC unsigned ieee80211_chan_band_to_mhz |
( |
int | chan, |
|
|
bool | is_bg, |
|
|
bool | is_6ghz ) |
Get Frequency given a Channel number and band.
- Parameters
-
| chan | Channel number |
| is_bg | true if the channel is a b/g channel, false otherwise. |
| is_6ghz | true if the channel is a 6 GHz channel, false otherwise. |
- Returns
- The equivalent frequency or 0 if no match is found.
◆ 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.