Unable to connect to wifi on the hikey960 board with debian image on it


#1

I have a debian image running on my board.

root@hikey960:/home/shunya# uname -r
4.14.0-rc7-linaro-hikey960
root@hikey960:/home/shunya# uname -a
Linux hikey960 4.14.0-rc7-linaro-hikey960 #1 SMP PREEMPT Wed Mar 14 17:54:05 IST 2018 aarch64 GNU/Linux

My wifi works fine when I first connected, but when I changed it and tried to connect at a different place, I do not get my list of available wifi networks.

root@hikey960:/home/shunya# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2094 bytes 169358 (165.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2094 bytes 169358 (165.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 6a:b5:3d:9d:f4:f2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@hikey960:/home/shunya# nmcli device status
DEVICE TYPE STATE CONNECTION
wlan0 wifi unavailable –
lo loopback unmanaged –
root@hikey960:/home/shunya#

It worked once and I was able to do installations, but it does not work later at a different place/

Can anyone help in proceeding with this issue.