aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-21 15:55:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-21 15:55:35 +0000
commit93d78a7faecd198a412dfed294a70ef0e2ad1b48 (patch)
treecbe94f75b3ee5dab37586618486acd3dc9ef28b8 /package
parentdcee094fc3840ff31a220dbafeb491c913c49f68 (diff)
downloadmaster-187ad058-93d78a7faecd198a412dfed294a70ef0e2ad1b48.tar.gz
master-187ad058-93d78a7faecd198a412dfed294a70ef0e2ad1b48.tar.bz2
master-187ad058-93d78a7faecd198a412dfed294a70ef0e2ad1b48.zip
mac80211: only strip the platform/ prefix from path for pci devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48440 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mac80211/files/lib/wifi/mac80211.sh4
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)"