diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-04-08 12:51:17 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-04-08 19:57:29 +0000 |
commit | bf3bd0a0af6c1b5e1db8b934f387a5261ee418c4 (patch) | |
tree | 361eaee1f34a09a4c6544f7eb95682b8d6060e70 /epan/dissectors | |
parent | d44241488460f06342bb8ea97415b21dd147b7d1 (diff) |
Max and min transmit power, in the Power Capabilities IE, are signed.
To quote IEEE Std 802.11-2016, section 9.4.2.15 "Power Capability
element":
The Minimum Transmit Power Capability field is set to the nominal
minimum transmit power with which the STA is capable of transmitting in
the current channel, with a tolerance B1 5 dB. The field is coded as a
signed integer in units of decibels relative to 1 mW. Further
interpretation of this field is defined in 11.8.4.
The Maximum Transmit Power Capability field is set to the nominal
maximum transmit power with which the STA is capable of transmitting in
the current channel, with a tolerance B1 5 dB. The field is coded as a
signed integer in units of decibels relative to 1 mW. Further
interpretation of this field is defined in 11.8.4.
Bug: 14593
Change-Id: Ibc4e4a11d71ac1894d03d33f5762a7b0d1d70085
Reviewed-on: https://code.wireshark.org/review/26804
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-ieee80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index 4d78b33822..a3b8ee54db 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -28093,12 +28093,12 @@ proto_register_ieee80211(void) {&hf_ieee80211_tag_power_capability_min, {"Minimum Transmit Power", "wlan.powercap.min", - FT_UINT8, BASE_DEC_HEX, NULL, 0, + FT_INT8, BASE_DEC_HEX, NULL, 0, "The nominal minimum transmit power with which the STA is capable of transmitting in the current channel", HFILL }}, {&hf_ieee80211_tag_power_capability_max, {"Maximum Transmit Power", "wlan.powercap.max", - FT_UINT8, BASE_DEC_HEX, NULL, 0, + FT_INT8, BASE_DEC_HEX, NULL, 0, "The nominal maximum transmit power with which the STA is capable of transmitting in the current channel", HFILL }}, {&hf_ieee80211_tag_tpc_report_trsmt_pow, |