]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
atheros: Add support for OSEN
authorKyeyoon Park <kyeyoonp@qca.qualcomm.com>
Fri, 23 Aug 2013 07:40:33 +0000 (10:40 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Feb 2014 22:38:04 +0000 (00:38 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_atheros.c

index 23a4e2b95e4e2dd56e5182da6e9b10c99d574381..c146cdc54f7604e9e74d787d5d7ccd67e39b7e93 100644 (file)
@@ -1868,6 +1868,25 @@ static int atheros_set_ap(void *priv, struct wpa_driver_ap_params *params)
        wpa_hexdump_buf(MSG_DEBUG, "atheros: assocresp_ies",
                        params->assocresp_ies);
 
+#if defined(CONFIG_HS20) && defined(IEEE80211_PARAM_OSEN)
+       if (params->osen) {
+               struct wpa_bss_params bss_params;
+
+               os_memset(&bss_params, 0, sizeof(struct wpa_bss_params));
+               bss_params.enabled = 1;
+               bss_params.wpa = 2;
+               bss_params.wpa_pairwise = WPA_CIPHER_CCMP;
+               bss_params.wpa_group = WPA_CIPHER_CCMP;
+               bss_params.ieee802_1x = 1;
+
+               if (atheros_set_privacy(priv, 1) ||
+                   set80211param(priv, IEEE80211_PARAM_OSEN, 1))
+                       return -1;
+
+               return atheros_set_ieee8021x(priv, &bss_params);
+       }
+#endif /* CONFIG_HS20 && IEEE80211_PARAM_OSEN */
+
        return 0;
 }