aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index e1fb6e7..d969255 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1497,5 +1497,13 @@ int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname,
os_memset(&params, 0, sizeof(params));
params.ifname = ifname;
params.enabled = enabled;
+ if (enabled) {
+ params.wpa = hapd->conf->wpa;
+ params.ieee802_1x = hapd->conf->ieee802_1x;
+ params.wpa_group = hapd->conf->wpa_group;
+ params.wpa_pairwise = hapd->conf->wpa_pairwise;
+ params.wpa_key_mgmt = hapd->conf->wpa_key_mgmt;
+ params.rsn_preauth = hapd->conf->rsn_preauth;
+ }
return hostapd_set_ieee8021x(hapd, &params);
}