Browse Source

qcacmn: Initialise is_6g_afc_power_event_received to false

Currently, the flag 'is_6g_afc_power_event_received' is not initialised
while processing the event WMI_REG_CHAN_LIST_CC_EXT_EVENTID from FW.
The flag is set to 'true' on processing the AFC power event
REG_AFC_EVENT_POWER_INFO.
When a new WMI_REG_CHAN_LIST_CC_EXT_EVENTID is received from FW, 6 GHz
master channel lists are re-initialized, but the flag
is_6g_afc_power_event_received is not reset.

To solve this inconsistency, initialise 'is_6g_afc_power_event_received'
to 'false' on processing WMI_REG_CHAN_LIST_CC_EXT_EVENTID. It is to be
noted that the AFC expiry event REG_AFC_EVENT_TIMER_EXPIRY should be
sent after every WMI_REG_CHAN_LIST_CC_EXT_EVENTID.

Change-Id: Ibdac2744b86c75aff5e98f0f3dbedba679de6998
CRs-Fixed: 3500058
Thirusenthil Kumaran J 2 năm trước cách đây
mục cha
commit
0ece3dfc96
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      umac/regulatory/core/src/reg_build_chan_list.c

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

@@ -1067,6 +1067,7 @@ static void reg_propagate_6g_mas_channel_list(
 				mas_chan_params->unspecified_ap_usable;
 	pdev_priv_obj->is_6g_channel_list_populated =
 		mas_chan_params->is_6g_channel_list_populated;
+	reg_set_afc_power_event_received(pdev_priv_obj->pdev_ptr, false);
 	pdev_priv_obj->reg_6g_superid =
 		mas_chan_params->reg_6g_superid;
 	pdev_priv_obj->reg_6g_thresh_priority_freq =