mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacmn: Mixed error code and tx power
When channel invalid, error code is treated as tx power value by the caller. Change-Id: Ie37c7f04734be46b6237acffe02eed3f31923012 CRs-Fixed: 2636772
This commit is contained in:
parent
063ee32509
commit
2ba2d3eda3
2 changed files with 3 additions and 2 deletions
|
|
@ -3366,14 +3366,14 @@ uint8_t reg_get_channel_reg_power_for_freq(struct wlan_objmgr_pdev *pdev,
|
|||
|
||||
if (chan_enum == INVALID_CHANNEL) {
|
||||
reg_err("channel is invalid");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
return REG_INVALID_TXPOWER;
|
||||
}
|
||||
|
||||
pdev_priv_obj = reg_get_pdev_obj(pdev);
|
||||
|
||||
if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) {
|
||||
reg_err("reg pdev priv obj is NULL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
return REG_INVALID_TXPOWER;
|
||||
}
|
||||
|
||||
reg_channels = pdev_priv_obj->cur_chan_list;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#define REG_MAX_SUPP_OPER_CLASSES 32
|
||||
#define REG_MAX_CHAN_CHANGE_CBKS 30
|
||||
#define REG_INVALID_TXPOWER 255
|
||||
#define MAX_STA_VDEV_CNT 4
|
||||
#define INVALID_VDEV_ID 0xFF
|
||||
#define INVALID_CHANNEL_NUM 0x0
|
||||
|
|
|
|||
Loading…
Reference in a new issue