浏览代码

mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 48426
Felix Fietkau 9 年之前
父节点
当前提交
d9b20a6f35
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/kernel/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 0
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)"