@@ -40,11 +40,11 @@ get_default_metric()
4040_get_associated_usb_by_path ()
4141{
4242 local cfg=" $1 "
43- echo $target_slot
43+ m_debug $target_slot
4444 config_get _get_slot $cfg slot
4545 if [ " $target_slot " == " $_get_slot " ]; then
4646 config_get associated_usb $cfg associated_usb
47- echo \[ $target_slot \] associated_usb:$associated_usb
47+ m_debug \[ $target_slot \] associated_usb:$associated_usb
4848 fi
4949
5050}
@@ -171,9 +171,17 @@ scan_pcie_slot_interfaces()
171171 dun_device=$( ls " $wwan0_path " | grep wwan0at0)
172172 [ ! -z " $dun_device " ] && dun_device_path=" $wwan0_path /$dun_device "
173173 [ ! -z " $dun_device_path " ] && dun_devices=$( basename " $dun_device_path " )
174+ fi
174175 fi
176+ # mt_t7xx device
177+ wwan_path=" $slot_path /wwan"
178+ net_devices=$( ls " $wwan_path " | grep -E " wwan[0-9]" )
179+ devices_path=" $wwan_path /$net_devices "
180+ if [ -d " $devices_path " ]; then
181+ mbim_devices=$( ls " $devices_path " | grep -E " wwan[0-9]mbim[0-9]" )
182+ dun_devices=$( ls " $devices_path " | grep -E " wwan[0-9]at[0-9]" )
175183 fi
176- m_debug " net_devices: $net_devices dun_devices: $dun_devices "
184+ echo " net_devices: $net_devices dun_devices: $dun_devices "
177185 at_ports=" $dun_devices "
178186 [ -n " $net_devices " ] && get_associate_usb $slot
179187 if [ -n " $associated_usb " ]; then
@@ -250,7 +258,7 @@ scan_usb_slot_interfaces()
250258 ;;
251259 esac
252260 done
253- echo " net_devices: $net_devices tty_devices: $tty_devices "
261+ m_debug " net_devices: $net_devices tty_devices: $tty_devices "
254262 at_ports=" $tty_devices "
255263 validate_at_port
256264}
0 commit comments