qcacld-3.0: Add pwrmode argument to callers
The current channel list alone is not enough to represent the capability of the chip or device. Given a channel, in many cases it may be required to know all the power modes that are supported by this channel. Add pwrmode argument to callers of wlan_reg_get_opclass_details. Change-Id: Ia470ae99cb374e4cfdbea8ce77cceabba5c7c959 CRs-Fixed: 3357155
Tento commit je obsažen v:

odevzdal
Madan Koyyalamudi

rodič
6890f7410c
revize
6b0adfe1d5
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -1323,7 +1323,8 @@ int os_if_son_reg_get_ap_hw_cap(struct wlan_objmgr_pdev *pdev,
|
||||
return nsoc;
|
||||
}
|
||||
status = wlan_reg_get_opclass_details(pdev, reg_ap_cap, &n_opclasses,
|
||||
max_supp_op_class, true);
|
||||
max_supp_op_class, true,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
if (status == QDF_STATUS_E_FAILURE) {
|
||||
osif_err("Failed to get SAP regulatory capabilities");
|
||||
goto end_reg_get_ap_hw_cap;
|
||||
@@ -1391,7 +1392,8 @@ static void os_if_son_reg_get_op_channels(struct wlan_objmgr_pdev *pdev,
|
||||
return;
|
||||
}
|
||||
status = wlan_reg_get_opclass_details(pdev, reg_ap_cap, &n_opclasses,
|
||||
max_supp_op_class, true);
|
||||
max_supp_op_class, true,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
if (status == QDF_STATUS_E_FAILURE) {
|
||||
osif_err("Failed to get SAP regulatory capabilities");
|
||||
goto end_reg_get_op_channels;
|
||||
@@ -1476,7 +1478,8 @@ static void os_if_son_reg_get_opclass_details(struct wlan_objmgr_pdev *pdev,
|
||||
return;
|
||||
}
|
||||
status = wlan_reg_get_opclass_details(pdev, reg_ap_cap, &n_opclasses,
|
||||
max_supp_op_class, true);
|
||||
max_supp_op_class, true,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
if (status == QDF_STATUS_E_FAILURE) {
|
||||
osif_err("Failed to get SAP regulatory capabilities");
|
||||
goto end_reg_get_opclass_details;
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele