* Scanning while in AP mode
@ 2020-05-29 13:16 Erik =?unknown-8bit?q?Bot=C3=B6?=
2020-05-29 15:14 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Erik =?unknown-8bit?q?Bot=C3=B6?= @ 2020-05-29 13:16 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
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.
What do you think, is it something that could fit into iwd or is there
some reasons to not support this?
Cheers,
Erik
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scanning while in AP mode
2020-05-29 13:16 Scanning while in AP mode Erik =?unknown-8bit?q?Bot=C3=B6?=
@ 2020-05-29 15:14 ` Denis Kenzior
2020-05-29 17:26 ` Erik =?unknown-8bit?q?Bot=C3=B6?=
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2020-05-29 15:14 UTC (permalink / raw)
To: iwd
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scanning while in AP mode
2020-05-29 15:14 ` Denis Kenzior
@ 2020-05-29 17:26 ` Erik =?unknown-8bit?q?Bot=C3=B6?=
0 siblings, 0 replies; 3+ messages in thread
From: Erik =?unknown-8bit?q?Bot=C3=B6?= @ 2020-05-29 17:26 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 2436 bytes --]
Hi,
On Fri, May 29, 2020 at 5:19 PM Denis Kenzior <denkenz@gmail.com> wrote:
>
> 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.
Yes, that's exactly what I want.
>
> 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.
Great, I'll write a first attempt at a patch and we'll take it from there.
Cheers,
Erik
>
> Regards,
> -Denis
> _______________________________________________
> iwd mailing list -- iwd(a)lists.01.org
> To unsubscribe send an email to iwd-leave(a)lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-29 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-29 13:16 Scanning while in AP mode Erik =?unknown-8bit?q?Bot=C3=B6?=
2020-05-29 15:14 ` Denis Kenzior
2020-05-29 17:26 ` Erik =?unknown-8bit?q?Bot=C3=B6?=
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.