Library to access wireless devices, inspired from OpenWRT without UCI
Find a file
Jo-Philipp Wich fac0787ab0
devices: add support for declaring compatible matched devices
Some device have embedded wifi card that are not connected with usb or
internall with pci. Such device have fake device_id and only the
vendor_id actually reflect something real but internally they don't have
any id and are just matched by the node compatible binding in DT.

We currently match this with a big if-else to match the single devices
but this can be improved and be matched directly in devices.txt

Rework this so that we can drop the big if-else and move the matching
to devices.txt

When a device is matched using compatible in iwinfo the hardware will be
flagged as embedded and won't print empty ids.

Update devices.txt by migrating all the compatible matching device from
fake id to compatible matching.

Tested-by: Christian Marangi <ansuelsmth@gmail.com> # ipq4019
Co-developed-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Tested-by: Robert Marko <robimarko@gmail.com> # ipq8074
Reviewed-by: Andre Heider <a.heider@gmail.com>
2023-01-10 00:26:50 +01:00
api nl80211: update the kernel header nl80211.h 2022-12-15 23:42:32 +01:00
include devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
COPYING Initial commit 2014-10-05 19:56:27 +02:00
devices.txt devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
iwinfo_cli.c devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
iwinfo_lib.c lib: add IWINFO_80211_COUNT and IWINFO_80211_NAMES 2022-12-16 00:09:07 +01:00
iwinfo_lua.c fix -Wdangling-else warnings 2022-12-15 20:07:49 +01:00
iwinfo_madwifi.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
iwinfo_nl80211.c devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
iwinfo_nl80211.h nl80211: fix code calculating average signal and rate 2018-04-09 07:30:37 +02:00
iwinfo_utils.c devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
iwinfo_wext.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
iwinfo_wext.h Initial commit 2014-10-05 19:56:27 +02:00
iwinfo_wext_scan.c wext_scan: fix possibly unterminated ifname string 2015-10-29 10:53:32 +01:00
iwinfo_wl.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
Makefile enable useful compiler warnings via -Wall 2022-12-15 20:07:27 +01:00