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
此提交包含在:
@@ -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;
|
||||
|
||||
|
新增問題並參考
封鎖使用者