nl80211: simplify iterating over phy's devices
authorAndre Heider <a.heider@gmail.com>
Sat, 24 Dec 2022 10:53:36 +0000 (11:53 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 20 Jan 2023 16:26:58 +0000 (17:26 +0100)
commit6194aaf05244241d2f51c471a43584f8d80b64ce
treef56faaca64f66c2b76380b8da892e9870466080e
parentacbf4fe47d8f6dca340ff05c84779bf4fa16b5dd
nl80211: simplify iterating over phy's devices

There's no need to iterate over all devices in /sys/class/net and check
if the phy index matches, sysfs already provides per phy devices.

Signed-off-by: Andre Heider <a.heider@gmail.com>
iwinfo_nl80211.c