[PATCH] wpa_supplicant: AP mode, set drv_flags

Janusz.Dziedzic at tieto.com Janusz.Dziedzic at tieto.com
Wed Sep 21 03:33:23 EDT 2011


In AP/P2P_GO mode we should have correct hostapd drv_flags.
 
---
 wpa_supplicant/ap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ebac3b6..882cac4 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -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) {
--
1.7.0.4


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wpa_supplicant-AP-mode-set-drv_flags.patch
Type: application/octet-stream
Size: 787 bytes
Desc: 0001-wpa_supplicant-AP-mode-set-drv_flags.patch
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20110921/cfd8597e/attachment.obj 


More information about the HostAP mailing list