forked from osmocom/wireshark
Use correct variable.
To check whether data_rate_or_mcs_index is set, check saw_data_rate_or_mcs_index; we might see a value of 0 for that field (it's a valid MCS index), so we can't use it as an out-of-band value meaning "not set". Change-Id: I75d7fdb4a90836538c82f56f2afb05c0603278a5 Reviewed-on: https://code.wireshark.org/review/4991 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
d2ee010a39
commit
aac8daad57
|
@ -687,7 +687,7 @@ peektagged_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
|
|||
switch (wth->file_encap) {
|
||||
|
||||
case WTAP_ENCAP_IEEE_802_11_WITH_RADIO:
|
||||
if (data_rate_or_mcs_index) {
|
||||
if (saw_data_rate_or_mcs_index) {
|
||||
if (ext_flags & EXT_FLAG_MCS_INDEX_USED) {
|
||||
/* It's an MCS index. */
|
||||
ieee_802_11.presence_flags |= PHDR_802_11_HAS_MCS_INDEX;
|
||||
|
|
Loading…
Reference in New Issue