mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
station: only log station_autoconnect_start if autoconnecting
This debug print was before any checks which could bail out prior to autoconnect starting. This was confusing because debug logs would contain multiple "station_autoconnect_start()" prints making you think autoconnect was started several times.
This commit is contained in:
parent
2c355db7fa
commit
91caecedec
@ -248,8 +248,6 @@ static int station_autoconnect_next(struct station *station)
|
|||||||
|
|
||||||
static void station_autoconnect_start(struct station *station)
|
static void station_autoconnect_start(struct station *station)
|
||||||
{
|
{
|
||||||
l_debug("");
|
|
||||||
|
|
||||||
if (!station->autoconnect_can_start)
|
if (!station->autoconnect_can_start)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -265,6 +263,8 @@ static void station_autoconnect_start(struct station *station)
|
|||||||
if (L_WARN_ON(station->autoconnect_list))
|
if (L_WARN_ON(station->autoconnect_list))
|
||||||
l_queue_destroy(station->autoconnect_list, NULL);
|
l_queue_destroy(station->autoconnect_list, NULL);
|
||||||
|
|
||||||
|
l_debug("");
|
||||||
|
|
||||||
station->autoconnect_list = l_queue_new();
|
station->autoconnect_list = l_queue_new();
|
||||||
station_network_foreach(station, network_add_foreach, station);
|
station_network_foreach(station, network_add_foreach, station);
|
||||||
station_autoconnect_next(station);
|
station_autoconnect_next(station);
|
||||||
|
Loading…
Reference in New Issue
Block a user