Ubuntu 20.04 - network DISABLED

I have Ubuntu 20.04 on a Dell XPS-13-9370. Things were fine but today my wifi stopped working after I disconnected of a vpn. I don't have dual boot, only ubuntu.

From the Wi-Fi settings panel I see this error: "No Wi-Fi Adapter Found".

Here is the output of the command lshw -C net:

nameen@nameen-XPS-13-9370- /home/nameen> sudo lshw -c net
  *-network DISABLED        
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 32
       serial: 9c:b6:d0:92:4d:01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=5.4.0-73-generic firmware=WLAN.RM.4.4.1-00140-QCARMSWPZ-1 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:139 memory:dc000000-dc1fffff
nameen@nameen-XPS-13-9370- /home/nameen>

Note that when I connect with an ethernet cable the network is also set as DISBALED.

The command ip addr returns:

nameen@nameen-XPS-13-9370- /home/nameen> ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 9c:b6:d0:92:4d:01 brd ff:ff:ff:ff:ff:ff
nameen@nameen-XPS-13-9370- /home/nameen>

And the command cat /etc/netplan/*.yaml returns:

nameen@nameen-XPS-13-9370- /home/nameen> cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
nameen@nameen-XPS-13-9370- /home/nameen>

I tried the solution reported here: Ubuntu 18.04 missing wired connections in settings but it did not work.

Could you let me know what you understand of my problem and what should I do?

Thank you

Some more information:

rfkill list all gives:

0: hci0: Bluetooth 
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

The command sudo ifconfig wlp2s0 up does not really change the state of the network. Here is what ip addr says after this ifconfig command:

nameen@nameen-XPS-13-9370- /home/nameen> ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp2s0: <NO-CARRIER, BROADCAST,MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 9c:b6:d0:92:4d:01 brd ff:ff:ff:ff:ff:ff

cat /etc/network/interfaces says:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

Solution 1:

Here is how my problem was solved. In a terminal I typed:

sudo service network-manager stop

Then, I edited this file /var/lib/NetworkManager/NetworkManager.state (with sudo power)

And I changed this line:

NetworkingEnabled=false

to this:

NetworkingEnabled=true

And finally, in a terminal I typed:

sudo service network-manager restart

No need to reboot, but to check that the effect is permanent it is better to.