Hi Shuai,
On 12/5/19 11:56 PM, Shuai Wang wrote:
scan_periodic_start triggered by station requires scan_wdev_add to
be
called first from device.
---
src/station.c | 1 +
1 file changed, 1 insertion(+)
Thanks for the bug report & fix. Looks like commit 1057d8aa743a
("device: Move device creation from netdev.c to event watch")
introduced this regression.
diff --git a/src/station.c b/src/station.c
index c6029423..fd346194 100644
--- a/src/station.c
+++ b/src/station.c
@@ -3225,3 +3225,4 @@ static void station_exit(void)
IWD_MODULE(station, station_init, station_exit)
IWD_MODULE_DEPENDS(station, netconfig)
+IWD_MODULE_DEPENDS(station, device)
Module dependencies are only really needed if one module _init function
uses functionality (like event watch registrations, etc) from another
module at daemon startup time. For this case the fix is a bit different.
Could you try the attached patch instead?
Regards,
-Denis