hcxdumptool: Errors (qcacld-3.0 driver)

Device: Android with qcacld-3.0 driver

Before running the tool, no operations were performed to change the mode of the internal wlan interface.

hcxdumptool -I

wlan interfaces:
phy0 d0497ca2bfb8 wlan0 (driver:cnss_pci)
phy0 d2497c24bfb8 p2p0 (driver:cnss_pci)
phy0 d2497c25bfb8 wifi-aware0 (driver:cnss_pci)

hcxdumptool -i wlan0 --check_driver

initialization of hcxdumptool 6.2.6 (depending on the capabilities of the device, this may take some time)...
warning: interface wlan0 (phy0) is shared
hcxdumptool may not work as expected on shared physical devices

starting driver test...
failed to detect wlan interface: interface possible not comected
driver doesn't support CFG80211
kernel possible complied without Wireless Extensions (expected: CONFIG_CFG80211_WEXT=y and CONFIG_CFG80211_WEXT_EXPORT=y): Operation not supported
warning: failed to init socket

terminating...
1 driver error encountered
usually this error is related to pselect() after SIGTERM has been received
ERRORs < 10 are related to a slow initialization and can be ignored
failed to restore old SIOCSIWMODE: No such device
failed to restore old SIOCSIFFLAGS and to bring interface up: No such device

hcxdumptool -i wlan0

initialization of hcxdumptool 6.2.6 (depending on the capabilities of the device, this may take some time)...

warning: interface wlan0 (phy0) is shared
hcxdumptool may not work as expected on shared physical devices

failed to set monitor mode, ioctl(SIOCSIWMODE) not supported by driver: Operation not supported
warning: failed to init socket

terminating...

Initially, the necessary configs (CONFIG_CFG80211_WEXT=y and CONFIG_CFG80211_WEXT_EXPORT=y) were not included in the system kernel:

After including them in /proc/config.gz we have:

# CONFIG_CFG80211_WEXT is not set

Therefore, suspicions fell on the adapter driver. I looked at the information on the qcacld-3.0 driver and found this issue: https://github.com/aircrack-ng/aircrack-ng/issues/2179

There was a discussion that the SIOCSIWMODE call was not implemented.

In file https://github.com/EssentialOpenSource/qcacld-3.0/blob/master/core/hdd/src/wlan_hdd_wext.c we can see:

static const iw_handler we_handler[] = {
                ...
  NULL, /* SIOCSIWMODE */
                ...
}

What can you advise to do in this case?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Ok, thanks. Now we can close this report, because I don’t see a chance here.