mac80211: only strip the platform/ prefix from path for pci devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48440
This commit is contained in:
@@ -101,7 +101,9 @@ detect_mac80211() {
|
|||||||
fi
|
fi
|
||||||
if [ -n "$path" ]; then
|
if [ -n "$path" ]; then
|
||||||
path="${path##/sys/devices/}"
|
path="${path##/sys/devices/}"
|
||||||
path="${path##platform/}"
|
case "$path" in
|
||||||
|
platform*/pci*) path="${path##platform/}";;
|
||||||
|
esac
|
||||||
dev_id=" option path '$path'"
|
dev_id=" option path '$path'"
|
||||||
else
|
else
|
||||||
dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)"
|
dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)"
|
||||||
|
|||||||
Reference in New Issue
Block a user