无法使用我的USB wifi适配器连接到wifi

I am using ubuntu server 20.04 and I don't have a lan connection as I am using my old pc as a server. I have a usb wifi adapter but am unable to connect to my wifi with it. when I type iwconfig I see that my wlan interface's i.e. usb adapter's access point : Not-Associated. So I tried wpa_supplicant to solve that but I got the error when I typed sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlx------- where "wlx-------" is my adapters logical name n180211: Driver does not support authentication/association or connect commands n180211: deinit ifname=wlx------- disables_11b_rates=0 wlx------- : Failed to initialize driver interface please help how do I fix this and get my server to connect to internet through my wifi my wireless card is Realtek Semiconductor Corp. RTL8188SU 802.11n WLAN Adapter