aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-21 13:28:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-21 13:28:09 +0000
commit8286b56f4123aa8250d3d35a08dccb4575eaa31f (patch)
tree017d6df3680d6ce34bc82a281a504dade03b5497 /package
parent67baa7498c06a22b67334c562548dc36e339b89e (diff)
downloadmaster-187ad058-8286b56f4123aa8250d3d35a08dccb4575eaa31f.tar.gz
master-187ad058-8286b56f4123aa8250d3d35a08dccb4575eaa31f.tar.bz2
master-187ad058-8286b56f4123aa8250d3d35a08dccb4575eaa31f.zip
mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48426 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mac80211/files/lib/wifi/mac80211.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index 3fc39c26f2..1be99ec22b 100644
--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@ -101,6 +101,7 @@ detect_mac80211() {
fi
if [ -n "$path" ]; then
path="${path##/sys/devices/}"
+ path="${path##platform/}"
dev_id=" option path '$path'"
else
dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)"