Browse Source

driver_test: Fix AP mode to initialize bss_ctx for first interface

Jouni Malinen 15 years ago
parent
commit
67f0112d83
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/drivers/driver_test.c

+ 1 - 0
src/drivers/driver_test.c

@@ -1143,6 +1143,7 @@ static void * test_driver_init(struct hostapd_data *hapd,
 	}
 
 	drv->ctx = hapd;
+	drv->bss->bss_ctx = hapd;
 
 	/* Generate a MAC address to help testing with multiple APs */
 	params->own_addr[0] = 0x02; /* locally administered */