Author: nbd Date: 2016-01-21 14:28:09 +0100 (Thu, 21 Jan 2016) New Revision: 48426
Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh Log: mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh =================================================================== --- trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh 2016-01-21 13:28:04 UTC (rev 48425) +++ trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh 2016-01-21 13:28:09 UTC (rev 48426) @@ -101,6 +101,7 @@ 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)" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
