hostap/src/common
Lior David 2c129a1b71 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>
2019-02-21 12:42:24 +02:00
..
cli.c cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
cli.h cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
common_module_tests.c tests: More ieee802_11_vendor_ie_concat() coverage 2016-12-26 14:44:44 +02:00
ctrl_iface_common.c hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
ctrl_iface_common.h hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
defs.h Avoid forward references to enum types in ieee802_11_common.h 2019-01-07 17:26:40 +02:00
dhcp.h FILS: Fix fils_hlp.c build with older netinet/udp.h definitions 2017-02-26 12:18:29 +02:00
dpp.c DPP: Fix build with LibreSSL 2.8.3 2018-12-21 12:21:03 +02:00
dpp.h DPP: Set group id through DPP_AUTH_INIT or dpp_configurator_params 2018-08-30 23:34:00 +03:00
eapol_common.h PAE: Use be16/be32 instead of u16/u32 for spartse 2016-06-24 01:38:48 +03:00
gas.c DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas_server.c DPP: Fix error path handling for GAS Comeback Response building 2018-11-25 13:51:26 +02:00
gas_server.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
hw_features_common.c hostapd: Add supported channel bandwidth checking infrastructure 2019-01-06 11:54:34 +02:00
hw_features_common.h hostapd: Add supported channel bandwidth checking infrastructure 2019-01-06 11:54:34 +02:00
ieee802_1x_defs.h mka: Support GCM-AES-256 2018-08-21 19:28:20 +03:00
ieee802_11_common.c Add HE Capabilities into ieee802_11_parse_elems() 2019-02-15 02:09:41 +02:00
ieee802_11_common.h Add HE Capabilities into ieee802_11_parse_elems() 2019-02-15 02:09:41 +02:00
ieee802_11_defs.h MBO: Move the WNM-Notification subtype definitions to common location 2019-02-06 19:10:17 +02:00
linux_bridge.h vlan: Use new bridge ioctl() 2019-01-02 00:23:43 +02:00
linux_vlan.h Use own header file for defining Linux VLAN kernel interface 2016-03-26 11:24:38 +02:00
Makefile tests: Add p2p-fuzzer 2015-04-22 11:44:19 +03:00
ocv.c OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
ocv.h OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
privsep_commands.h Remove all PeerKey functionality 2017-10-16 02:03:47 +03:00
qca-vendor-attr.h Make qca-vendor.h independent of other header files 2014-04-25 11:41:36 +03:00
qca-vendor.h Add new QCA vendor attributes for coex configuration 2019-02-21 12:24:45 +02:00
sae.c SAE: Add support for using the optional Password Identifier 2018-05-19 17:30:29 +03:00
sae.h SAE: VLAN assignment based on SAE Password Identifier 2019-02-17 17:24:23 +02:00
tnc.h tests: TNC testing 2014-05-17 20:05:55 +03:00
version.h The master branch is now used for v2.8 development 2018-12-02 22:55:28 +02:00
wpa_common.c Fix cipher suite selector default value in RSNE for DMG 2019-02-21 12:42:24 +02:00
wpa_common.h Fix cipher suite selector default value in RSNE for DMG 2019-02-21 12:42:24 +02:00
wpa_ctrl.c Android: Harden wpa_ctrl_open2() against potential race conditions 2019-01-06 20:20:20 +02:00
wpa_ctrl.h WNM: Collocated Interference Reporting 2018-10-30 14:07:51 +02:00
wpa_helpers.c wpa_helpers: Ignore link-local IPv4 address while waiting for DHCP 2017-03-26 21:13:21 +03:00
wpa_helpers.h