diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2013-07-23 18:25:21 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-02-25 23:24:24 (GMT) |
commit | a14896e8bb69a6b2593b482e920285c83f21519b (patch) | |
tree | ceb0bbd4fd467d399e119ed58abaf814ba113d24 /src/ap/wpa_auth_glue.c | |
parent | 6ca0853d1847cea018e892f5423998cdf8cde763 (diff) | |
download | hostap-a14896e8bb69a6b2593b482e920285c83f21519b.zip hostap-a14896e8bb69a6b2593b482e920285c83f21519b.tar.gz hostap-a14896e8bb69a6b2593b482e920285c83f21519b.tar.bz2 |
HS 2.0R2 AP: Add OSEN implementation
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r-- | src/ap/wpa_auth_glue.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 5af1495..da5fea7 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -73,6 +73,19 @@ static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf, #endif /* CONFIG_IEEE80211R */ #ifdef CONFIG_HS20 wconf->disable_gtk = conf->disable_dgaf; + if (conf->osen) { + wconf->disable_gtk = 1; + wconf->wpa = WPA_PROTO_OSEN; + wconf->wpa_key_mgmt = WPA_KEY_MGMT_OSEN; + wconf->wpa_pairwise = 0; + wconf->wpa_group = WPA_CIPHER_CCMP; + wconf->rsn_pairwise = WPA_CIPHER_CCMP; + wconf->rsn_preauth = 0; + wconf->disable_pmksa_caching = 1; +#ifdef CONFIG_IEEE80211W + wconf->ieee80211w = 1; +#endif /* CONFIG_IEEE80211W */ + } #endif /* CONFIG_HS20 */ #ifdef CONFIG_TESTING_OPTIONS wconf->corrupt_gtk_rekey_mic_probability = |