aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files
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
commit145a6e9db9d2c9637ee908493a92c16a794d249f (patch)
tree10c5931bf07f98c257fdd206df3d28259b3a3487 /package/kernel/mac80211/files
parentd13a1ce9d7a9660f5cad59bee41cc38f0260708c (diff)
downloadupstream-145a6e9db9d2c9637ee908493a92c16a794d249f.tar.gz
upstream-145a6e9db9d2c9637ee908493a92c16a794d249f.tar.bz2
upstream-145a6e9db9d2c9637ee908493a92c16a794d249f.zip
mac80211: only strip the platform/ prefix from path for pci devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48440
Diffstat (limited to 'package/kernel/mac80211/files')
-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)"