diff --git a/src/drivers/driver_test.c b/src/drivers/driver_test.c index 6a942961c..555edcf83 100644 --- a/src/drivers/driver_test.c +++ b/src/drivers/driver_test.c @@ -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");