nl80211: fix issues with renamed wiphy and multiple phy per device
authorFelix Fietkau <nbd@nbd.name>
Fri, 14 Oct 2022 08:59:07 +0000 (10:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Oct 2022 08:59:08 +0000 (10:59 +0200)
commit0496c722f1d798789d9280d9e357f87b920349eb
treefe2e3aa4311b0ec80f71d23ddf8c2633c297504d
parent4a43b0d40ba50a21de1d47e7bf0f759be9cf646a
nl80211: fix issues with renamed wiphy and multiple phy per device

Remove the assumption that phy names follow the format phy%d and instead look
up the phy index from sysfs properly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
iwinfo_nl80211.c