kismetwireless / kismet

Github mirror of official Kismet repository
Other
1.49k stars 292 forks source link

Problem with Realtek 8211cu #525

Open LatinSuD opened 3 days ago

LatinSuD commented 3 days ago

I got a Realtek USB card and tried this driver: https://github.com/morrownr/8821cu-20210916

The driver has got a couple issues that affect Kismet.

  1. When the driver is asked for mode using mac80211 api it returns mode 1 (NL80211_IFTYPE_ADHOC ?) despite being in Monitor mode. It should report mode 6 (NL80211_IFTYPE_MONITOR) but it doesn't. (If asked through WEXT it will report Monitor mode correctly).

  2. When you try to create a vif the driver kind of hangs. Everything kind of works, but all interface commands hang "ifconfig", "iwconfig", "iw", etc.

I think that none of the existing kismet workarounds would work here. My workaround is to pretend that the card is not compatible with mac80211, by inserting this line quite soon in the source: mac80211_socket = NULL;

Oh I just found an easy workaround. I have to tell the driver to be in monitor mode through mac80211 interface before invoking kismet: iw dev eth3 set monitor none