Kismet Wireless

Kismet Forums

 

Posted by:markojic
Subject:ERROR: Failed to read a packet from wlan1. The interface is no longer up.
Date:17:28:22 04/07/2017

> > Hi,
> >
> > Everything is working just fine for a while, but suddenly (after ~5 minutes) this error occurs:
> >
> > ERROR: Failed to read a packet from wlan1. The interface is no longer up. Usually this happens when a DHCP client daemon is left running and times out, turning off the interface. See the Kismet README troubleshooting section for more information.
> > INFO: Saved data files.
> >
> > OS: Kali Linux armv71
> > Kismet version: 2016-07-R1
> > WLAN device: Atheros Communications, Inc. AR9271 802.11n (lsusb report)
> >
> > Thx!
>
> You've probably left networkmanager running - either networkmanager, wpasupplicant, wicd, or some other network managing daemon is shutting down the monitor interface trying to be helpful; make sure none of them are running.
>
> Alternately, your USB device is crashing - check dmesg for errors - but my bet is it's a network manager problem.
>
> -m

This is dmesg after unplugging/plugging in my WiFi USB adapter:

[ 2266.592093] usb 1-1.2: USB disconnect, device number 4
[ 2266.818451] usb 1-1.2: ath9k_htc: USB layer deinitialized
[ 2268.337912] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 2268.458611] usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=9271
[ 2268.458632] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 2268.458645] usb 1-1.2: Product: USB2.0 WLAN
[ 2268.458657] usb 1-1.2: Manufacturer: ATHEROS
[ 2268.458669] usb 1-1.2: SerialNumber: 12345
[ 2268.459698] usb 1-1.2: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[ 2268.739256] usb 1-1.2: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[ 2268.998760] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[ 2269.420940] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.4
[ 2269.420962] ath9k_htc 1-1.2:1.0: FW RMW support: On
[ 2269.420974] ath: EEPROM regdomain: 0x809c
[ 2269.420983] ath: EEPROM indicates we should expect a country code
[ 2269.420992] ath: doing EEPROM country->regdmn map search
[ 2269.421000] ath: country maps to regdmn code: 0x52
[ 2269.421027] ath: Country alpha2 being used: CN
[ 2269.421036] ath: Regpair used: 0x52
[ 2269.433346] ieee80211 phy2: Atheros AR9271 Rev:1
[ 2269.518749] cfg80211: Current regulatory domain intersected:
[ 2269.518797] cfg80211: DFS Master region: unset
[ 2269.518807] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 2269.518823] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 2269.518836] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2300 mBm), (N/A)
[ 2269.518849] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2300 mBm), (0 s)
[ 2269.518862] cfg80211: (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[ 2269.518875] cfg80211: (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 2269.518887] cfg80211: (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[ 2269.519975] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2269.943146] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2270.529216] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2270.628819] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready

ifconfig before running Kismet:

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:f2:f2:99 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 1 (Local Loopback)
RX packets 19028 bytes 5424538 (5.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 19028 bytes 5424538 (5.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::b0ab:42a3:d9cf:afba prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:a7:a7:cc txqueuelen 1000 (Ethernet)
RX packets 46977 bytes 4585397 (4.3 MiB)
RX errors 0 dropped 247 overruns 0 frame 0
TX packets 45932 bytes 29333434 (27.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 96:3c:85:50:e3:39 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

ifconfig while Kismet is running:

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:f2:f2:99 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 1 (Local Loopback)
RX packets 17739 bytes 5021136 (4.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17739 bytes 5021136 (4.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::b0ab:42a3:d9cf:afba prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:a7:a7:cc txqueuelen 1000 (Ethernet)
RX packets 38897 bytes 3905085 (3.7 MiB)
RX errors 0 dropped 247 overruns 0 frame 0
TX packets 38390 bytes 23945563 (22.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
unspec 82-E3-63-BD-15-53-30-30-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 11938 bytes 1021532 (997.5 KiB)
RX errors 0 dropped 9509 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1mon: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
unspec EC-08-6B-11-24-92-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 73322 bytes 6422125 (6.1 MiB)
RX errors 0 dropped 37753 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

And ifconfig after Kismet is closed (after the error message):

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:f2:f2:99 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 1 (Local Loopback)
RX packets 19028 bytes 5424538 (5.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 19028 bytes 5424538 (5.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::b0ab:42a3:d9cf:afba prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:a7:a7:cc txqueuelen 1000 (Ethernet)
RX packets 45564 bytes 4457456 (4.2 MiB)
RX errors 0 dropped 247 overruns 0 frame 0
TX packets 44870 bytes 28776289 (27.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1mon: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
unspec EC-08-6B-11-24-92-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 81533 bytes 7234114 (6.8 MiB)
RX errors 0 dropped 45964 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I've realized that I am not facing the issue on the first run of the Kismet. If I close it down, and run it again, then the error appears. The solution is to unplug/plug in the WiFi USB adapter. Somehow wlan1 stay in monitor mode, is this normal behavior?


Reply to this message