diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6cab389d9738..dc0b2d6c2159 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -5420,7 +5420,7 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio u8 intf_count = 0; QDF_STATUS status = QDF_STATUS_E_FAILURE; - if (hdd_ctx->current_intf_count >= hdd_ctx->max_intf_count) { + if (hdd_ctx->current_intf_count >= WLAN_MAX_VDEVS) { /* * Max limit reached on the number of vdevs configured by the * host. Return error