~indicator-network-developers/wpasupplicant/trunk

Viewing all changes in revision 14163.

  • Committer: Jouni Malinen
  • Author(s): Lior David
  • Date: 2019-02-21 10:42:24 UTC
  • Revision ID: git-v1:2c129a1b71c6dcaff7e4db388f4fae303d265437
Fix cipher suite selector default value in RSNE for DMG

According to IEEE Std 802.11-2016, 9.4.2.25 when fields of an RSNE are
not included, the default values are used. The cipher suite defaults
were hardcoded to CCMP in the previous implementation, but the default
is actually different for DMG: GCMP (per 9.4.2.25.2).

It is not possible to find out from the RSNE if the network is non-DMG
or DMG, so callers of wpa_parse_wpa_ie_rsn() need to handle this case
based on context, which can be different for each caller.

In order to fix this issue, add flags to the wpa_ie_data indicating
whether pairwise/group ciphers were included in the RSNE. Callers can
check these flags and fill in the appropriate ciphers. The
wpa_parse_wpa_ie_rsn() function still initializes the ciphers to CCMP by
default so existing callers will not break. This change also fixes some
callers which need to handle the DMG network case.

Signed-off-by: Lior David <liord@codeaurora.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: