rstp: Fix the empty bridge name issue
network_get_device will extract "l3_device" value from
interface's netifd attribute. But when LAN interface is
set to dhcp proto, l3_device is not set. Hence we use
network_get_physdev to get "device" field, which is present
for either dhcp or non-dhcp proto.
Signed-off-by:
Tian Yang <quic_tiany@quicinc.com>
Change-Id: Ia44a11100bb6547c59cffcc71ca96e647c1c0295
Please register or sign in to comment