> However, "ip link show dev wlan0" shows "NO-CARRIER" on both
> with state DORMANT and mode DORMANT.
> 5: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
> state DORMANT mode DORMANT group default qlen 1000
> link/ether 34:e1:2d:24:03:42 brd ff:ff:ff:ff:ff:ff
> When doing it manually with iw the state was UP and the mode DEFAULT,
> I manually changed the state with "ip link set wlan0 state up". After
> that "ip link" no longer shows NO-CARRIER and pings worked. Changing the
> mode was not necessary.
> Is there something that I am missing? Or maybe something which is
> missing in iwd in adhoc mode?
This is indeed a bug in iwd. We somehow missed sending the required
linkmode / operstate changes when adhoc is operated in the 'open' mode.
i.e. a call to l_rtnl_set_linkmode_and_operstate is missing in
src/adhoc.c adhoc_new_station() around line 415.
The tricky part is that adhoc doesn't initialize its own rtnl object, so
I need to think about a good fix for this.
Thanks for the information, indeed it looked to me that there was something missing but I
could not really figure it out for sure from the code. I do not think I can help out
I am looking into ap mode now and I got it to work by putting the either the Intel AC 9260
or Intel 8265 / 8275 (that is putting either in ap mode and connection from the other in
station mode work fine).
However, I have another device with an Atheros QCA6174 (ath10k_pci driver) and if I put it
into ap mode no other station sees it (Windows laptop, Linux laptop, iPhone). Do you know
if there is anything special to do to use ap mode on these devices?
Diego Santa Cruz, PhD