Skip to contentSkip to conversation

Start iwd device in ap mode by default

DISCUSSION [email protected] 2 participants 5 messages Apr 12, 2021 – Apr 13, 2021

lore
Share & tools
lore
#0 lore raw

Hi Denis,

how I can start the iwd device in ap mode as the default mode? Every time I start the iwd, the device will be in station mode.

Can I add this to main.conf

Regards,
Salahaldeen

#1 lore raw

Hi Salahaldeen,

Quoted 7 lines · salahaldeen.altous(a)leica-camera.com

Hi Denis,

how I can start the iwd device in ap mode as the default mode? Every time I start the iwd, the device will be in station mode.

Can I add this to main.conf

Unfortunately this is not yet supported. This is definitely something that is needed, but nobody has gotten around to adding this functionality. Patches are always welcome of course.

Regards,
-Denis

#2 lore raw

Hi Denis

Quoted 7 lines

Hi Salahaldeen,

On 4/12/21 5:11 PM, salahaldeen.altous(a)leica-camera.com wrote:

Unfortunately this is not yet supported. This is definitely something that is needed, but nobody has gotten around to adding this functionality. Patches are always welcome of course.

Thanks for your quick reply. I will try to add this feature. Any hint where to start?

Quoted 3 lines

Regards,
-Denis

Regards,
Salahaldeen

#3 lore raw

Hi Salahaldeen,

Quoted 11 lines · salahaldeen.altous(a)leica-camera.com

Hi Denis

Quoted 7 lines

Hi Salahaldeen,

On 4/12/21 5:11 PM, salahaldeen.altous(a)leica-camera.com wrote:

Unfortunately this is not yet supported. This is definitely something that is needed, but nobody has gotten around to adding this functionality. Patches are always welcome of course.

Thanks for your quick reply. I will try to add this feature. Any hint where to start?

Start by looking into src/manager.c. This is what is responsible for creating interfaces on the wiphys managed by iwd. See manager_create_interfaces().

Right now we create a station interface and an optional P2P device wdev, depending on hardware capability. I suppose it would make sense to have the following states as configurable inside main.conf:

- station + p2p (current default)
- ap only
- maybe station + ap?

Feel free to find us on IRC if you want to brainstorm live, or on the mailing list.

Regards,
-Denis

#4 lore raw

Hi Denis,

Quoted 3 lines

Hi Salahaldeen,

On 4/12/21 7:40 PM, salahaldeen.altous(a)leica-camera.com wrote:

Thanks for the quick hint. I will start with ap only. later on I can check if I can add station+ ap (not all wifi drivers support this!!).

Regards,
Salahaldeen