diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-12-29 17:01:19 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-30 05:26:53 +0000 |
commit | 30f378a373665ee163d605858e171a28d01d4d9c (patch) | |
tree | ef016cc60bfbb9a983c5f71eb139d09bee3a13a1 /epan/dissectors/packet-ieee80211-radio.c | |
parent | cefe1881b2ecf71a7f26f21e0a7a9f1f660a4c7f (diff) |
802.11 (radio): fix no previous prototype for function 'ieee80211_vhtrate' [-Wmissing-prototypes]
Change-Id: I863668e98de1eaeff8e2360070881fffc972ad8a
Reviewed-on: https://code.wireshark.org/review/12916
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ieee80211-radio.c')
-rw-r--r-- | epan/dissectors/packet-ieee80211-radio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee80211-radio.c b/epan/dissectors/packet-ieee80211-radio.c index cdfa7403f4..ba199036c3 100644 --- a/epan/dissectors/packet-ieee80211-radio.c +++ b/epan/dissectors/packet-ieee80211-radio.c @@ -239,7 +239,7 @@ static const guint subcarriers[4] = { 52, 108, 234, 468 }; * Calculates data rate corresponding to a given 802.11ac MCS index, * bandwidth, and guard interval. */ -float ieee80211_vhtrate(int mcs_index, guint bandwidth_index, gboolean short_gi) +static float ieee80211_vhtrate(int mcs_index, guint bandwidth_index, gboolean short_gi) { return (float)(ieee80211_vhtinfo[mcs_index].data_bits_per_symbol * subcarriers[bandwidth_index] / (short_gi ? 3.6 : 4.0) / 52.0); } |