ubuntu20.04 USB WiFi(Buffalo WI-U3-866D) 増設時の記録

Buffalo WI-U3-866Dを追加しました。

結論:iperf3による速度測定

Buffalo WI-U2-433DHP: 65.0 Mbits/sec

Buffalo WI-U3-866D: 197 Mbits/sec

WI-U2-433DHPとWI-U3-866Dは、同じドライバが使えて移行が楽でした。

速度が3倍程度になって大満足です。

lsbsb -tで確認するとUSB2.0による接続となっていますが、これはおそらくドライバの仕様です。

利用するドライバを変更し、USB3.0に変更すると更に速度が向上しそうです。

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 009: ID 04e6:511a SCM Microsystems, Inc. WI-U3-866D
Bus 001 Device 008: ID 3275:0080 VidzMedia Pte Ltd ThinkPad USB Keyboard with TrackPoint
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 010: ID 0411:025d BUFFALO INC. (formerly MelCo., Inc.) WI-U3-866D
Bus 001 Device 006: ID 17ef:6009 Lenovo ThinkPad Keyboard with TrackPoint
Bus 001 Device 005: ID 0411:029b BUFFALO INC. (formerly MelCo., Inc.) 802.11ac WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Before: Buffalo WI-U2-433DHP

user@tv-server:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 2: Dev 5, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M
    |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 6: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 9, If 0, Class=Vendor Specific Class, Driver=usbfs, 12M
        |__ Port 3: Dev 8, If 0, Class=Vendor Specific Class, Driver=smsusb, 480M
    |__ Port 7: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 8: Dev 4, If 3, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 8: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 8: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M
enx7403bdeabc53  IEEE 802.11AC  ESSID:"WiFi-AP"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.5 GHz  Access Point: 00:00:00:6E:80:8F
          Bit Rate:434 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=99/100  Signal level=-64 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iperf3 -c 192.168.11.102
Connecting to host 192.168.11.102, port 5201
[  5] local 192.168.11.104 port 64157 connected to 192.168.11.102 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  9.34 MBytes  78.2 Mbits/sec
[  5]   1.00-2.00   sec  7.31 MBytes  61.1 Mbits/sec
[  5]   2.00-3.00   sec  8.16 MBytes  68.7 Mbits/sec
[  5]   3.00-4.00   sec  6.49 MBytes  54.5 Mbits/sec
[  5]   4.00-5.00   sec  7.84 MBytes  65.8 Mbits/sec
[  5]   5.00-6.00   sec  7.90 MBytes  66.3 Mbits/sec
[  5]   6.00-7.00   sec  8.53 MBytes  71.5 Mbits/sec
[  5]   7.00-8.00   sec  7.54 MBytes  63.2 Mbits/sec
[  5]   8.00-9.00   sec  7.68 MBytes  64.5 Mbits/sec
[  5]   9.00-10.00  sec  7.53 MBytes  63.3 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  78.3 MBytes  65.7 Mbits/sec                  sender
[  5]   0.00-10.01  sec  77.6 MBytes  65.0 Mbits/sec                  receiver

After: Buffalo WI-U3-866D

user@tv-server:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 2: Dev 5, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M
    |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 10, If 0, Class=Vendor Specific Class, Driver=rtl8812au, 480M
    |__ Port 6: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 9, If 0, Class=Vendor Specific Class, Driver=usbfs, 12M
        |__ Port 3: Dev 8, If 0, Class=Vendor Specific Class, Driver=smsusb, 480M
    |__ Port 7: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 8: Dev 4, If 3, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 8: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 8: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M
enx8857eebb524d  IEEE 802.11AC  ESSID:"WiFi-AP"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.5 GHz  Access Point: 00:00:00:6E:80:8F
          Bit Rate:867 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=-61 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iperf3 -c 192.168.11.118
Connecting to host 192.168.11.118, port 5201
[  5] local 192.168.11.104 port 65390 connected to 192.168.11.118 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  24.9 MBytes   209 Mbits/sec
[  5]   1.00-2.00   sec  24.0 MBytes   201 Mbits/sec
[  5]   2.00-3.00   sec  24.7 MBytes   207 Mbits/sec
[  5]   3.00-4.00   sec  23.5 MBytes   197 Mbits/sec
[  5]   4.00-5.00   sec  23.4 MBytes   196 Mbits/sec
[  5]   5.00-6.00   sec  21.8 MBytes   183 Mbits/sec
[  5]   6.00-7.00   sec  21.7 MBytes   182 Mbits/sec
[  5]   7.00-8.00   sec  22.2 MBytes   186 Mbits/sec
[  5]   8.00-9.00   sec  24.3 MBytes   203 Mbits/sec
[  5]   9.00-10.00  sec  24.9 MBytes   209 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   235 MBytes   197 Mbits/sec                  sender
[  5]   0.00-10.01  sec   234 MBytes   196 Mbits/sec                  receiver

iperf Done.

lsmod

$ lsmod
Module                  Size  Used by
xt_nat                 16384  16
xt_tcpudp              20480  24
smsdvb                 36864  3
dvb_core              143360  1 smsdvb
smsusb                 28672  0
smsmdtv                69632  2 smsusb,smsdvb
8812au                987136  0
md4                    16384  0
nls_utf8               16384  2
cifs                 1077248  2
fscache               376832  1 cifs
libdes                 24576  1 cifs
veth                   28672  0
xt_conntrack           16384  2
xt_MASQUERADE          20480  6
nf_conntrack_netlink    49152  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              36864  1
xfrm_algo              16384  1 xfrm_user
xt_addrtype            16384  2
iptable_filter         16384  1
iptable_nat            16384  4
nf_nat                 45056  3 xt_nat,iptable_nat,xt_MASQUERADE
nf_conntrack          147456  5 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
bpfilter              884736  0
br_netfilter           28672  0
bridge                192512  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
aufs                  258048  0
overlay               118784  3
ccm                    20480  6
rfcomm                 81920  16
cmac                   16384  4
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 28672  6 algif_hash,algif_skcipher
bnep                   24576  2
intel_rapl_msr         20480  0
intel_rapl_common      28672  1 intel_rapl_msr
nls_iso8859_1          16384  1
intel_pmc_bxt          16384  0
mei_hdcp               24576  0
intel_telemetry_pltdrv    20480  0
intel_punit_ipc        16384  1 intel_telemetry_pltdrv
intel_telemetry_core    20480  1 intel_telemetry_pltdrv
snd_sof_pci            24576  0
snd_hda_codec_hdmi     61440  1
snd_sof_intel_byt      20480  1 snd_sof_pci
snd_sof_intel_ipc      20480  1 snd_sof_intel_byt
x86_pkg_temp_thermal    20480  0
snd_sof_intel_hda_common    77824  1 snd_sof_pci
intel_powerclamp       20480  0
snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common
coretemp               20480  0
snd_sof_xtensa_dsp     16384  2 snd_sof_intel_hda_common,snd_sof_intel_byt
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
kvm_intel             286720  0
snd_sof               122880  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_byt,snd_sof_intel_ipc
snd_soc_rt298          45056  0
snd_soc_rt286          45056  0
snd_hda_ext_core       32768  3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
kvm                   712704  1 kvm_intel
snd_soc_acpi_intel_match    45056  2 snd_sof_pci,snd_sof_intel_hda_common
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_sof_intel_byt
ledtrig_audio          16384  1 snd_sof
snd_soc_rl6347a        16384  2 snd_soc_rt298,snd_soc_rt286
crct10dif_pclmul       16384  1
ghash_clmulni_intel    16384  0
i915                 2203648  11
snd_soc_core          270336  5 snd_soc_rt298,snd_soc_rt286,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress           28672  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_intel          53248  1
snd_intel_dspcfg       28672  3 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common
snd_hda_codec         139264  3 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda
snd_hda_core           94208  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_usb_audio         282624  2
aesni_intel           372736  9
crypto_simd            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
snd_usbmidi_lib        36864  1 snd_usb_audio
glue_helper            16384  1 aesni_intel
rapl                   20480  0
snd_hwdep              20480  2 snd_usb_audio,snd_hda_codec
intel_cstate           20480  0
mc                     57344  4 smsusb,snd_usb_audio,smsdvb,dvb_core
snd_seq_midi           20480  0
iwlmvm                393216  0
snd_seq_midi_event     16384  1 snd_seq_midi
drm_kms_helper        217088  1 i915
snd_pcm               114688  12 snd_hda_codec_hdmi,snd_soc_rt298,snd_hda_intel,snd_usb_audio,snd_soc_rt286,snd_hda_codec,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
snd_rawmidi            36864  2 snd_seq_midi,snd_usbmidi_lib
mac80211              905216  1 iwlmvm
input_leds             16384  0
btusb                  57344  0
libarc4                16384  2 cifs,mac80211
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
btintel                28672  1 btusb
bluetooth             581632  41 btrtl,btintel,btbcm,bnep,btusb,rfcomm
iwlwifi               352256  1 iwlmvm
snd_seq                69632  2 snd_seq_midi,snd_seq_midi_event
ecdh_generic           16384  2 bluetooth
ecc                    32768  1 ecdh_generic
cec                    53248  2 drm_kms_helper,i915
rc_core                61440  2 smsmdtv,cec
efi_pstore             16384  0
i2c_algo_bit           16384  1 i915
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer              40960  2 snd_seq,snd_pcm
fb_sys_fops            16384  1 drm_kms_helper
cfg80211              778240  3 iwlmvm,iwlwifi,mac80211
syscopyarea            16384  1 drm_kms_helper
mei_me                 40960  1
sysfillrect            16384  1 drm_kms_helper
intel_xhci_usb_role_switch    16384  0
sysimgblt              16384  1 drm_kms_helper
mac_hid                16384  0
snd                    94208  19 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
roles                  16384  1 intel_xhci_usb_role_switch
mei                   106496  3 mei_hdcp,mei_me
soundcore              16384  1 snd
sch_fq_codel           20480  10
parport_pc             45056  0
ppdev                  24576  0
lp                     20480  0
parport                65536  3 parport_pc,lp,ppdev
drm                   552960  6 drm_kms_helper,i915
ip_tables              32768  2 iptable_filter,iptable_nat
x_tables               49152  7 xt_conntrack,iptable_filter,xt_tcpudp,xt_addrtype,xt_nat,ip_tables,xt_MASQUERADE
autofs4                45056  2
hid_lenovo             24576  0
hid_generic            16384  0
usbhid                 57344  0
hid                   135168  3 usbhid,hid_generic,hid_lenovo
mmc_block              49152  3
crc32_pclmul           16384  0
r8169                  77824  0
ahci                   40960  1
libahci                36864  1 ahci
sdhci_pci              53248  0
i2c_i801               32768  0
lpc_ich                24576  0
i2c_smbus              20480  1 i2c_i801
cqhci                  28672  1 sdhci_pci
xhci_pci               20480  0
sdhci                  69632  1 sdhci_pci
xhci_pci_renesas       20480  1 xhci_pci
realtek                24576  1
video                  49152  1 i915
pinctrl_broxton        40960  2
pinctrl_intel          28672  2 pinctrl_broxton
knight@tv-server:~$

modinfo

$ modinfo 8812au
filename:       /lib/modules/5.8.0-59-generic/kernel/drivers/net/wireless/8812au.ko
version:        v4.2.3
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     ABAC4A158AD3DA33BA2553B
alias:          usb:v2357p0120d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p011Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0823d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v3823p6249d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3318d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDApA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0959d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0953d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep4007d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p029Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0242d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB32d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3314d*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: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:v0411p025Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0122d*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:v20F4p805Bd*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: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:v13B1p003Fd*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:v2001p330Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1109d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2604p0012d*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:
retpoline:      Y
name:           8812au
vermagic:       5.8.0-59-generic SMP mod_unload modversions
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_regulatory_id: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_initmac:charp
parm:           rtw_channel_plan: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_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_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc: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_led_enable:Enable status LED (int)

WiFiドライバ導入時の記録

Buffalo WI-U2-433DHPをubuntu20.04で利用できるまでの手順です。 lsusbで認識されていることを確認 ...