All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: Scanning while in AP mode
Date: Fri, 29 May 2020 15:14:35 +0000	[thread overview]
Message-ID: <166f7dab-1d55-e726-699f-86b458088ec2@gmail.com> (raw)
In-Reply-To: <CALNvYWNpDsZGakA97Qxo_SLG23ecrHuhD4Gmj2jfyBW=2XAscg@mail.gmail.com>

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

Hi Erik,

On 5/29/20 8:16 AM, Erik Botö wrote:
> Hi,
> 
> I want to scan for networks while having an active AP. From what I
> understand this can be achieved by using NL80211_SCAN_FLAG_AP.
> 
> The documentation for it say:
>   * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured
>   * as AP and the beaconing has already been configured. This attribute is
>   * dangerous because will destroy stations performance as a lot of frames
>   * will be lost while scanning off-channel, therefore it must be used only
>   * when really needed
> 
> So I suppose it's not something that should be enabled by default, but
> it would be useful to be able to start a scan with this if explicitly
> requested.
> 
> My use case for this is initial device setup. A new device would be
> configured to start up in AP-mode and a inital setup service would run
> that e.g. a phone could connect to and be presented with a list of
> found networks. Then a network can be selected and credentials setup,
> then the device will shut down the AP and instead connect as a client
> to the selected network. Like many IoT devices etc let's you do when
> configuring.

So let me see if I understood correctly.  You want to have wlan0:

1. Switch to Device.Mode = ap
2. Wait until 'something' connects to wlan0
3. Run a scan on wlan0 and tell that 'something' what networks are seen
4. 'something' configures one of the seen networks
5. wlan0 Device.Mode is then switched to 'station' and it connects to 
the network configured in 4.

And to enable this you want to add scanning functionality to the 
AccessPoint interface and have scan.c support this SCAN_FLAG_AP flag. 
If above is correct, then...

> 
> What do you think, is it something that could fit into iwd or is there
> some reasons to not support this?

I don't see any reason not to.  Feel free to come up with an initial 
proposal and we can go from there.

Regards,
-Denis

  reply	other threads:[~2020-05-29 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-29 13:16 Scanning while in AP mode Erik =?unknown-8bit?q?Bot=C3=B6?=
2020-05-29 15:14 ` Denis Kenzior [this message]
2020-05-29 17:26   ` Erik =?unknown-8bit?q?Bot=C3=B6?=

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=166f7dab-1d55-e726-699f-86b458088ec2@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /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.