diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-21 13:28:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-21 13:28:09 +0000 |
commit | d9b20a6f351c50d206fb6d2f965a16318c0cecf7 (patch) | |
tree | b8950c5e94db0165300b0708da299ab6e2d8defa /package/kernel | |
parent | 95965cd81349bbbfe99414a74181c07d9c42f4aa (diff) | |
download | mtk-20170518-d9b20a6f351c50d206fb6d2f965a16318c0cecf7.zip mtk-20170518-d9b20a6f351c50d206fb6d2f965a16318c0cecf7.tar.gz mtk-20170518-d9b20a6f351c50d206fb6d2f965a16318c0cecf7.tar.bz2 |
mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48426
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 1 |
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 3fc39c2..1be99ec 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)" |