ieee80211: Make DMG Capabilities dissection handle earlier formats
authorRichard Sharpe <realrichardsharpe@gmail.com>
Thu, 24 May 2018 16:33:43 +0000 (09:33 -0700)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Thu, 24 May 2018 17:58:10 +0000 (17:58 +0000)
commitc4c5ad26865ab45bbac647b165aef6f4728b3639
treefaa7bf9ca54f22fc7be96133d606a12998287b5a
parentca434b16d51615c41df1ad47951578b4d4da8539
ieee80211: Make DMG Capabilities dissection handle earlier formats

The recent changes to support the current 22-byte DMC Capabilities IE
defined in IEEE802.11-2012 prevents Wireshark from handling frames
in the earlier format.

This change allows Wireshark to dissect both the earlier and current
formats but gives an error if the IE does not have a length of 22.

The error could perhaps be demoted to a warning.

Also made a minor correction to the header fields to conform with
other uses.

Bug: 14727
Change-Id: I3dc333b273f915fa5f5f4cc5c13c1b84863b6713
Reviewed-on: https://code.wireshark.org/review/27782
Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
epan/dissectors/packet-ieee80211.c