[FS#172] ar71xx: USB WiFi devices are enumerated before internal ath9k SOC device.
LEDE Bugs
lede-bugs at lists.infradead.org
Wed Sep 14 15:55:15 PDT 2016
The following task has a new comment added:
FS#172 - ar71xx: USB WiFi devices are enumerated before internal ath9k SOC device.
User who did this - David Thornley (thornley-touchstar)
----------
We will definitely change our scripts, and understand that the device path is a better methodology. I just thought that intuitively it makes sense for the built-in wifi adapter to be probed before anything plugged into USB.
I had a brief look at the /sys/ device path, and since wlanX is derived from phyX. There doesn't seem to be a reliable way to reference the internal wifi adapter without knowing this fact (ie. that it is phy1 as opposed to phy0 with the current probe ordering). I might just be missing something though...
You might be able to enumerate through finding "/sys/devices/platform/ar933x_wmac/ieee80211/phy*" but I figure what is needed is a reliable single path (name) that doesn't require any iteration/enumeration.
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=172#comment433
More information about the lede-bugs
mailing list