]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix driver_test for hostapd
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 11 Sep 2009 13:45:34 +0000 (16:45 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 11 Sep 2009 13:45:34 +0000 (16:45 +0300)
Commit 0b55b934ee6243f2682524b0a733cc1468e20050 broke this by not
initializing drv->ap = 1 in hostapd case since the mode updating
code ended up unlinking the socket file. Setting drv->ap = 1
removes the mode change and as such, unlinking of the socket file.

src/drivers/driver_test.c

index 6a942961c896ff41e8a4b4d1d0a15919500768d8..555edcf8339c00e5f3cea8975ef81aabd4a069fc 100644 (file)
@@ -1205,6 +1205,7 @@ static void * test_driver_init(struct hostapd_data *hapd,
                printf("Could not allocate memory for test driver data\n");
                return NULL;
        }
+       drv->ap = 1;
        drv->bss = os_zalloc(sizeof(*drv->bss));
        if (drv->bss == NULL) {
                printf("Could not allocate memory for test driver BSS data\n");