public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v3 2/4] station: use network_update_known_frequencies
Date: Fri, 26 Jan 2024 12:22:41 -0800	[thread overview]
Message-ID: <20240126202243.91947-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20240126202243.91947-1-prestwoj@gmail.com>

Updates each network with its new, most current, set of BSS's
for the different types of scans: dbus/autoconnect, hidden, and
OWE.
---
 src/station.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/station.c b/src/station.c
index a6442d3e..b186c505 100644
--- a/src/station.c
+++ b/src/station.c
@@ -350,6 +350,8 @@ static bool process_network(const void *key, void *data, void *user_data)
 		l_queue_insert(station->networks_sorted, network,
 				network_rank_compare, NULL);
 
+		network_update_known_frequencies(network);
+
 		return false;
 	}
 
@@ -799,6 +801,8 @@ free:
 		scan_bss_free(bss);
 	}
 
+	network_update_known_frequencies(network);
+
 	l_queue_destroy(bss_list, NULL);
 
 done:
@@ -3684,6 +3688,8 @@ next:
 		return true;
 	}
 
+	network_update_known_frequencies(network_psk ?: network_open);
+
 	error = network_connect_new_hidden_network(network_psk ?: network_open,
 							msg);
 
-- 
2.34.1


  reply	other threads:[~2024-01-26 20:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 20:22 [PATCH v3 1/4] network: add network_update_known_frequencies James Prestwood
2024-01-26 20:22 ` James Prestwood [this message]
2024-01-26 20:22 ` [PATCH v3 3/4] station: knownnetworks: limit quick scans to 5 freqs per network James Prestwood
2024-01-26 20:22 ` [PATCH v3 4/4] auto-t: add test for known frequency sorting/maximum James Prestwood
2024-01-30  2:54 ` [PATCH v3 1/4] network: add network_update_known_frequencies Denis Kenzior
2024-01-30 12:30   ` James Prestwood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240126202243.91947-2-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox