Jump to content

RTL8811AU random MAC and wlanxxxx name


pavel81

Recommended Posts

Hi,

 

RTL811AU wifi dongle has different wlan number each time it is plugged in or system started.  It has different MAC as well.  Numbers after wlan corresponds to attached MAC addresses.

 

 

 

my sysem is OrangepiPC with development kernel.

Quote

 

  ___                               ____  _   ____   ____
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) |  _ \ / ___|
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |_) | |
| |_| | | | (_| | | | | (_| |  __/ |  __/| | |  __/| |___
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_|    \____|
                       |___/

Welcome to ARMBIAN 5.35 user-built Debian GNU/Linux 9 (stretch) 4.13.16-sunxi
System load:   0.10 0.05 0.07   Up time:       25 min
Memory usage:  16 % of 1000MB   IP:            1xxxxx
CPU temp:      48°C
Usage of /:    77% of 7.2G

 


dmesg shows following (I have removed a plugget in the same dongle 3 times)

Quote

[ 1853.907322] usb 4-1: USB disconnect, device number 7
[ 1856.076666] usb 4-1: new high-speed USB device number 8 using ehci-platform
[ 1856.267805] usb 4-1: New USB device found, idVendor=0bda, idProduct=a811
[ 1856.267814] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1856.267819] usb 4-1: Product: 802.11ac WLAN Adapter
[ 1856.267824] usb 4-1: Manufacturer: Realtek
[ 1856.267828] usb 4-1: SerialNumber: 00e04c000001
[ 1856.446822] 8812au 4-1:1.0 wlx00e04cfd6038: renamed from wlan0
[ 1856.603383] IPv6: ADDRCONF(NETDEV_UP): wlx00e04cfd6038: link is not ready
[ 1871.038859] usb 4-1: USB disconnect, device number 8
[ 1872.127345] usb 4-1: new high-speed USB device number 9 using ehci-platform
[ 1872.318550] usb 4-1: New USB device found, idVendor=0bda, idProduct=a811
[ 1872.318560] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1872.318564] usb 4-1: Product: 802.11ac WLAN Adapter
[ 1872.318569] usb 4-1: Manufacturer: Realtek
[ 1872.318573] usb 4-1: SerialNumber: 00e04c000001
[ 1872.497427] 8812au 4-1:1.0 wlx00e04c57feb5: renamed from wlan0
[ 1872.600812] IPv6: ADDRCONF(NETDEV_UP): wlx00e04c57feb5: link is not ready
[ 1877.094270] usb 4-1: USB disconnect, device number 9
[ 1878.537623] usb 4-1: new high-speed USB device number 10 using ehci-platform
[ 1878.728700] usb 4-1: New USB device found, idVendor=0bda, idProduct=a811
[ 1878.728709] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1878.728713] usb 4-1: Product: 802.11ac WLAN Adapter
[ 1878.728718] usb 4-1: Manufacturer: Realtek
[ 1878.728722] usb 4-1: SerialNumber: 00e04c000001
[ 1878.915684] 8812au 4-1:1.0 wlx00e04cc389a8: renamed from wlan0
[ 1879.013696] IPv6: ADDRCONF(NETDEV_UP): wlx00e04cc389a8: link is not ready

 

 

Link to comment
Share on other sites

16 minutes ago, pavel81 said:

my sysem is OrangepiPC with development kernel

 

But not upgraded to latest version? I remember that there was an issue with Network Manager and Wi-Fi MAC addresses on Stretch (and other more recent distros) that should be solved in the meantime. You might want to start reading from here.

 

Besides that how does the output from the following look like?

modinfo 8812au | grep rtm_initmac

 

Link to comment
Share on other sites

16 hours ago, tkaiser said:

my sysem is OrangepiPC with development kernel

I've checked the kernel version again. I've used next kernel, not development. If I use development kernel the wifi dongle is not identified, because  there are not patches adding the 8812au driver. 

 

16 hours ago, tkaiser said:

modinfo 8812au | grep rtm_initmac

 

this gives no response.  modinfo 8812au gives following:

root@orangepipc:~# modinfo 8812au | grep rtm_initmac
root@orangepipc:~# modinfo 8812au
filename:       /lib/modules/4.13.16-sunxi/kernel/drivers/net/wireless/rtl8812au/8812au.ko
version:        v5.1.5_19247.20160830
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     CB5940108CF7B799E50C0B7
alias:          usb:v0411p029Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB32d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0242d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0023d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3318d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3314d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0953d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA813d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0823d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp0820d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDApA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0821d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2604p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp9097d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1109d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p025Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p805Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0122d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0103d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0101d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p003Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3316d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3315d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB30d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1058p0632d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3426d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0022d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17D2d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0409p0408d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p016Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0952d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0074d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8812d*dc*dsc*dp*ic*isc*ip*in*
depends:        cfg80211
intree:         Y
name:           8812au
vermagic:       4.13.16-sunxi SMP mod_unload ARMv7 thumb2 p2v8
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_drv_log_level:set log level when insert driver module, default log level is _DRV_INFO_ = 4 (uint)
parm:           rtw_tx_bw_mode:The max tx bw for 2.4G and 5G. format is the same as rtw_bw_mode (uint)
parm:           rtw_country_code:The default country code (in alpha2) (charp)
parm:           rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm:           rtw_excl_chs:exclusive channel array (array of uint)
parm:           rtw_force_igi_lb:force IGI low-bound, 0:no specified (int)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_pwrtrim_enable:int
parm:           rtw_initmac:charp
parm:           rtw_special_rf_path:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_vht_enable:int
parm:           rtw_beamform_cap:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_full_ch_in_p2p_handshake:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_drv_ant_band_switch:int
parm:           rtw_switch_usb_mode:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_check_hw_status:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_adaptivity_en:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm:           rtw_adaptivity_dml:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_dc_backoff:DC backoff for Adaptivity (uint)
parm:           rtw_adaptivity_th_l2h_ini:TH_L2H_ini for Adaptivity (int)
parm:           rtw_adaptivity_th_edcca_hl_diff:TH_EDCCA_HL_diff for Adaptivity (int)
parm:           rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm:           rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm:           rtw_RFE_type:default init value:64 (uint)
parm:           rtw_powertracking_type:default init value:64 (uint)
parm:           rtw_GLNA_type:default init value:0 (uint)
parm:           rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm:           rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm:           rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm:           rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm:           rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gh:uint
parm:           rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm:           rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
parm:           rtw_led_ctrl:Led Control: 0=Always off, 1=Normal blink, 2=Always on (int)
"

 

I have tried to add following lines to NetworkManager.conf file, but with no effect.

[device-mac-randomization]
wifi.scan-rand-mac-address=no

 

I've tried to update kernel to "5.37.171220 nightly Debian GNU/Linux 9 (stretch) 4.14.7-sunxi", but the problem remains.  If I use wifi dongle with different chipset it works es expected so I think there is a problem somewhere in 8812AU driver.

 

Link to comment
Share on other sites

2 hours ago, pavel81 said:

If I use wifi dongle with different chipset it works es expected so I think there is a problem somewhere in 8812AU driver.


We use this source https://github.com/aircrack-ng/rtl8812au updated 7 days ago while they did some change after. Try this way - blacklist driver in the kernel, install headers and build from recent sources. If problem remains: https://github.com/aircrack-ng/rtl8812au/issues

Link to comment
Share on other sites

2 hours ago, Igor said:

When I use this driver it works, but I'm not able to disable built-in driver and load the driver on start.  

If I add 8812au to the /etc/modprobe.d/blacklist.conf it will install neither new driver.  I have to write

insmod 8812au.ko

after start and then it works, but I can deal with this.  I can build new source with disabled 8812AU module and build from aircrack source. 

 

Thank you for your support and if you want me to try something more just let me know.

 

Link to comment
Share on other sites

5 minutes ago, pavel81 said:

after start and then it works, but I can deal with this.  I can build new source with disabled 8812AU module and build from aircrack source. 

 

Thank you for your support and if you want me to try something more just let me know.


OK, thanks for trying out.

I'll update the driver in kernel once they stop fiddling around. Currently, there are changes on daily basis. I already thought to link sources directly ... rather not.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines