A13 wifi wlanx interfase changing number

Started by mauricio, October 22, 2014, 09:06:30 PM

Previous topic - Next topic

mauricio

hello

I have an A13 running for awhile (six months almost), using wifi with no problem

since a couple of weeks it began to change the wlan interfase it uses to connect

It changes from, let's say wlan7 to wlan12 (or any other number), I've just configured wlan7 at /etc/network/interfaces, so, when it changes, I simply lost the ability to reach to the board

Is there any way to avoid this behaviour ?, I would like the board only uses one (wlan7) interfase to connect to wifi

thank in advance

MBR

I'm not sure what causes this strange behaviour (maybe the MAC address change), but you can fix the results by editing file /etc/udev/rules.d/70-persistent-net.rules.

mauricio

hello & thanks, I asked people near to the board to restart it (unplug and pluggin to power), now I can reach it again through ssh

I'm looking at file /etc/udev/rules.d/70-persistent-net.rules and as it header states, also reviewed /lib/udev/write_net_rules

at 70-persistent-net.rules I found references to many interfases (from wlan0 to wlan17), including eth0 and eth1 (which I think this board doesn't have):

# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="44:33:4c:64:40:22", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan7"

# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:81:92:35", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan8"

# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:81:92:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan9"

# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:81:92:9f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan10"

I see that all wlan references have a different ATTR{address}

I also run dmesg -T | grep wlan, and get a lot stuff among them:

[Thu Oct 23 08:59:42 2014] udevd[192]: renamed network interface wlan0 to wlan7

and many like these

[Thu Oct 23 09:01:10 2014] wlan7: deauthenticated from c8:b3:73:21:bc:c9 (Reason: 15)
[Thu Oct 23 09:01:11 2014] wlan7: authenticate with c8:b3:73:21:bc:c9
[Thu Oct 23 09:01:11 2014] wlan7: send auth to c8:b3:73:21:bc:c9 (try 1/3)
[Thu Oct 23 09:01:11 2014] wlan7: authenticated
[Thu Oct 23 09:01:11 2014] wlan7: associate with c8:b3:73:21:bc:c9 (try 1/3)
[Thu Oct 23 09:01:11 2014] wlan7: RX AssocResp from c8:b3:73:21:bc:c9 (capab=0x411 status=0 aid=1)
[Thu Oct 23 09:01:11 2014] wlan7: associated

really this is new to me and I'm wondering if I just can remove wlanXX entrances from 70-persistent-net.rules and just left wlan7 there ?

also I wonder why all wlanXX entrances have diferent ATTR{address}, could be that the wifi addon is taking different MAC addresses ?

please any advice is welcome

thanks again

mauricio

ok, I did

I backed up 70-persistent-net.rules file, commented out all references to wlanXX except for wlan7 and reboot

no other line was writen, I'm now waiting to see what happen because the board start up using wlan7 but changes interface through the day

mauricio

Thank you MBR, it looks like that removing those lines from 70-persistent-net.rules has worked, the board remains using wlan7, great !

mauricio

hello, I'm afraid the issue persists

today I've checked 70-persistent-net.rules and somehow a new line has been added, referring to wlan0 and a different MAC address

does somebody know how to avoid this reassignment and also why the MAC address is being changed for wlan module on A13

thanks in advance

jo

Quote from: mauricio on November 04, 2014, 02:09:16 PM
hello, I'm afraid the issue persists

today I've checked 70-persistent-net.rules and somehow a new line has been added, referring to wlan0 and a different MAC address

does somebody know how to avoid this reassignment and also why the MAC address is being changed for wlan module on A13

thanks in advance

Does this happen with the same device? Does your WLAN interface changes its MAC on every boot up?

You can disable the wlan0 interface renaming of udev by creating the file
cat /etc/udev/rules.d/75-persistent-net-generator.rules
# disable net-generator rules in /lib/udev

This suppresses the udev rule that creates the "new" interface name wlanX on every boot up.