[qca-ssdk] fix ports link status.
Fix ports link status..
Change-Id: I49d1ff10eb040ca274ca22d5bf3d8721dbcf0d83
Signed-off-by: esong <song@codeaurora.org>
diff --git a/src/hsl/dess/dess_port_ctrl.c b/src/hsl/dess/dess_port_ctrl.c
index 618302d..398dd40 100755
--- a/src/hsl/dess/dess_port_ctrl.c
+++ b/src/hsl/dess/dess_port_ctrl.c
@@ -1472,6 +1472,7 @@
hsl_phy_ops_t *phy_drv;
HSL_DEV_ID_CHECK(dev_id);
+ SW_RTN_ON_NULL (phy_drv = hsl_phy_api_ops_get (dev_id));
if (NULL == phy_drv->phy_link_status_get)
return SW_NOT_SUPPORTED;