ar71xx: USB WiFi devices are enumerated before internal ath9k SOC device.
Username: David Thornley
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=172
Reproduced on AR9331, custom board.
If you plug a secondary usb wifi module, it will become phy0 and consequently wlan0 with the internal module loaded after as phy1 and wlan1 respectively. I would have thought the expected behaviour is for the internal SOC module to be phy0 - wlan0.
Noted that /etc/modules.d currently has “ath9k” referenced without a numeric prefix, but I noticed that ath10k actually set the order prefix to 55, which does address this issue (after I changed ath9k).
Referring to this line:
https://github.com/lede-project/source/blob/master/package/kernel/mac80211/Makefile#L236
which uses AutoProbe resulting in “ath9k” in /etc/modules.d
however ath10k is using AutoLoad setting the prefix load order to 55, see here:
https://github.com/lede-project/source/blob/master/package/kernel/mac80211/Makefile#L279
This is an easy fix and I am happy to submit a pull request for it, but I just want to be sure that it won’t introduce any other problems.