T61 problem connecting wifi to home router

This ThinkPad T61 dual-boots openSUSE Leap 42.3 and Windows 10. For wifi, it uses its internal intel 4965 adapter, or a Belkin USB adapter.
In Leap, the intel wifi connects to our building network correctly, but has problems conecting to our home router. It connects to home only right after a boot, but will not connect after the computer sleeps and wakes. Also in Leap, the USB adapter always connects to both networks correctly, even after system sleep.
In Windows, both adapters always connect to both networks correctly, even after system sleep.
Hardware info is

howard@T61oS423:~> sudo /usr/sbin/hwinfo --wlan
[sudo] password for root: 
23: PCI 300.0: 0282 WLAN controller                             
  [Created at pci.378]
  Unique ID: y9sn.tEff+dB1XD9
  Parent ID: qTvu.czCARouY8b4
  SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:03:00.0
  SysFS BusID: 0000:03:00.0
  Hardware Class: network
  Model: "Intel PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x4230 "PRO/Wireless 4965 AG or AGN [Kedron] Network Connection"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1010 
  Revision: 0x61
  Driver: "iwl4965"
  Driver Modules: "iwl4965"
  Device File: wlan0
  Features: WLAN
  Memory Range: 0xdf3fe000-0xdf3fffff (rw,non-prefetchable)
  IRQ: 32 (no events)
  HW Address: 00:1f:3b:8b:89:4b
  Permanent HW Address: 00:1f:3b:8b:89:4b
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.745 5.765 5.785 5.805 5.825
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d00004230sv00008086sd00001010bc02sc80i00"
  Driver Info #0:
    Driver Status: iwl4965 is active                                                                                                                                               
    Driver Activation Cmd: "modprobe iwl4965"                                                                                                                                      
  Config Status: cfg=no, avail=yes, need=no, active=unknown                                                                                                                        
  Attached to: #10 (PCI bridge)                                                                                                                                                    
                                                                                                                                                                                   
34: USB 00.0: 0282 WLAN controller                                                                                                                                                 
  [Created at usb.122]                                                                                                                                                             
  Unique ID: 2jVo.qgkBEPGscT7                                                                                                                                                      
  Parent ID: BSFT.9T1GDCLyFd9                                                                                                                                                      
  SysFS ID: /devices/pci0000:00/0000:00:1d.7/usb7/7-2/7-2:1.0                                                                                                                      
  SysFS BusID: 7-2:1.0                                                                                                                                                             
  Hardware Class: network                                                                                                                                                          
  Model: "Belkin F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"                                                                                                        
  Hotplug: USB                                                                                                                                                                     
  Vendor: usb 0x050d "Belkin Components"                                                                                                                                           
  Device: usb 0x110a "F9L1101v2 802.11abgn Wireless Adapter [Realtek RTL8192DU]"                                                                                                   
  Serial ID: "00e04c000001"                                                                                                                                                        
  Driver: "rtl8192du"                                                                                                                                                              
  Driver Modules: "8192du"
  Device File: wlan1
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 94:10:3e:6a:fa:59
  Permanent HW Address: 94:10:3e:6a:fa:59
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 5.18 5.2 5.22 5.24 5.745 5.765 5.785 5.805 5.825
  WLAN bitrates: 1 2 5.5 11
  WLAN encryption modes: TKIP CCMP
  WLAN authentication modes: open wpa-psk wpa-eap
  Module Alias: "usb:v050Dp110Ad0000dc00dsc00dp00icFFiscFFipFFin00"
  Driver Info #0:
    Driver Status: 8192du is active
    Driver Activation Cmd: "modprobe 8192du"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #33 (Hub)
howard@T61oS423:~> 


iwconfig output when using the Belkin adapter is

howard@T61oS423:~> sudo iwconfig
[sudo] password for root: 
tun0      no wireless extensions.

lo        no wireless extensions.

wlan1     IEEE 802.11an  ESSID:"howardcathy_AN5"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.765 GHz  Access Point: B0:C7:45:75:5A:31   
          Bit Rate:130 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=80/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

wlan0     IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=14 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
eth0      no wireless extensions.

howard@T61oS423:~> 


Journal entries from failed attempt to use the intel adapter to connect to the home router are at https://paste.opensuse.org/21992764

It never gets to

associating -> 4-way handshake

that happens when successfully connecting to one of the networks.
Any ideas what needs to change to get the internal intel adapter to consistently connect to the home router?
Thanks,
Howard

I don’t have a definitive answer here, but what happens if you reload the iwl4965 driver after resuming… does that help get connected again?

If that works, you could try creating a custom script to unload the driver before suspending, and load it again on resume perhaps…
https://wiki.archlinux.org/index.php/Power_management#Hooks_in_.2Fusr.2Flib.2Fsystemd.2Fsystem-sleep
https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/

I did

sudo modprobe iwl4965

after the system woke, and it did connect to the home router. It takes a lot longer with the intel than with the Belkin.
You seem to be on to something. I’ll do more testing.
Thanks,
Howard

The intel connection seems to have been a fluke. It has happened on rare occasions in the past, but I have been unable to repeat it now. I may have to use the Belkin.
Regards,
Howard

Try unloading and loading the module after a resume

modprobe -r iwl4965; modprobe iwl4965

After a resume, I tried to immediately connect with the 4965; it failed. I then did

modprobe -r iwl4965; modprobe iwl4965

and tried to connect. It failed again. Jounal entries for all that are at SUSE Paste
Searching showed that the Linux driver for intel 4965 has been a problem for at least the last 10 years. I have not yet found a good solution documented.
Regards,
Howard