wpa_supplicant: AP mode, set drv_flags
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Wed, 21 Sep 2011 07:28:38 +0000 (09:28 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 21 Sep 2011 22:05:01 +0000 (01:05 +0300)
In AP/P2P_GO mode we should have correct hostapd drv_flags.

wpa_supplicant/ap.c

index ebac3b6..882cac4 100644 (file)
@@ -448,6 +448,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
        if (hapd_iface == NULL)
                return -1;
        hapd_iface->owner = wpa_s;
+       hapd_iface->drv_flags = wpa_s->drv_flags;
 
        wpa_s->ap_iface->conf = conf = hostapd_config_defaults();
        if (conf == NULL) {