diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index d1ad45887190..9f6de4ba7e96 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -2787,6 +2787,10 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, eCSR_DISCONNECT_REASON_UNSPECIFIED); } return QDF_STATUS_E_FAILURE; + } else { + cfg80211_put_bss( + hdd_ctx->wiphy, + bss); } if (roam_info->u.pConnectedProfile->AuthType == eCSR_AUTH_TYPE_FT_RSN @@ -3003,10 +3007,6 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, } } if (!hddDisconInProgress) { - cfg80211_put_bss( - hdd_ctx->wiphy, - bss); - /* * Perform any WMM-related association * processing.