mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48426
This commit is contained in:
parent
95965cd813
commit
d9b20a6f35
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user