Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH v3 2/3] auto-t: hostapd.py: add remove_neighbor()
Date: Wed, 19 Jan 2022 14:26:51 -0800	[thread overview]
Message-ID: <20220119222652.2299217-2-prestwoj@gmail.com> (raw)
In-Reply-To: 20220119222652.2299217-1-prestwoj@gmail.com

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

---
 autotests/util/hostapd.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py
index 97422efc..4ae7c42d 100644
--- a/autotests/util/hostapd.py
+++ b/autotests/util/hostapd.py
@@ -168,6 +168,10 @@ class HostapdCLI(object):
         cmd = self.cmdline + ['set_neighbor', addr, 'ssid="%s"' % ssid, 'nr=%s' % nr]
         ctx.start_process(cmd).wait()
 
+    def remove_neighbor(self, addr):
+        cmd = self.cmdline + ['remove_neighbor', addr]
+        ctx.start_process(cmd).wait()
+
     def send_bss_transition(self, device, nr_list):
         # Send a BSS transition to a station (device). nr_list should be an
         # array of tuples containing the BSS address and neighbor report.
-- 
2.31.1

                 reply	other threads:[~2022-01-19 22:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220119222652.2299217-2-prestwoj@gmail.com \
    --to=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