I used the following commands
Ifconfig wlan0 down
Iwconfig wlan0 mode monitor
Ifconfig wlan0 up
The first two commands do not show any error. But when I run the third command kali gets frozen. Tried after doing hardreboot but getting the same problem when running these commands please help