瀏覽代碼

qcacmn: Reset AFC power event received status

The power event received status is set when AFC power event is received
and is reset unconditionally when AFC expiry event received.

Reset AFC power event received status only on receiving AFC expiry event
with sub-type AFC_EXPIRY_EVENT_SWITCH_TO_LPI.

Change-Id: Ib7c1d12cbc2797ddbb19d73fd38d82d100adf3d3
Vignesh U 3 年之前
父節點
當前提交
c47cd3f96c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      umac/regulatory/core/src/reg_build_chan_list.c

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

@@ -2545,8 +2545,6 @@ reg_process_afc_expiry_event(struct afc_regulatory_info *afc_info)
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	pdev_priv_obj->is_6g_afc_power_event_received = false;
-
 	reg_debug("AFC event subtype: %d",
 		  afc_info->expiry_info->event_subtype);
 	switch (afc_info->expiry_info->event_subtype) {
@@ -2558,6 +2556,7 @@ reg_process_afc_expiry_event(struct afc_regulatory_info *afc_info)
 		reg_afc_start(pdev, pdev_priv_obj->afc_request_id);
 		break;
 	case REG_AFC_EXPIRY_EVENT_SWITCH_TO_LPI:
+		pdev_priv_obj->is_6g_afc_power_event_received = false;
 		reg_disable_afc_mas_chan_list_channels(pdev_priv_obj);
 		if (tx_ops->trigger_acs_for_afc)
 			tx_ops->trigger_acs_for_afc(pdev);