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:
parent
abad3ccb1e
commit
6e4f461270
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue