# Random WiFi problems

**URL:** <https://discourse.mopidy.com/t/random-wifi-problems/3088>\
**Category:** Pi MusicBox (archive)\
**Created:** [February 6, 2019, 10:23am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088 "2019-02-06T10:23:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 6, 2019, 10:23am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/1 "2019-02-06T10:23:44Z")

</div>

I am noticing random WiFi connection problem at boot, so I am trying to troubleshoot.

Of course, I checked correctness of my wifi settings and routing.

In startput.sh you are resetting the network with `/etc/init.d/networking restart` but Debian reports that this is deprecated because it may not enable again some interfaces. Don’t you believe that it could be changed with: `ifdown wlan0 && ifup wlan0` ?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 6, 2019, 10:32am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/2 "2019-02-06T10:32:22Z")

</div>

I have replaced `/etc/init.d/networking restart`with `ifdown wlan0 && ifup wlan0` and now the startup log is cleaner:

```
************************

Initializing MusicBox...

************************

Setting sound configuration...

Probing sound devices:

card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]

card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]

* Found internal device: card0

* Found internal device: card0

Selected card= (i2s= output=auto usb= intc=0)

No output was specified/found, falling back to auto detection

Selected card=0 (i2s= output=analog usb= intc=0)

Using audio card0 (analog)

MusicBox name is MusicBox

ifup: interface wlan0 already configured

Stopping Samba daemons: nmbd smbd.

Starting Samba daemons: nmbd smbd.

Starting Dropbear SSH server: dropbear.

Starting daemon monitor: monit.

***********************************************************************************

My IP address is 192.168.1.58

Connect to me in your browser at http://MusicBox.local or http://192.168.1.58
```

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 9, 2019, 1:32pm UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/3 "2019-02-09T13:32:53Z")

</div>

Still having random disconnection from the wifi network, while playing. This is an extract from dmesg:

```
[17685.320174] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[17686.326142] brcmfmac: power management disabled
[17686.327917] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[17812.324712] brcmfmac: power management disabled
[17825.024314] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[26569.725423] brcmfmac: power management disabled
[26569.747750] brcmfmac: power management disabled
[26569.749504] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[26570.755510] brcmfmac: power management disabled
[26570.757280] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[26811.587885] brcmfmac: power management disabled
[26853.156157] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[27995.915851] brcmfmac: power management disabled
[27995.938058] brcmfmac: power management disabled
[27995.940219] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[27996.946099] brcmfmac: power management disabled
[27996.947226] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[28011.994326] brcmfmac: power management disabled
[28013.040592] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

```

Any idea?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 11, 2019, 9:17am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/4 "2019-02-11T09:17:42Z")

</div>

…it is still happening frequently…

```
[Sun Feb 10 00:45:38 2019] brcmfmac: power management disabled
[Sun Feb 10 00:45:38 2019] brcmfmac: power management disabled
[Sun Feb 10 00:45:38 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 00:45:39 2019] brcmfmac: power management disabled
[Sun Feb 10 00:45:39 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 00:48:05 2019] brcmfmac: power management disabled
[Sun Feb 10 00:48:06 2019] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[Sun Feb 10 01:00:13 2019] brcmfmac: power management disabled
[Sun Feb 10 01:00:13 2019] brcmfmac: power management disabled
[Sun Feb 10 01:00:13 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 01:00:18 2019] brcmfmac: power management disabled
[Sun Feb 10 01:00:19 2019] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[Sun Feb 10 01:01:15 2019] brcmfmac: power management disabled
[Sun Feb 10 01:01:15 2019] brcmfmac: power management disabled
[Sun Feb 10 01:01:15 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 01:01:16 2019] brcmfmac: power management disabled
[Sun Feb 10 01:01:16 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 01:03:05 2019] brcmfmac: power management disabled
[Sun Feb 10 01:03:06 2019] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[Sun Feb 10 01:16:56 2019] brcmfmac: power management disabled
[Sun Feb 10 01:16:56 2019] brcmfmac: power management disabled
[Sun Feb 10 01:16:56 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 01:16:57 2019] brcmfmac: power management disabled
[Sun Feb 10 01:16:57 2019] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[Sun Feb 10 01:18:05 2019] brcmfmac: power management disabled
[Sun Feb 10 01:18:06 2019] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
```

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 11, 2019, 9:19am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/5 "2019-02-11T09:19:33Z")

</div>

This is my interfaces file:

```
root@MusicBox:/var/log/mopidy# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

#auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0

#iface wlan0 inet manual
#wpa-roam /etc/wpa.conf

#for static ip on wifi, comment out the two lines above (iface and wpa-roam), uncomment the following lines and change the ip numbers to the correct values

iface wlan0 inet static
wpa-conf /etc/wpa.conf
address 192.168.1.58
netmask 255.255.255.0
gateway 192.168.1.1

wireless-power off

iface default inet dhcp
```

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [February 11, 2019, 9:31am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/6 "2019-02-11T09:31:46Z")

</div>

Are you saying those log events directly correlate with your wireless problems or are you just posting that log file in case it’s relevant?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 11, 2019, 9:34am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/7 "2019-02-11T09:34:50Z")

</div>

I suppose for both reasons…

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [February 11, 2019, 9:38am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/8 "2019-02-11T09:38:33Z")

</div>

OK so specifically at those times it lost connection. Are you using wireless channel 12 or 13?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/fmarzocca/32/1095_2.png) [@fmarzocca](https://discourse.mopidy.com/u/fmarzocca)\
**Post date:** [February 11, 2019, 9:56am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/9 "2019-02-11T09:56:50Z")

</div>

No, channel 11 (40Mhz bandwidth)

(some more word)

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:46am UTC](https://discourse.mopidy.com/t/random-wifi-problems/3088/10 "2026-02-19T11:46:58Z")

</div>


