qcacmn: Fill correct max BW to set channel params

Currently wifi positioning api to update channel bandwidth
info is invoking regulatory component api to set the channel
params with BW as CH_WIDTH_MAX, because of which regulatory
component is returning the maximum BW supported for the current
regdomain which is 160MHz. If target does not support 160MHz in
that case it may lead to undefined behavior.

To address this issue, pass max supported BW by target as
argument to regulatory component so that regulatory component
does not return the BW greater then the target supported BW.

CRs-Fixed: 2730665
Change-Id: I6051336ab2f3ea902a70ed80290e5a5f060de5b9
This commit is contained in:
Ashish Kumar Dhanotiya
2020-07-24 17:49:16 +05:30
committed by snandini
szülő ca77085fc5
commit dc2d337116
4 fájl változott, egészen pontosan 71 új sor hozzáadva és 2 régi sor törölve

Fájl megtekintése

@@ -26,6 +26,7 @@
#include "qdf_types.h"
#include "qdf_status.h"
#include "wlan_cmn.h"
struct oem_data_req;
struct oem_data_rsp;
struct wlan_objmgr_psoc;
@@ -61,6 +62,16 @@ QDF_STATUS target_if_wifi_pos_register_events(struct wlan_objmgr_psoc *psoc);
QDF_STATUS target_if_wifi_pos_deregister_events(struct wlan_objmgr_psoc *psoc);
/**
* target_if_wifi_pos_get_vht_ch_width: function to get vht channel width
* @psoc: pointer to psoc object
* @ch_width: pointer to the variable in which output value needs to be filled
*
* Return: status of operation
*/
QDF_STATUS target_if_wifi_pos_get_vht_ch_width(struct wlan_objmgr_psoc *psoc,
enum phy_ch_width *ch_width);
/**
* target_if_wifi_pos_register_tx_ops: function to register with lmac tx ops
* @tx_ops: lmac tx ops struct object