# Wi-Fi device stuck in loop when using AP Mode

**URL:** <https://forums.balena.io/t/wi-fi-device-stuck-in-loop-when-using-ap-mode/29167>\
**Category:** balenaOS\
**Created:** [September 2, 2019, 3:41pm UTC](https://forums.balena.io/t/wi-fi-device-stuck-in-loop-when-using-ap-mode/29167 "2019-09-02T15:41:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pdcastro](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pdcastro/32/1264_2.png) [@pdcastro](https://forums.balena.io/u/pdcastro)\
**Post date:** [September 2, 2019, 8:43pm UTC](https://forums.balena.io/t/wi-fi-device-stuck-in-loop-when-using-ap-mode/29167/3 "2019-09-02T20:43:26Z")

</div>

> When a container starts, it forces to update the current connection file (because there might be changes), then disconnects `wlp4s0` and activates the connection. So maybe this is causing problems, but if somebody has a suggestion to push changes to the connection, I’ll be all ears.

Could you share some more details about how the container achieves this? Like the script it runs. Is it using the DBUS interface? If helpful, I have found the following resources that appear relevant:

- [Network Setup on balenaOS - Balena Documentation](https://www.balena.io/docs/reference/OS/network/2.x/#creating-a-hotspot)
- [Raspberry-Pi Wifi Access-point - #10 by majorz](https://forums.balena.io/t/raspberry-pi-wifi-access-point/1255/10)
- [https://github.com/balena-io-modules/network-manager/blob/e8457f4d82334d3ade271995a6df725ada746b8e/src/dbus\_nm.rs#L274](https://github.com/balena-io-modules/network-manager/blob/e8457f4d82334d3ade271995a6df725ada746b8e/src/dbus_nm.rs#L274)
- [GitHub - balena-io-experimental/access-point-example: Example project to demonstrate creating an Access Point on a Raspberry Pi 3](https://github.com/balena-io-playground/access-point-example)

---

_[View the full topic](https://forums.balena.io/t/wi-fi-device-stuck-in-loop-when-using-ap-mode/29167)._
