From d9b20a6f351c50d206fb6d2f965a16318c0cecf7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 21 Jan 2016 13:28:09 +0000 Subject: [PATCH] mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions Signed-off-by: Felix Fietkau SVN-Revision: 48426 --- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 1 + 1 file changed, 1 insertion(+) 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)" -- 2.25.1