diff options
-rw-r--r-- | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index 92a9fce744..06f3b8b449 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -101,7 +101,9 @@ detect_mac80211() { fi if [ -n "$path" ]; then path="${path##/sys/devices/}" - path="${path##platform/}" + case "$path" in + platform*/pci*) path="${path##platform/}";; + esac dev_id=" option path '$path'" else dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)" |