On Fri, 18 Jun 2021 at 19:21, Denis Kenzior wrote: > On 6/18/21 11:16 AM, Andrew Zaborowski wrote: > > On Fri, 18 Jun 2021 at 17:05, Denis Kenzior wrote: > >> We should be calling periodic_scan_stop as soon as we > >> transition to CONNECTING/CONNECTING_AUTO state. > > > > That's another option but I think the logic until now was that if the > > connection failed we'd just return to periodic scanning without ever > > stopping and restarting it. During the netdev CMD_CONNECT it would be > > I don't think so. See commit c3e160880f32f and commit da485179a6e92 prior to > that. It looks like we have stopped periodic scan when entering CONNECTING > state for quite some time. True, I missed this. Please ignore this patch. Best regards