Closed Apisteftos closed 1 year ago
Hi, you need give some logs.
Fisrt check if the driver is loadable by run sudo modprobe 88x2bu
.
then check the output of dmesg
.
Yes the driver is loaded under sudo modprobe 88x2bu
, here is the list with lsmod
Module Size Used by ntfs3 274432 0 rfcomm 81920 4 cmac 16384 3 algif_hash 16384 1 algif_skcipher 16384 1 af_alg 32768 6 algif_hash,algif_skcipher intel_rapl_msr 20480 0 intel_rapl_common 40960 1 intel_rapl_msr snd_hda_codec_realtek 159744 1 bnep 28672 2 snd_hda_codec_generic 102400 1 snd_hda_codec_realtek edac_mce_amd 36864 0 ledtrig_audio 16384 1 snd_hda_codec_generic snd_hda_codec_hdmi 77824 1 kvm_amd 155648 0 snd_hda_intel 53248 3 snd_intel_dspcfg 28672 1 snd_hda_intel snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg amdgpu 9867264 22 kvm 1028096 1 kvm_amd snd_hda_codec 163840 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek snd_usb_audio 356352 1 binfmt_misc 24576 1 snd_usbmidi_lib 45056 1 snd_usb_audio snd_hda_core 110592 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec crct10dif_pclmul 16384 1 iommu_v2 24576 1 amdgpu ghash_clmulni_intel 16384 0 snd_pcm 143360 5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core gpu_sched 45056 1 amdgpu drm_ttm_helper 16384 1 amdgpu aesni_intel 376832 4 ttm 86016 2 amdgpu,drm_ttm_helper snd_seq_midi 20480 0 snd_seq_midi_event 16384 1 snd_seq_midi crypto_simd 16384 1 aesni_intel drm_kms_helper 311296 1 amdgpu cryptd 24576 3 crypto_simd,ghash_clmulni_intel snd_rawmidi 49152 2 snd_seq_midi,snd_usbmidi_lib 88x2bu 3657728 0 uvcvideo 106496 0 cec 61440 1 drm_kms_helper snd_seq 77824 2 snd_seq_midi,snd_seq_midi_event videobuf2_vmalloc 20480 1 uvcvideo rc_core 65536 1 cec btusb 61440 0 videobuf2_memops 20480 1 videobuf2_vmalloc btrtl 24576 1 btusb snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi videobuf2_v4l2 32768 1 uvcvideo btbcm 24576 1 btusb i2c_algo_bit 16384 1 amdgpu nls_iso8859_1 16384 1 rapl 20480 0 wmi_bmof 16384 0 snd_timer 40960 2 snd_seq,snd_pcm videobuf2_common 77824 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops btintel 40960 1 btusb fb_sys_fops 16384 1 drm_kms_helper syscopyarea 16384 1 drm_kms_helper videodev 258048 3 videobuf2_v4l2,uvcvideo,videobuf2_common bluetooth 704512 33 btrtl,btintel,btbcm,bnep,btusb,rfcomm snd 106496 21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi sysfillrect 20480 1 drm_kms_helper ecdh_generic 16384 2 bluetooth mc 65536 5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common k10temp 16384 0 cfg80211 974848 1 88x2bu sysimgblt 16384 1 drm_kms_helper joydev 32768 0 soundcore 16384 1 snd ccp 102400 1 kvm_amd input_leds 16384 0 ecc 36864 1 ecdh_generic mac_hid 16384 0 sch_fq_codel 20480 6 msr 16384 0 parport_pc 49152 1 ppdev 24576 0 lp 28672 0 drm 622592 14 gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm parport 69632 3 parport_pc,lp,ppdev ramoops 32768 0 pstore_blk 16384 0 reed_solomon 28672 1 ramoops pstore_zone 32768 1 pstore_blk efi_pstore 16384 0 ip_tables 32768 0 x_tables 53248 1 ip_tables autofs4 49152 2 hid_generic 16384 0 uas 28672 0 usb_storage 77824 2 uas usbhid 65536 0 hid 151552 2 usbhid,hid_generic crc32_pclmul 16384 0 r8169 102400 0 nvme 49152 2 ahci 45056 0 xhci_pci 24576 0 gpio_amdpt 20480 0 i2c_piix4 32768 0 xhci_pci_renesas 20480 1 xhci_pci nvme_core 135168 3 nvme realtek 32768 1 libahci 45056 1 ahci wmi 32768 1 wmi_bmof gpio_generic 20480 1 gpio_amdpt
Yes with sudo dmesg
I see the driver loaded. First of all should I every time to load the driver with sudo modprobe 88x2bu
?
But the adapter after loading it with sudo modprobe 88x2bu
doesn't connect automatically, I did it manually and at first time failed, but the second time connected. I attached the log file because it is huge.
Edit: Now needs a lot of tries to connect after rebooting Ubuntu 22.04.1 LTS
No, you do not need to sudo modprobe 88x2bu
every time, it should be loaded automatically.
Are you trying to connect to the SSID that had multiple APs?
I have a WLAN, one works in 2.4GHz and one in 5GHz with different SSIDs, because I had the same problem in Windows and I couldn't connect with 5GHz channel. The same here I am able to connect only with 2.4GHz. The SSIDs are different for both channels.
Which country do you live in? Sounds like channel incompatible.
I am living in Germany. What do you mean incompatible? My router channel is incompatible? I suppose not, because router works in both frequencies, 2.4GHz and 5GHz. The initial SSID was for both frequencies the same, so I change them in 2 difference SSIDs.
The WiFi channels allowed to be used in different countries are very different, see https://en.wikipedia.org/wiki/List_of_WLAN_channels#5_GHz_(802.11a/h/j/n/ac/ax)
The device usually refuses to connect if the country setting does not match.
So, I have to check the WiFi channel and in which frequency is installed. And how do I know which channel and frequency works the usb adapter?
The usb adapter should works for most of the channels. However, the default configuration is the worldwide configuration AKA most restrictive configuration. You may wanna use the channel 32 and 149 for the safest.
No it's not matter of channel automatically choice. I change it manual on channel 9 for 2.4GHz and on channel 44 for 5GHz. How do I uninstall the drivers and try again? What is the command?
You can just remove the driver file, usually in /lib/modules/XXXXXX-x86_64/kernel/drivers/net/wireless/
. And the filename is 88x2bu.ko
or with extra extension.
Or if you use DKMS, use sudo dkms remove rtl88x2bu/git --all
However, you don't need to uninstall to try it. They are not bind to the driver, but depends on wifi control software.
I don't find any compiled file 88x2bu.ko
into the kernel directory /lib/modules/5.15.0-60-generic/kernel/net/wireless/
.I did it manually sudo cp 88x2bu.ko /lib/modules/5.15.0-60-generic/kernel/drivers/net/wireless/
and then with the command: sudo depmod – a
.
That just make install
did.
Hi Apisteftos
please give us the output of sudo iw reg get
and check if it matches the country setup of your wifi router. Germany has very specific regulations about 5GHz band. Have you bought the router in the Germany or from elsewhere ?
The installation of this driver is very straight forward it must work right away. I do have the same adapter and I use it as AP in a raspberry Pi.
As I said I am connected to 2.4GHz. I can not connect to 5GHz and the signal ist about 80% while with 2.4GHz the strength is 90%. The router is provided by the telecommunications company 1&1. The router is FRITZ!BOX 7530. It was automatically configured for choosing it's channel and I changed manually to stable mode in channel 9 for 2.4GHz and on channel 44 for 5GHz.
global country DE: DFS-ETSI (2400 - 2483 @ 40), (N/A, 20), (N/A) (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS (5725 - 5875 @ 80), (N/A, 13), (N/A) (5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR (57000 - 66000 @ 2160), (N/A, 40), (N/A)
Have you made any configuration in the driver module under /etc/modprobe.d/
? Please check if there is any file named 88x2bu.conf. Also you can use wpa_supplicant in the command line to check if you can connect to the 5GHz band.
You can also debug your connection using:
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/example5GHz.conf -d
Let me take it from the beginning. I downloaded the wpasupplicant sudo apt install wpasupplicant
. Constructed my
wpa_passphrase
with wpa_passphrase my-ESSID my-passphrase | sudo tee /etc/wpa_supplicant/example5GHz.conf
and one more for 2.4GHz with wpa_passphrase my-ESSID my-passphrase | sudo tee /etc/wpa_supplicant/example24GHz.conf
Two files created
network={ ssid="my_SSID" #psk="my_passphrase" psk=............................................................................ }
network={ ssid="my_SSID 2,4GHz" #psk="my_passphrase" psk=............................................................................ }
The next step was the debugging the wifi connection with sudo wpa_supplicant -i my_wlan_interface -D wext -c /etc/wpa_supplicant/example24GHz.conf -d
interesting points of the debugging
TDLS: TDLS operation not supported by driver TDLS: Driver uses internal link setup TDLS: Driver does not support TDLS channel switching EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized nl80211: Skip set_supp_port(unauthorized) while not associated EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlxd03745a447ab nl80211: Scan timeout - try to abort it nl80211: Abort scan nl80211: Abort scan failed: ret=-95 (Operation not supported) nl80211: Failed to abort scan nl80211: Try to get scan results RSN: PMKSA cache search - network_ctx=0x55873624a970 try_opportunistic=0 akmp=0x0 RSN: Search for BSSID 3c:a6:2f:45:c8:5a is the mac address for 5GHz RSN: No PMKSA cache entry found P2P: channels: 81:1,2,3,4,5,6,7,8,9,10,11 115:36,40,44,48 116:36,44 117:40,48 128:36,40,44,48 130:36,40,44,48 wpa_driver_nl80211_disconnect(reason_code=3) wlxd03745a447ab: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="LANwire 2,4Ghz" auth_failures=3 duration=30 reason=CONN_FAILED wlxd03745a447ab: CTRL-EVENT-ASSOC-REJECT status_code=1 BSSID 3c:a6:2f:45:c8:59 ignore list count incremented to 3, ignoring for 60 seconds wlxd03745a447ab: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="LANwire 2,4Ghz" auth_failures=4 duration=73 reason=CONN_FAILED wlxd03745a447ab: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1 wlxd03745a447ab: CTRL-EVENT-DISCONNECTED bssid=3c:a6:2f:45:c8:59 reason=3 locally_generated=1 BSSID 3c:a6:2f:45:c8:59 ignore list count incremented to 4, ignoring for 120 seconds wlxd03745a447ab: CTRL-EVENT-DSCP-POLICY clear_all wlxd03745a447ab: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 wlxd03745a447ab: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DE
Then I changed the configuration of both files because the encryption is WPA-CCMP
of my router with sudo nano /etc/wpa_supplicant/example5GHz.conf
to
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=netdev network={ ssid="my_SSID" #psk="my_passphrase" psk=............................................................................ key_mgmt=WPA-PSK proto=RSN pairwise=CCMP group=CCMP }
I think I have to disable the PMKSA cache but I don't know how exactly.
I would say to disable completely the security of your router and check again if you can connect. If your router has been set to offer WPA3 please disable it and force it to WPA2 only.
Doesn't even work without encryption or password. It's says connection failed. Just a file from the debugging with 2,4GHz channel.
Try disable WiFi MAC randomization. https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization
It was disabled but I created one more file in /etc/NetworkManager/conf.d/wifi_rand_mac.conf
You can try check supported channels run
iw phy
i can connect TP-Link Archer T4U ver.3 (VID/PID - 2357:0115) to my Mikrotic router on 5GHz with additional options on module load.
OS - Ubunru 22.04
_options 88x2bu rtw_led_ctrl=1 rtw_power_mgnt=0 rtw_wireless_mode=84 rtwchannel=48
or first can try:
rmmod 88x2bu modprobe 88x2bu rtw_led_ctrl=1 rtw_power_mgnt=0 rtw_wireless_mode=84 rtw_channel=48
rtw_wireless_mode=84 - use only 5GHz rtw_channel=48 - 5GHz 48 ch = 5240MHz (i set in configuration on my Mikrotik router)
You can try play with another module parameters like as (from - https://github.com/morrownr/88x2bu-20210702/blob/main/88x2bu.conf):
# DFS Options ( rtw_dfs_region_domain )
#
# 0 = NONE (default)
# 1 = FCC
# 2 = MKK
# 3 = ETSI
# Country Code options ( rtw_country_code )
#
# Note: Allows the Country Code to be set in cases where it is unable to
# be obtained otherwise.
#
# URL: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
#
# Example for the US: rtw_country_code=US
# Example for Panama: rtw_country_code=PA
# Example for Norway: rtw_country_code=NO
# Example for Kuwait: rtw_country_code=KW
# Example for Taiwan: rtw_country_code=TW
Yes it works now thanks @dipol0 !
So I did a lot of experiments with the configuration and it works also sometimes without any configuration but it need little bit more time or fails to connect. I suppose the problem was the separate SSIDs for HomeLan 2,4GHz
and HomeLan
or it might be the power management rtw_power_mgnt=0
. The char code of the SSIDs was faulty interpreted. It must be somewhere a bug in the code, maybe comma
of the 2,4 GHz
or the whitespace in HomeLan 2,4GHz
.
rtw_wireless_mode=95
it works, but after a while tries to reconnect. I changed to rtw_wireless_mode=84
in 5GHz. Since then I haven't seen any reconnection. The problem with me is that the adapter doesn't connect at once, but it connect at the second try. To connect the second try, I have to do it manually. Maybe it's signal strength of the 5GHz, it's about 60%, but with 2,4GHz it's 90%. Sometimes Ubuntu freezes, but I am not sure if that is because of the adapter or because of the graphic card. Because these days I am trying to train a dataset with Machine Learning and I have an old graphic card amd RX 480 with ROCm.
@Apisteftos In my systmem i disable netplan and back to /etc/network/interfaces + wpa_supplicant. Check frequenciqes supported you Archer:
in my case work range 5180....5700 MHz (if reg-domain=none (in mikrotik router - superchannel)):
Frequencies:
*** 5180 MHz [36] (20.0 dBm)
* 5200 MHz [40] (20.0 dBm)
* 5220 MHz [44] (20.0 dBm)
* 5240 MHz [48] (20.0 dBm)
* 5260 MHz [52] (20.0 dBm) (radar detection)
* 5280 MHz [56] (20.0 dBm) (radar detection)
* 5300 MHz [60] (20.0 dBm) (radar detection)
* 5320 MHz [64] (20.0 dBm) (radar detection)
* 5500 MHz [100] (20.0 dBm) (radar detection)
* 5520 MHz [104] (20.0 dBm) (radar detection)
* 5540 MHz [108] (20.0 dBm) (radar detection)
* 5560 MHz [112] (20.0 dBm) (radar detection)
* 5580 MHz [116] (20.0 dBm) (radar detection)
* 5600 MHz [120] (20.0 dBm) (radar detection)
* 5620 MHz [124] (20.0 dBm) (radar detection)
* 5640 MHz [128] (20.0 dBm) (radar detection)
* 5660 MHz [132] (20.0 dBm) (radar detection)
* 5680 MHz [136] (20.0 dBm) (radar detection)
* 5700 MHz [140] (20.0 dBm) (radar detection)**
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
* 5885 MHz [177] (disabled)
Select freq and set it fixed on your router - for examle select 5240GHz - 48ch. If can select REG_DOMAIN - superchanel/none.
Load module with options (superchannel use - no regdomain):
rtw_dfs_region_domain=0 rtw_country_code=
in /etc/wpa_supplicant/wpa_supplicant.conf (HIDDEN+WPA2-PSK) use bssid you 5GHz wifi you router (MAC 5GHz wifi interface on router). For example:
where BSSID - router MAC on 5ghz interfce
ctrl_interface_group=0 ctrl_interface=/var/run/wpa_supplicant update_config=1 ap_scan=1 fast_reauth=1 country=<YOU_COUNTRY_CODE> network={ ssid="YOUNET5G" bssid=88:a5:c1:5f:7b:47 scan_ssid=1 key_mgmt=WPA-PSK pairwise=CCMP proto=RSN group=CCMP psk=<you_psk_key> }
/etc/network/interfaces:
where wlx4460f95c4250 - you wifi interface. check ifconfig/iwconfig
auto lo
iface lo inet loopback
auto wlx4460f95c4250
allow-hotplug wlx4460f95c4250
iface wlx4460f95c4250 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
reload module with need options manually and restart networking service ot update-initramfs for you kernel (set need options in module config) and reboot.
After iw phy
frequencies are the same as yours.
Wiphy phy0 wiphy index: 0 max # scan SSIDs: 9 max scan IEs length: 2304 bytes max # sched scan SSIDs: 0 max # match sets: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP-128 (00-0f-ac:4) * CMAC (00-0f-ac:6) * GCMP-128 (00-0f-ac:8) * GCMP-256 (00-0f-ac:9) * CCMP-256 (00-0f-ac:10) * GMAC-128 (00-0f-ac:11) * GMAC-256 (00-0f-ac:12) * CMAC-256 (00-0f-ac:13) Available Antennas: TX 0 RX 0 Supported interface modes: * IBSS * managed * AP * monitor * P2P-client * P2P-GO Band 2: Capabilities: 0x863 RX LDPC HT20/HT40 Static SM Power Save RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 7935 bytes No DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 16 usec (0x07) HT Max RX data rate: 300 Mbps HT TX/RX MCS rate indexes supported: 0-15 VHT Capabilities (0x03d071b2): Max MPDU length: 11454 Supported Channel Width: neither 160 nor 80+80 RX LDPC short GI (80 MHz) TX STBC SU Beamformee MU Beamformee +HTC-VHT VHT RX MCS set: 1 streams: MCS 0-9 2 streams: MCS 0-9 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported VHT RX highest supported: 867 Mbps VHT TX MCS set: 1 streams: MCS 0-9 2 streams: MCS 0-9 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported VHT TX highest supported: 867 Mbps Bitrates (non-HT): * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps WoWLAN support: * wake up on anything (device continues operating normally) software interface modes (can always be added): * monitor interface combinations are not supported Device supports SAE with AUTHENTICATE command Device supports scan flush. max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0
It works ok right, now, I will close the issue. I hope doesn't come back again.
The authentication keeps failing. I installed properly the files except from the
sudo dkms autoinstall
an error occurs.`Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area... 'make' -j12 KVER=5.15.0-58-generic KSRC=/lib/modules/5.15.0-58-generic/build............ Signing module: Generating a new Secure Boot signing key: Can't load /var/lib/shim-signed/mok/.rnd into RNG
88x2bu.ko: Running module version sanity check.
depmod...`
What I am doing wrong here? The secure boot is disabled because I had issues on windows.
Edit:
I am not sure what happened, now it is connected, but it took a long time to connect. Maybe 10 minutes.