From: Arend van Spriel <aspriel@gmail.com>
To: Luca Coelho <luca@coelho.fi>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH py80211 3/4] py80211: add sched_scan stop class
Date: Sat, 13 Jun 2015 20:45:34 +0200 [thread overview]
Message-ID: <557C7A4E.9030008@gmail.com> (raw)
In-Reply-To: <1434117644-3033-4-git-send-email-luca@coelho.fi>
On 12-06-15 16:00, Luca Coelho wrote:
> From: Luciano Coelho <luciano.coelho@intel.com>
>
> Add a class to stop scheduled scans.
>
> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Merged in master branch after indentation cleanup.
Regards,
Arend
> ---
> lib/scan.py | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/lib/scan.py b/lib/scan.py
> index bfaf4da..bfaf3d2 100644
> --- a/lib/scan.py
> +++ b/lib/scan.py
> @@ -203,3 +203,18 @@ class sched_scan_start(scan_start_base):
> if genlh.cmd in [ nl80211.CMD_START_SCHED_SCAN ]:
> self.scan_busy = False
> return nl.NL_SKIP
> +
> +class sched_scan_stop(scan_cmd_base):
> + def __init__(self, ifidx, level=nl.NL_CB_DEFAULT):
> + super(sched_scan_stop, self).__init__(ifidx, level)
> + self._nl_cmd = nl80211.CMD_STOP_SCHED_SCAN
> +
> + def send(self):
> + self._prepare_cmd()
> + self._send_and_wait()
> +
> + def handle(self, msg, arg):
> + genlh = genl.genlmsg_hdr(nl.nlmsg_hdr(msg))
> + if genlh.cmd in [ nl80211.CMD_SCHED_SCAN_STOPPED ]:
> + self.scan_busy = False
> + return nl.NL_SKIP
>
next prev parent reply other threads:[~2015-06-13 18:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 14:00 [PATCH py80211 0/4] py80211: add support for scheduled scan Luca Coelho
2015-06-12 14:00 ` [PATCH py80211 1/4] py80211: scan: spin base scan classes off scan_request Luca Coelho
2015-06-13 18:40 ` Arend van Spriel
2015-06-12 14:00 ` [PATCH py80211 2/4] py80211: scan: add sched_scan start class Luca Coelho
2015-06-13 18:44 ` Arend van Spriel
2015-06-12 14:00 ` [PATCH py80211 3/4] py80211: add sched_scan stop class Luca Coelho
2015-06-13 18:45 ` Arend van Spriel [this message]
2015-06-12 14:00 ` [PATCH py80211 4/4] py80211: scan: add matchsets support for scheduled scans Luca Coelho
2015-06-13 18:45 ` Arend van Spriel
2015-06-13 6:26 ` [PATCH py80211 0/4] py80211: add support for scheduled scan Arend van Spriel
2015-06-16 7:33 ` Luca Coelho
2015-06-21 21:29 ` Arend van Spriel
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=557C7A4E.9030008@gmail.com \
--to=aspriel@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=luca@coelho.fi \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.