AJSG1969
Posts: 30
Joined: Tue Oct 24, 2017 3:24 pm

Multiple Wifi Adapter wlan-x naming changes on boot

Fri Jan 19, 2018 1:40 pm

I need to run several scripts which rely on me knowing the name of each specific adapter.

For example I need the external USB adapter to link to the far away WiFi network A as its weaker and the internal adapter to the nearer one Wifi Network B.

Problem is this, whilst I have happily set up two separate wpa supplicant files sometimes on reboot wlan0 and wlan1 will swap, and I end up with the internal adapter on the wrong wifi network.

I have spent a lot of time trying to fix this issue and most of the information I found about persistant rules seems only pertinent to the issues created before the late 2017 update to wlan naming protocols.

In an ideal world I would like to fix:

xx:xx:xx:xx:xx to wlan0
zz:zz:zz:zz:zz to wlan1

Any help would be much appreciated, don't have much hair left!

SurferTim
Posts: 1376
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Multiple Wifi Adapter wlan-x naming changes on boot

Fri Jan 19, 2018 1:58 pm

A user on this group helped me with this. It assigns the name wlan1 to the internal wifi, so any usb wifi device gets wlan0. I'm using this as I type.
Create file /etc/udev/rules.d/72-static-name.rules and insert this

Code: Select all

ACTION=="add", SUBSYSTEM=="net", DRIVERS=="brcmfmac", NAME="wlan1"
Reboot.

AJSG1969
Posts: 30
Joined: Tue Oct 24, 2017 3:24 pm

Re: Multiple Wifi Adapter wlan-x naming changes on boot

Fri Jan 19, 2018 2:22 pm

&%^*&%&£""(("())"( ("("""" !!!!!!

Thank you very much, it works fine. Honestly with 8 remote Pis in the setup rebooting each one and then plugging in the USB was driving me crazy.

Return to “Advanced users”

Who is online

Users browsing this forum: timrowledge and 28 guests