On 29/04/2025 at 11:40, Marcin Owsiany wrote:
These commands yield the same output on both P1 Gen7 (WiFi 7 I assume) and P1 Gen3 (I assume not WiFi 7, because wifi worked in netcfg back when I installed Debian on it)
Thank you, this is what I expected.
Eyeballing these device directories from both laptops side by side did not reveal anything that could be used to distinguish wifi7 from earlier versions, but maybe I missed something.
These tests would happen only if the interface does not support legacy wireless extensions (wext). The logic would be (pseudo-code):
if $interface supports legacy wireless extensions (wext) type = supported_wireless else if /sys/class/net/$interface/wireless exists or /sys/class/net/$interface/uevent contains "DEVTYPE=wlan" or /sys/class/net/$interface/type = "801" (802.11) type = unsupported_wireless else type = wired