diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 267a22948dfe..754c21dec5f1 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3688,7 +3688,6 @@ hdd_adapter_t *hdd_open_adapter(hdd_context_t *hdd_ctx, uint8_t session_type, QDF_STATUS status = QDF_STATUS_E_FAILURE; hdd_cfg80211_state_t *cfgState; - hdd_info("%s interface created. iftype: %d", iface_name, session_type); if (hdd_ctx->current_intf_count >= hdd_ctx->max_intf_count) { /* @@ -3877,7 +3876,11 @@ hdd_adapter_t *hdd_open_adapter(hdd_context_t *hdd_ctx, uint8_t session_type, } if (QDF_STATUS_SUCCESS != hdd_debugfs_init(adapter)) - hdd_err("Interface %s wow debug_fs init failed", iface_name); + hdd_err("Interface %s wow debug_fs init failed", + netdev_name(adapter->dev)); + + hdd_info("%s interface created. iftype: %d", netdev_name(adapter->dev), + session_type); return adapter;