The external WiFi adapter you bought is not compatible with free systems (the
firmware is nonfree), because the chipset is Ralink:
https://wikidevi.com/wiki/D-Link_DWA-140_rev_D1
https://wireless.wiki.kernel.org/en/users/Drivers/rt2800usb#device_firmware
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rt2870.bin
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.ralink-firmware.txt
I recommend Technoethical WiFi adapters and cards:
https://tehnoetic.com/adapters
The WiFi card could solve your problem permanently, provided you can replace
the nonfree BIOS on your laptop. AFAIK, there is no free BIOS replacement for
the X220.