[FS#172] ar71xx: USB WiFi devices are enumerated before internal ath9k SOC device.

LEDE Bugs lede-bugs at lists.infradead.org
Tue Sep 13 00:46:35 PDT 2016


A new Flyspray task has been opened.  Details are below. 

User who did this - David Thornley (thornley-touchstar) 

Attached to Project - LEDE Project
Summary - ar71xx: USB WiFi devices are enumerated before internal ath9k SOC device.
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - 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.



More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=172



More information about the lede-bugs mailing list