From: nbd Date: Thu, 21 Jan 2016 13:28:09 +0000 (+0000) Subject: mac80211: strip platform/ prefix from device path to improve compatibility between... X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;ds=sidebyside;h=ad8955526c25dc0217ccb2236ceeabc12837ed6c;p=openwrt-working-2016%2F.git mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48426 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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)"