Browse Source

qcacmn: Do not allow to set same 6G AP power mode

The API that takes in the input 6G AP power type and updates current
channel list, allows setting the same power type which is not needed and
is a costly operation.

Change-Id: Ia690f40a6796a0db243f0abd15f2eebc8340d1d9
CRs-Fixed: 3051502
Vignesh U 3 năm trước cách đây
mục cha
commit
9abbd66770
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      umac/regulatory/core/src/reg_services_common.c

+ 3 - 0
umac/regulatory/core/src/reg_services_common.c

@@ -5890,6 +5890,9 @@ QDF_STATUS reg_set_ap_pwr_and_update_chan_list(struct wlan_objmgr_pdev *pdev,
 		return QDF_STATUS_E_INVAL;
 	}
 
+	if (pdev_priv_obj->reg_cur_6g_ap_pwr_type == ap_pwr_type)
+		return QDF_STATUS_SUCCESS;
+
 	if (!reg_get_num_rules_of_ap_pwr_type(pdev, ap_pwr_type))
 		return QDF_STATUS_E_FAILURE;