Browse Source

Fix driver_test for hostapd

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.
Jouni Malinen 15 years ago
parent
commit
6e4f461270
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/drivers/driver_test.c

+ 1 - 0
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");