driver_test: Fix AP mode to initialize bss_ctx for first interface
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 16 Dec 2009 14:01:54 +0000 (16:01 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 16 Dec 2009 14:01:54 +0000 (16:01 +0200)
src/drivers/driver_test.c

index 4882641..773f7d1 100644 (file)
@@ -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 */