All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: Interface not detected sometimes
Date: Tue, 04 Feb 2020 16:14:46 -0600	[thread overview]
Message-ID: <2ae955ab-fb4c-e6f5-b06a-5045d1122dcb@gmail.com> (raw)
In-Reply-To: <20200204204516.2820.74539@ml01.vlan13.01.org>

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

Hi Hector,

On 2/4/20 2:45 PM, hector(a)ikatu.com wrote:
> Well the behavior is not the same! Don't know what I did wrong on my first test after applying the commit.
> 
> Now I'm not setting the "--interfaces wlan0" parameter and I'm not executing the sleep in iwd.service, and it's working almost always (before it was failling almost always).

Good.  It seems the original issue is fixed, but we uncovered another :)

> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/manager.c:manager_config_notify() Notification of command Del Interface(8)

So we manage to delete the AP interface (probably not what you want anyway)

> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/netdev.c:netdev_link_notify() event 16 on ifindex 4
> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/manager.c:manager_del_interface_cb()
> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/netdev.c:netdev_link_notify() event 17 on ifindex 4
> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/manager.c:manager_del_interface_cb()
> Feb 04 20:37:52 Paris-00100105 iwd[502]: DEL_INTERFACE failed: Unknown error 524

But we fail to delete the station interface.

> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/manager.c:manager_use_default()
> Feb 04 20:37:52 Paris-00100105 iwd[502]: ../git/src/netdev.c:netdev_create_from_genl() Created interface uap0[4 2]

And now we are completely confused and using the just deleted interface..

> Feb 04 20:37:52 Paris-00100105 iwd[502]: Could not register frame watch type 00d0: -19
> Feb 04 20:37:52 Paris-00100105 iwd[502]: RTM_GETLINK error -19: No such device

Which of course fails :)  We'll have to come up with a fix for this one...

But in the meantime....

Note that by default iwd will try and remove all interfaces and will 
only create a single station interface by default (if the driver allows, 
which yours doesn't).  iwd itself doesn't yet enable the scenario where 
simultaneous use of station + ap interfaces is a possibility.  Of course 
it won't care if some other entity is managing other interfaces...

Since you stated that you want to run hostapd on the ap interface, the 
best way forward would be to blacklist uap0 via iwd command line 
--nointerfaces=uap0 (or whitelist wlan0 as you have been doing)

Regards,
-Denis

  reply	other threads:[~2020-02-04 22:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-04 14:54 Interface not detected sometimes hector
2020-02-04 14:58 ` hector
2020-02-04 17:06   ` Denis Kenzior
2020-02-04 19:08     ` hector
2020-02-04 20:45       ` hector
2020-02-04 22:14         ` Denis Kenzior [this message]
2020-02-05 12:58           ` hector
2020-02-05 15:00             ` Denis Kenzior
2020-02-05 13:35           ` hector
2020-02-05 15:19             ` Denis Kenzior
2020-02-05 19:28               ` hector
2020-02-06 16:27                 ` Denis Kenzior

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=2ae955ab-fb4c-e6f5-b06a-5045d1122dcb@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.