I just installed kali linux release 2022.1 on my Lenevo G560. I am using a realtek adapter to connect to wifi but both the commands ifconfig wlan1 up and sudo ifconfig wlan1 up are not working. It displays the output SIOCSIFFLAGS: Operation not permitted
My iwconfig output:
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11 ESSIDff/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thrff Fragment thrff
Power Managementff
wlan1 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retryff RTS thrff Fragment thrff
Power Managementff
Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
My ifconfig output:
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:75:08:5d:a4:82 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
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9772 bytes 793424 (774.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9772 bytes 793424 (774.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0