Author: nbd Date: 2016-01-21 16:55:35 +0100 (Thu, 21 Jan 2016) New Revision: 48440
Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh Log: mac80211: only strip the platform/ prefix from path for pci devices 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 15:51:52 UTC (rev 48439) +++ trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh 2016-01-21 15:55:35 UTC (rev 48440) @@ -101,7 +101,9 @@ fi if [ -n "$path" ]; then path="${path##/sys/devices/}" - path="${path##platform/}" + case "$path" in + platform*/pci*) path="${path##platform/}";; + esac 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
