|
@@ -12620,17 +12620,17 @@ QDF_STATUS sme_handle_bcn_recv_start(mac_handle_t mac_handle,
|
|
|
struct csr_roam_session *session;
|
|
|
QDF_STATUS status;
|
|
|
|
|
|
- if (!CSR_IS_SESSION_VALID(mac_ctx, vdev_id)) {
|
|
|
- sme_err("CSR session not valid: %d", vdev_id);
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
- }
|
|
|
-
|
|
|
session = CSR_GET_SESSION(mac_ctx, vdev_id);
|
|
|
if (!session) {
|
|
|
sme_err("vdev_id %d not found", vdev_id);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
+ if (!CSR_IS_SESSION_VALID(mac_ctx, vdev_id)) {
|
|
|
+ sme_err("CSR session not valid: %d", vdev_id);
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
status = sme_acquire_global_lock(&mac_ctx->sme);
|
|
|
if (QDF_IS_STATUS_SUCCESS(status)) {
|
|
|
if (session->is_bcn_recv_start) {
|