On Fri, May 29, 2020 at 5:19 PM Denis Kenzior <denkenz(a)gmail.com> wrote:
On 5/29/20 8:16 AM, Erik Botö wrote:
> 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
> 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
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.
> iwd mailing list -- iwd(a)lists.01.org
> To unsubscribe send an email to iwd-leave(a)lists.01.org