Browse Source

qcacmn: Reset AFC power event received status

The power event received status is set when AFC power event is received
but is not reset when AFC expiry event received.

Reset AFC power event received status on receiving AFC expiry event.

Change-Id: I6e3415682b682e7a0f5d15a190d4cf72f5ff935a
Vignesh U 3 years ago
parent
commit
cd59d89a50
1 changed files with 2 additions and 0 deletions
  1. 2 0
      umac/regulatory/core/src/reg_build_chan_list.c

+ 2 - 0
umac/regulatory/core/src/reg_build_chan_list.c

@@ -2540,6 +2540,8 @@ reg_process_afc_expiry_event(struct afc_regulatory_info *afc_info)
 		return QDF_STATUS_E_FAILURE;
 		return QDF_STATUS_E_FAILURE;
 	}
 	}
 
 
+	pdev_priv_obj->is_6g_afc_power_event_received = false;
+
 	reg_debug("AFC event subtype: %d",
 	reg_debug("AFC event subtype: %d",
 		  afc_info->expiry_info->event_subtype);
 		  afc_info->expiry_info->event_subtype);
 	switch (afc_info->expiry_info->event_subtype) {
 	switch (afc_info->expiry_info->event_subtype) {