diff options
author | Jouni Malinen <j@w1.fi> | 2012-09-30 18:47:40 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-01 09:23:15 +0200 |
commit | 33766368f6532313571534f9112b1796d6651bbe (patch) | |
tree | 016c716637d79a60c97f914fde8bb17b1f845282 /net/batman-adv | |
parent | mac80211: Various small fixes for cfg.c: mpath_set_pinfo() (diff) | |
download | linux-33766368f6532313571534f9112b1796d6651bbe.tar.xz linux-33766368f6532313571534f9112b1796d6651bbe.zip |
mac80211: Fix FC masking in BIP AAD generation
The bits used in the mask were off-by-one and ended up masking PwrMgt,
MoreData, Protected fields instead of Retry, PwrMgt, MoreData. Fix this
and to mask the correct fields. While doing so, convert the code to mask
the full FC using IEEE80211_FCTL_* defines similarly to how CCMP AAD is
built.
Since BIP is used only with broadcast/multicast management frames, the
Retry field is always 0 in these frames. The Protected field is also
zero to maintain backwards compatibility. As such, the incorrect mask
here does not really cause any problems for valid frames. In theory, an
invalid BIP frame with Retry or Protected field set to 1 could be
rejected because of BIP validation. However, no such frame should show
up with standard compliant implementations, so this does not cause
problems in normal BIP use.
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/batman-adv')
0 files changed, 0 insertions, 0 deletions