aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-11-09 16:07:16 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2018-11-09 16:07:16 (GMT)
commitdc673aec46754fad9c764e999aa051fdf6dc60dc (patch)
tree4aa224f98b3eef58cf9703d8d08aba976e34b3f6 /src/common
parentd55440214057f13df7106742abc7751b7ec3c574 (diff)
downloadhostap-dc673aec46754fad9c764e999aa051fdf6dc60dc.zip
hostap-dc673aec46754fad9c764e999aa051fdf6dc60dc.tar.gz
hostap-dc673aec46754fad9c764e999aa051fdf6dc60dc.tar.bz2
HS 2.0: Generate AssocReq OSEN IE based on AP advertisement
Parse the OSEN IE from the AP to determine values used in the AssocReq instead of using hardcoded cipher suites. This is needed to be able to set the group cipher based on AP advertisement now that two possible options exists for this (GTK_NOT_USED in separate OSEN BSS; CCMP or GTK_NOT_USED in shared BSS case). Furthermore, this is a step towards allowing other ciphers than CCMP to be used with OSEN. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/wpa_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c
index 14c5769..2d98904 100644
--- a/src/common/wpa_common.c
+++ b/src/common/wpa_common.c
@@ -1202,6 +1202,8 @@ int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
pos = rsn_ie + 6;
left = rsn_ie_len - 6;
+ data->group_cipher = WPA_CIPHER_GTK_NOT_USED;
+ data->key_mgmt = WPA_KEY_MGMT_OSEN;
data->proto = WPA_PROTO_OSEN;
} else {
const struct rsn_ie_hdr *hdr;