Fix driver_test for hostapd

Commit 0b55b934ee 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.
This commit is contained in:
Jouni Malinen 2009-09-11 16:45:34 +03:00 committed by Jouni Malinen
parent abad3ccb1e
commit 6e4f461270

View 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");