Disable WiFI when Ethernet Active

Suggest new features here
Post Reply
N4NQY
Posts: 77
Joined: Thu Apr 12, 2018 5:47 pm

Disable WiFI when Ethernet Active

Post by N4NQY »

I searched and did not see a post referencing this.

It would be very nice to "down" WiFI when an Ethernet cable is plugged in and recognized by the network. Most of my Hotspots are Pi3 or 4's and I have 2 connections active for each.

jb N4NQY
N4NQY
Posts: 77
Joined: Thu Apr 12, 2018 5:47 pm

Re: Disable WiFI when Ethernet Active

Post by N4NQY »

Thanks. No disrespect, but I have similar code but was suggesting that the image come with it baked in.

jb N4NQY
KN2TOD
Posts: 268
Joined: Sun Nov 11, 2018 6:36 pm

Re: Disable WiFI when Ethernet Active

Post by KN2TOD »

Curious: I implemented the code sequence suggested above but it's still broadcasting a wifi connection even though it connects to my ethernet. The "wlan0" connection is indeed down, but there's a "wlan0_ap" connection that's still outstanding. Should it also be shut down?
KN2TOD
Posts: 268
Joined: Sun Nov 11, 2018 6:36 pm

Re: Disable WiFI when Ethernet Active

Post by KN2TOD »

So, that means the code sequence you provided doesn't actually shut off wifi access - it only shuts down the one named AP (wlan0), leaving two connections still showing: one for the ethernet and one for wlan0_ap.
Post Reply