Help required diagnosing random authentication failures.

Recently acquired my first laptop and the world of wireless access is all rather foreign to me.

I’m getting apparently quite random authentication failures when connecting to a wireless router, and am fumbling around in the dark somewhat as to the exact cause.

(KDE, Network Manager, wpa_supplicant)

The driver in use is rtl8821ce from forum user Sauerland’s home repository.

Looking at the log for wpa_supplicant on a successful authentication I see the following:

1565812781.727495: wlan1: Trying to associate with 4c:38:d8:03:c1:9f (SSID='ORION-a-5G' freq=5220 MHz)
1565812781.790247: wlan1: Associated with 4c:38:d8:03:c1:9f
1565812781.790274: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
1565812781.790315: wlan1: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=GB
1565812781.815898: wlan1: WPA: Key negotiation completed with 4c:38:d8:03:c1:9f [PTK=CCMP GTK=TKIP]
1565812781.815931: wlan1: CTRL-EVENT-CONNECTED - Connection to 4c:38:d8:03:c1:9f completed [id=0 id_str=]

On a failed authentication:

1565813819.717660: wlan1: Trying to associate with 4c:38:d8:03:c1:9f (SSID='ORION-a-5G' freq=5220 MHz)
1565813819.822618: wlan1: Associated with 4c:38:d8:03:c1:9f
1565813819.822655: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
1565813819.822689: wlan1: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=GB
1565813823.869094: wlan1: CTRL-EVENT-DISCONNECTED bssid=4c:38:d8:03:c1:9f reason=2
1565813823.869144: wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
1565813823.869159: wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ORION-a-5G" auth_failures=1 duration=10 reason=WRONG_KEY

I note (if I’m interpreting correctly) that immediately before the key negotiation there is:

wlan1: CTRL-EVENT-DISCONNECTED bssid=4c:38:d8:03:c1:9f reason=2

I wonder what is “reason=2”, as that may give a clue… “googling” this didn’t turn up anything that seemed relevant.

When working there is no problem with the connection itself, the following fragment from “iwconfig” shows (I believe) the actual wireless link to be OK, that’s after some 60-70 minutes of use.

Link Quality=70/100  Signal level=31/100  Noise level=0/100
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:0  Invalid misc:0   Missed beacon:0

I’ve discounted the signal level and quality by physically moving the laptop closer to the wireless access point, (quality and level then both approach 100/100), and I still see the random authentication failures.

Hi
Could also be interference from other wireless AP’s in the same locale, on the AP, can it do a wireless scan, if so move your channel to a less congested one if you can as least two channels away from the most congested…

When was the AP last rebooted, if it’s been up awhile sometimes this helps…

Interference would certainly account for the randomness with which this happens, but I’m seeing little to actually confirm that may be the cause.

The AP I’m connecting to is an ISP supplied “UPC Connect Box”, an all in one Cable Modem / Router / WiFi AP / VOIP gizmo…

It has “Intelligent Wi-Fi”, which (paraphrased to shorten) “regularly checks for best channel and channel width to minimize interference and congestion”. I’ve read on my ISP’s user forums that some people claim better performance by switching that feature off, and others by switching it on…

Typically I see anything from 2-7 other “Available Connections” in Network Manager, however if I use “iwlist wlan1 scan” to see in detail, then only “Cell 08” is on 5GHz and on a different channel to myself. So I’m doubting if it’s interference from other local APs.



Heavily snipped output

wlan1     Scan completed :
          Cell 01 - Address: 4C:*** - (This is mine)
                    ESSID:"ORION-a-5G"
                    Protocol:IEEE 802.11AC
                    Mode:Master
                    Frequency:5.22 GHz (Channel 44)
                    Encryption key:on
                    Bit Rates:1.3 Gb/s
                    Quality=78/100  Signal level=53/100  

          Cell 02 - Address: 80:***
                    ESSID:"VM8504976_EXT"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Quality=100/100  Signal level=16/100  

          Cell 03 - Address: 15:***
                    ESSID:"iNOR15a"
                    Protocol:IEEE 802.11bg
                    Mode:Ad-Hoc
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Quality=0/100  Signal level=18/100  

          Cell 04 - Address: B6:***
                    ESSID:"DIRECT-8D-HP ENVY 5000 series"
                    Protocol:IEEE 802.11gn
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Quality=27/100  Signal level=20/100  

          Cell 05 - Address: C0:***
                    ESSID:"The Cairn"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Quality=81/100  Signal level=14/100  

          Cell 06 - Address: 10:***
                    ESSID:"VM383956-2G"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Quality=100/100  Signal level=19/100  

          Cell 07 - Address: 15:***
                    ESSID:"iNOR15"
                    Protocol:IEEE 802.11bg
                    Mode:Ad-Hoc
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Quality=90/100  Signal level=20/100  

          Cell 08 - Address: 9C:***
                    ESSID:"VM383956-5G"
                    Protocol:IEEE 802.11an
                    Mode:Master
                    Frequency:5.18 GHz (Channel 36)
                    Encryption key:on
                    Bit Rates:300 Mb/s
                    Quality=18/100  Signal level=7/100  

Referring back to the wpa_supplicant log, I’ve now found ( https://community.cisco.com/t5/wireless-mobility-documents/association-and-authentication-responses-reason-codes/ta-p/3113150 ) that “Reason=2” is “Previous authentication no longer valid”, which so far is of little help. :\

For the moment I’m “sort of” accepting it, are authentication failures such as this something that “just happen”…

On a more positive note the 15.1 install on my newly acquired HP 255 G7 went quite well, I ran a live USB for a couple of days which didn’t throw up any serious problems, so went ahead and did a network install.

I’ve a few minor problems to fathom out, I’ll post about those in a day or so if unable to resolve them myself. :slight_smile:

Hi
I would set the channel and turn off any switching, can you run your setup as just 5GHz only, or it has to be both?

@tannington:

Have you enabled the systemd “wpa_supplicant” service?

AFAICS, with Network Manager, this isn’t needed and, indeed, may be counterproductive …
[HR][/HR]The reason is:

  • The systemd “wpa_supplicant” service needs to be started during boot only if, the wireless connection is to be made during boot – with Network Manager this is not the case …
  • Network Manager starts “wpa_supplicant” anyway, by it’s self and, there’s some D-Bus activity going on as well …

 > systemctl list-unit-files | grep -i 'wpa'
dbus-fi.epitest.hostap.WPASupplicant.service                           disabled 
dbus-fi.w1.wpa_supplicant1.service                                     disabled 
wpa_supplicant.service                                                 disabled 
wpa_supplicant@.service                                                disabled 
 > 


 # journalctl --this-boot --full | grep -i 'wpa'
Aug 16 18:15:04 xxx dbus-daemon[1272]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service' requested by ':1.10' (uid=0 pid=1465 comm="/usr/sbin/NetworkManager --no-daemon ")
Aug 16 18:15:05 xxx systemd[1]: Starting WPA Supplicant daemon...
Aug 16 18:15:05 xxx dbus-daemon[1272]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Aug 16 18:15:05 xxx systemd[1]: Started WPA Supplicant daemon.
Aug 16 18:15:05 xxx NetworkManager[1465]: <info>  [1565972105.7923] supplicant: wpa_supplicant running

@tannington:

Given that, you seem to have some WLAN “neighbours”, you’re well advised to setup the SSID of your WLAN to a unique string – it’s currently the default manufacturer string – “ORION-a-5G” – meaning that, anyone else in your neighbourhood who has also purchased from the same provider will, have a WLAN with the same SSID as yours – which is confusing for the clients trying to connect to the WLANs …

  • The clients, normally, 1st search for the SSID (string) and then, attempt to connect to it – if it ain’t “yours” then, the passphrase fails …

I had already switched off 2.4GHz.

With the “Intelligent Wi-Fi” and “Auto Channel Selection” also switched off I’ve not seen any change in behaviour, i.e. still random authentication failures.

I don’t think the problem is interference from another Wi-Fi nearby as I’m frequently the only person on 5GHz. I’ve taken to running “iwlist wlan1 scan” immediately after an authentication failure to see what other activity there is.

I’ve also started to take note of the time at which it occurs, to see if it’s more likely to happen at a particular time of day, but so far that seems quite random also, but I need to do that for a few more days before drawing any conclusions.

Running with the same Chip here on Leap 15.1 with no Problems.

Post:

zypper se -si rtl kernel
uname -a

Not changed that from the installed default:

paul@HP255G7:~> systemctl list-unit-files | grep -i 'wpa'
dbus-fi.epitest.hostap.WPASupplicant.service disabled       
dbus-fi.w1.wpa_supplicant1.service           disabled       
wpa_supplicant.service                       disabled       
wpa_supplicant@.service                      disabled       
paul@HP255G7:~> 

And it starts up correctly when required to do so by Network Manager:

paul@HP255G7:~> sudo journalctl --this-boot --full | grep -i 'wpa'
[sudo] password for root: 
Aug 17 13:48:05 HP255G7 dbus-daemon[1053]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service' requested by ':1.4' (uid=0 pid=1106 comm="/usr/sbin/NetworkManager --no-daemon ")
Aug 17 13:48:05 HP255G7 systemd[1]: Starting WPA Supplicant daemon...
Aug 17 13:48:05 HP255G7 dbus-daemon[1053]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Aug 17 13:48:05 HP255G7 systemd[1]: Started WPA Supplicant daemon.
Aug 17 13:48:05 HP255G7 NetworkManager[1106]: <info>  [1566046085.9922] supplicant: wpa_supplicant running
Aug 17 13:48:30 HP255G7 NetworkManager[1106]: <info>  [1566046110.4104] Config: added 'key_mgmt' value 'WPA-PSK'
Aug 17 13:48:34 HP255G7 kernel: RTW: rtw_cfg80211_set_wpa_version, wpa_version=2
Aug 17 13:48:34 HP255G7 kernel: RTW: set wpa_ie(length:22):
Aug 17 13:48:34 HP255G7 kernel: RTW: got wpa2_ie, wpa2_ielen:20
Aug 17 14:05:29 HP255G7 kernel: RTW: recv eapol packet - WPA Group Key 1/2
Aug 17 14:05:29 HP255G7 kernel: RTW: send eapol packet - WPA Group Key 2/2
paul@HP255G7:~>

Given that, you seem to have some WLAN “neighbours”, you’re well advised to setup the SSID of your WLAN to a unique string – it’s currently the default manufacturer string – “ORION-a-5G”

Already changed that, “ORION-a-5G” is not the default SSID :wink:

Hi
Can you post the output from;


systool -vm rtl8821ce

This will see if there are any module options and if they can be tweaked.

paul@HP255G7:~> zypper se -si rtl kernel
Loading repository data...
Reading installed packages...

S  | Name                  | Type    | Version                                    | Arch   | Repository                            
---+-----------------------+---------+--------------------------------------------+--------+---------------------------------------
i+ | kernel-default        | package | 4.12.14-lp151.28.13.1                      | x86_64 | Main Update Repository                
i+ | kernel-default        | package | 4.12.14-lp151.28.10.1                      | x86_64 | Main Update Repository                
i  | kernel-firmware       | package | 20190618-lp151.2.6.1                       | noarch | Main Update Repository                
i+ | rtl8821ce-kmp-default | package | git20190817_k4.12.14_lp151.28.13-lp151.2.1 | x86_64 | Sauerland's Update-Repo (Realtek rtl8821ce)
paul@HP255G7:~> 
paul@HP255G7:~> uname -a
Linux HP255G7 4.12.14-lp151.28.13-default #1 SMP Wed Aug 7 07:20:16 UTC 2019 (0c09ad2) x86_64 x86_64 x86_64 GNU/Linux
paul@HP255G7:~>

Module is named 8821ce so it is:

systool -vm 8821ce
ich@hp-laptop:~> systool -vm 8821ce
Module = "8821ce"

  Attributes:
    coresize            = "2469888"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    srcversion          = "8FEF7089495244EDD30982F"
    taint               = "O"
    uevent              = <store method only>
    version             = "v5.5.2_34066.20190614_COEX20180712-3232"

  Parameters:
    if2name             = "wlan%d"
    ifname              = "wlan%d"
    rtw_FileMaskEfuse   = "0"
    rtw_GLNA_type       = "0"
    rtw_OffEfuseMask    = "0"
    rtw_RFE_type        = "64"
    rtw_TxBBSwing_2G    = "255"
    rtw_TxBBSwing_5G    = "255"
    rtw_adaptivity_en   = "0"
    rtw_adaptivity_mode = "0"
    rtw_adaptivity_th_edcca_hl_diff= "0"
    rtw_adaptivity_th_l2h_ini= "0"
    rtw_ampdu_enable    = "1"
    rtw_amplifier_type_2g= "0"
    rtw_amplifier_type_5g= "0"
    rtw_ant_num         = "0"
    rtw_antdiv_cfg      = "2"
    rtw_antdiv_type     = "0"
    rtw_btcoex_enable   = "2"
    rtw_busy_thresh     = "40"
    rtw_bw_mode         = "33"
    rtw_ch_switch_offload= "0"
    rtw_channel         = "1"
    rtw_channel_plan    = "255"
    rtw_check_hw_status = "0"
    rtw_chip_version    = "0"
    rtw_country_code    = "��"
    rtw_decrypt_phy_file= "0"
    rtw_drv_ant_band_switch= "1"
    rtw_drv_log_level   = "4"
    rtw_dynamic_agg_enable= "1"
    rtw_en_gro          = "1"
    rtw_en_napi         = "1"
    rtw_enusbss         = "0"
    rtw_excl_chs        = 
    rtw_full_ch_in_p2p_handshake= "0"
    rtw_hiq_filter      = "1"
    rtw_ht_enable       = "1"
    rtw_hw_wps_pbc      = "0"
    rtw_hwpdn_mode      = "2"
    rtw_hwpwrp_detect   = "0"
    rtw_initmac         = "(null)"
    rtw_ips_mode        = "1"
    rtw_iqk_fw_offload  = "1"
    rtw_lbkmode         = "0"
    rtw_load_phy_file   = "68"
    rtw_low_power       = "0"
    rtw_lowrate_two_xmit= "1"
    rtw_lps_chk_by_tp   = "1"
    rtw_lps_level       = "0"
    rtw_max_bss_cnt     = "0"
    rtw_max_roaming_times= "2"
    rtw_mc2u_disable    = "0"
    rtw_mp_mode         = "0"
    rtw_network_mode    = "0"
    rtw_notch_filter    = "0"
    rtw_pci_aspm_enable = "0"
    rtw_phy_file_path   = "/lib/firmware/"
    rtw_pll_ref_clk_sel = "15"
    rtw_power_mgnt      = "2"
    rtw_powertracking_type= "64"
    rtw_pwrtrim_enable  = "1"
    rtw_qos_opt_enable  = "0"
    rtw_rf_config       = "8"
    rtw_rfintfs         = "2"
    rtw_rx_ampdu_amsdu  = "0"
    rtw_rx_ampdu_sz_limit_1ss= 
    rtw_rx_ampdu_sz_limit_2ss= 
    rtw_rx_ampdu_sz_limit_3ss= 
    rtw_rx_ampdu_sz_limit_4ss= 
    rtw_rx_stbc         = "1"
    rtw_rxgain_offset_2g= "0"
    rtw_rxgain_offset_5gh= "0"
    rtw_rxgain_offset_5gl= "0"
    rtw_rxgain_offset_5gm= "0"
    rtw_single_ant_path = "0"
    rtw_smart_ps        = "2"
    rtw_special_rf_path = "0"
    rtw_switch_usb_mode = "0"
    rtw_target_tx_pwr_2g_a= 
    rtw_target_tx_pwr_2g_b= 
    rtw_target_tx_pwr_2g_c= 
    rtw_target_tx_pwr_2g_d= 
    rtw_target_tx_pwr_5g_a= 
    rtw_target_tx_pwr_5g_b= 
    rtw_target_tx_pwr_5g_c= 
    rtw_target_tx_pwr_5g_d= 
    rtw_tsf_update_pause_factor= "200"
    rtw_tsf_update_restore_factor= "5"
    rtw_tx_ampdu_amsdu  = "2"
    rtw_tx_bw_mode      = "33"
    rtw_tx_pwr_by_rate  = "2"
    rtw_tx_pwr_lmt_enable= "2"
    rtw_uapsd_ac_enable = "0"
    rtw_uapsd_max_sp    = "0"
    rtw_usb_rxagg_mode  = "2"
    rtw_vcs_type        = "1"
    rtw_vht_enable      = "1"
    rtw_vht_rx_mcs_map  = "43690"
    rtw_vrtl_carrier_sense= "2"
    rtw_wifi_spec       = "0"
    rtw_wireless_mode   = "95"
    rtw_wmm_enable      = "1"
    rtw_wmm_smart_ps    = "2"

  Sections:
    .bss                = "0x0000000000000000"
    .data               = "0x0000000000000000"
    .exit.text          = "0x0000000000000000"
    .gnu.linkonce.this_module= "0x0000000000000000"
    .init.text          = "0x0000000000000000"
    .note.gnu.build-id  = "0x0000000000000000"
    .orc_unwind         = "0x0000000000000000"
    .orc_unwind_ip      = "0x0000000000000000"
    .parainstructions   = "0x0000000000000000"
    .rodata.str1.1      = "0x0000000000000000"
    .rodata.str1.8      = "0x0000000000000000"
    .rodata             = "0x0000000000000000"
    .smp_locks          = "0x0000000000000000"
    .strtab             = "0x0000000000000000"
    .symtab             = "0x0000000000000000"
    .text               = "0x0000000000000000"
    __bug_table         = "0x0000000000000000"
    __mcount_loc        = "0x0000000000000000"
    __param             = "0x0000000000000000"
ich@hp-laptop:~> 

Hi
Thanks :slight_smile: dang there are a lot!!! It will be interesting to see how the OP’s compare.

“Sauerland” has kindly provided that in post #12

But mine is the former Version git 20190810 not git20190817…
But there are only a few changes to androit and kernel 5.3…

I’m updating and restarting, but that will take a while.

Ah… OK, here’s the output from mine :slight_smile:

paul@HP255G7:~> systool -vm 8821ce
Module = "8821ce"

  Attributes:
    coresize            = "2473984"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    srcversion          = "BE31F416781BCA083295945"
    taint               = "O"
    uevent              = <store method only>
    version             = "v5.5.2_34066.20190614_COEX20180712-3232"

  Parameters:
    if2name             = "wlan%d"
    ifname              = "wlan%d"
    rtw_FileMaskEfuse   = "0"
    rtw_GLNA_type       = "0"
    rtw_OffEfuseMask    = "0"
    rtw_RFE_type        = "64"
    rtw_TxBBSwing_2G    = "255"
    rtw_TxBBSwing_5G    = "255"
    rtw_adaptivity_en   = "0"
    rtw_adaptivity_mode = "0"
    rtw_adaptivity_th_edcca_hl_diff= "0"
    rtw_adaptivity_th_l2h_ini= "0"
    rtw_ampdu_enable    = "1"
    rtw_amplifier_type_2g= "0"
    rtw_amplifier_type_5g= "0"
    rtw_ant_num         = "0"
    rtw_antdiv_cfg      = "2"
    rtw_antdiv_type     = "0"
    rtw_btcoex_enable   = "2"
    rtw_busy_thresh     = "40"
    rtw_bw_mode         = "33"
    rtw_ch_switch_offload= "0"
    rtw_channel         = "1"
    rtw_channel_plan    = "255"
    rtw_check_hw_status = "0"
    rtw_chip_version    = "0"
    rtw_country_code    = "��"
    rtw_decrypt_phy_file= "0"
    rtw_drv_ant_band_switch= "1"
    rtw_drv_log_level   = "4"
    rtw_dynamic_agg_enable= "1"
    rtw_en_gro          = "1"
    rtw_en_napi         = "1"
    rtw_enusbss         = "0"
    rtw_excl_chs        = 
    rtw_full_ch_in_p2p_handshake= "0"
    rtw_hiq_filter      = "1"
    rtw_ht_enable       = "1"
    rtw_hw_wps_pbc      = "0"
    rtw_hwpdn_mode      = "2"
    rtw_hwpwrp_detect   = "0"
    rtw_initmac         = "(null)"
    rtw_ips_mode        = "1"
    rtw_iqk_fw_offload  = "1"
    rtw_lbkmode         = "0"
    rtw_load_phy_file   = "68"
    rtw_low_power       = "0"
    rtw_lowrate_two_xmit= "1"
    rtw_lps_chk_by_tp   = "1"
    rtw_lps_level       = "0"
    rtw_max_bss_cnt     = "0"
    rtw_max_roaming_times= "2"
    rtw_mc2u_disable    = "0"
    rtw_mp_mode         = "0"
    rtw_network_mode    = "0"
    rtw_notch_filter    = "0"
    rtw_pci_aspm_enable = "0"
    rtw_phy_file_path   = "/lib/firmware/"
    rtw_pll_ref_clk_sel = "15"
    rtw_power_mgnt      = "2"
    rtw_powertracking_type= "64"
    rtw_pwrtrim_enable  = "1"
    rtw_qos_opt_enable  = "0"
    rtw_rf_config       = "8"
    rtw_rfintfs         = "2"
    rtw_rx_ampdu_amsdu  = "0"
    rtw_rx_ampdu_sz_limit_1ss= 
    rtw_rx_ampdu_sz_limit_2ss= 
    rtw_rx_ampdu_sz_limit_3ss= 
    rtw_rx_ampdu_sz_limit_4ss= 
    rtw_rx_stbc         = "1"
    rtw_rxgain_offset_2g= "0"
    rtw_rxgain_offset_5gh= "0"
    rtw_rxgain_offset_5gl= "0"
    rtw_rxgain_offset_5gm= "0"
    rtw_single_ant_path = "0"
    rtw_smart_ps        = "2"
    rtw_special_rf_path = "0"
    rtw_switch_usb_mode = "0"
    rtw_target_tx_pwr_2g_a= 
    rtw_target_tx_pwr_2g_b= 
    rtw_target_tx_pwr_2g_c= 
    rtw_target_tx_pwr_2g_d= 
    rtw_target_tx_pwr_5g_a= 
    rtw_target_tx_pwr_5g_b= 
    rtw_target_tx_pwr_5g_c= 
    rtw_target_tx_pwr_5g_d= 
    rtw_tsf_update_pause_factor= "200"
    rtw_tsf_update_restore_factor= "5"
    rtw_tx_ampdu_amsdu  = "2"
    rtw_tx_bw_mode      = "33"
    rtw_tx_pwr_by_rate  = "2"
    rtw_tx_pwr_lmt_enable= "2"
    rtw_uapsd_ac_enable = "0"
    rtw_uapsd_max_sp    = "0"
    rtw_usb_rxagg_mode  = "2"
    rtw_vcs_type        = "1"
    rtw_vht_enable      = "1"
    rtw_vht_rx_mcs_map  = "43690"
    rtw_vrtl_carrier_sense= "2"
    rtw_wifi_spec       = "0"
    rtw_wireless_mode   = "95"
    rtw_wmm_enable      = "1"
    rtw_wmm_smart_ps    = "2"

  Sections:
    .bss                = "0x0000000000000000"
    .data               = "0x0000000000000000"
    .exit.text          = "0x0000000000000000"
    .gnu.linkonce.this_module= "0x0000000000000000"
    .init.text          = "0x0000000000000000"
    .note.gnu.build-id  = "0x0000000000000000"
    .orc_unwind         = "0x0000000000000000"
    .orc_unwind_ip      = "0x0000000000000000"
    .parainstructions   = "0x0000000000000000"
    .rodata.str1.1      = "0x0000000000000000"
    .rodata.str1.8      = "0x0000000000000000"
    .rodata             = "0x0000000000000000"
    .smp_locks          = "0x0000000000000000"
    .strtab             = "0x0000000000000000"
    .symtab             = "0x0000000000000000"
    .text               = "0x0000000000000000"
    __bug_table         = "0x0000000000000000"
    __mcount_loc        = "0x0000000000000000"
    __param             = "0x0000000000000000"

paul@HP255G7:~> 

Hi
So both outputs are the same…

Can you post the output from;


/sbin/modinfo 8821ce

This should give some descriptions on the parameters, looking for any power, authentication ot timeout options, then need to investigate more on potential tweaks.

paul@HP255G7:~> /sbin/modinfo 8821ce
filename:       /lib/modules/4.12.14-lp151.28.13-default/updates/8821ce.ko
version:        v5.5.2_34066.20190614_COEX20180712-3232
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
suserelease:    openSUSE Leap 15.1
srcversion:     BE31F416781BCA083295945
alias:          pci:v000010ECd0000C82Bsv*sd*bc*sc*i*
alias:          pci:v000010ECd0000C82Asv*sd*bc*sc*i*
alias:          pci:v000010ECd0000C821sv*sd*bc*sc*i*
depends:        cfg80211
retpoline:      Y
vermagic:       4.12.14-lp151.28.13-default SMP mod_unload modversions 
sig_id:         PKCS#7
signer:         home:Sauerland OBS Project
sig_key:        30:57:31:23:30:21:06:03:55:04:03:0C:1A:68:6F:6D:65:3A:53:61:
                75:65:72:6C:61:6E:64:20:4F:42:53:20:50:72:6F:6A:65:63:74:31:
                30:30:2E:06:09:2A:86:48:86:F7:0D:01:09:01:16:21:68:6F:6D:65:
                3A:53:61:75:65:72:6C:61:6E:64:40:62:75:69:6C:64:2E:6F:70:65:
                6E:73:75:73:65:2E:6F:72:67:02:09:00:B1:7C:31:01:2A:80:C9:90
sig_hashalgo:   sha256
signature:      1C:AA:46:BA:52:1B:F6:FA:DC:66:57:5E:B3:36:E7:5C:46:9A:5F:EB:
                00:84:5B:D0:68:A5:85:1D:4C:3B:EE:B1:66:05:88:22:0F:BF:EC:D4:
                7A:C4:48:3D:F9:13:5D:E6:7A:72:0E:1F:A6:F3:CA:E8:35:44:13:A0:
                35:5E:B2:92:CC:8A:95:72:07:CE:78:3B:DB:00:72:D6:7A:8E:94:77:
                48:87:AE:F2:E8:8F:02:70:68:A8:61:15:B5:D5:8B:BF:3C:C0:AF:A9:
                AA:F6:16:F3:CC:65:F9:93:14:47:72:2B:AE:A2:AB:92:3D:0A:BF:A8:
                9F:11:E0:17:E7:3D:4D:A1:F2:39:1F:81:0D:E3:5C:B7:D0:A8:C9:D5:
                9C:A8:ED:8D:8A:6D:64:A3:8C:8A:91:B2:E4:AA:59:EC:6B:19:05:51:
                DF:DF:BC:59:C1:EE:FC:7D:36:BD:D4:AE:67:25:4E:11:17:BE:2F:FE:
                4D:9B:60:3F:FC:B8:84:8F:93:69:21:30:7B:8A:F5:2F:74:19:50:C6:
                2F:87:B9:F3:06:11:A1:1A:20:C0:F5:F1:68:80:E0:DF:C7:6D:7C:36:
                34:9C:87:4A:76:DB:87:C6:21:F4:93:41:38:96:59:D2:27:6D:FD:DC:
                17:60:02:61:69:5F:C0:EC:63:42:6C:44:C4:BD:D7:62
parm:           rtw_wireless_mode:int
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_lps_level:The default LPS level (int)
parm:           rtw_lps_chk_by_tp:int
parm:           rtw_max_bss_cnt:int
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_dynamic_agg_enable: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_rx_ampdu_sz_limit_1ss:RX AMPDU size limit for 1SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_2ss:RX AMPDU size limit for 2SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_3ss:RX AMPDU size limit for 3SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_4ss:RX AMPDU size limit for 4SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_vht_enable:int
parm:           rtw_vht_rx_mcs_map:VHT RX MCS map (uint)
parm:           rtw_rf_config:int
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_btcoex_enable:BT co-existence on/off, 0:off, 1:on, 2:by efuse (int)
parm:           rtw_ant_num:Antenna number setting, 0:by efuse (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_uapsd_max_sp:int
parm:           rtw_uapsd_ac_enable:int
parm:           rtw_wmm_smart_ps: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_rx_ampdu_amsdu:int
parm:           rtw_tx_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit: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_single_ant_path: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_pci_aspm_enable:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable: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_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_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_lmt_enable: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_tsf_update_pause_factor:num of bcn intervals to stay TSF update pause status (int)
parm:           rtw_tsf_update_restore_factor:num of bcn intervals to stay TSF update restore status (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_en_napi:int
parm:           rtw_en_gro:int
parm:           rtw_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int
paul@HP255G7:~> 

One thing I will emphasise again, is it’s only random authentication failures, once connected to the AP I have no problems at all.

Appreciate the help on this, just to let you know I’m away shortly and won’t now pick up on this until Monday.

One thing I will emphasise again, is it’s only random authentication failures, once connected to the AP I have no problems at all.

Same here, and I think, its not the driver…

I think, its networkmanager.

Maybe use also the Frirmware from my Repo:

zypper in -f kernel-firmware