From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v2 3/4] auto-t: make waiting for channel switch configurable
Date: Mon, 18 Aug 2025 07:30:40 -0700 [thread overview]
Message-ID: <20250818143041.283887-3-prestwoj@gmail.com> (raw)
In-Reply-To: <20250818143041.283887-1-prestwoj@gmail.com>
---
autotests/util/hostapd.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py
index 611d8a63..5db5ef21 100644
--- a/autotests/util/hostapd.py
+++ b/autotests/util/hostapd.py
@@ -288,13 +288,15 @@ class HostapdCLI(object):
cmd = 'RESEND_M3 %s' % address
self.ctrl_sock.sendall(cmd.encode('utf-8'))
- def chan_switch(self, channel):
+ def chan_switch(self, channel, wait=True):
if channel > len(chan_freq_map):
raise Exception("Only 2.4GHz channels supported for chan_switch")
cmd = self.cmdline + ['chan_switch', '50', str(chan_freq_map[channel])]
ctx.start_process(cmd).wait()
- self.wait_for_event('AP-CSA-FINISHED')
+
+ if wait:
+ self.wait_for_event('AP-CSA-FINISHED')
def _get_status(self):
ret = {}
--
2.34.1
next prev parent reply other threads:[~2025-08-18 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 14:30 [PATCH v2 1/4] netdev: check connected in channel switch event James Prestwood
2025-08-18 14:30 ` [PATCH v2 2/4] netdev: disconnect rather than deauth in FT association failure James Prestwood
2025-08-18 14:30 ` James Prestwood [this message]
2025-08-18 14:30 ` [PATCH v2 4/4] auto-t: add test for channel switch during roam James Prestwood
2025-08-20 16:20 ` [PATCH v2 1/4] netdev: check connected in channel switch event Denis Kenzior
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=20250818143041.283887-3-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