qcacld-3.0: Invalid offchannel freq sent in tdls offchannel command

In WMI_TDLS_SET_OFFCHAN_MODE_CMDID the offchannel freq is set to invalid
value due to uninitialized local tdls_channel_switch_params type variable
resulting in fw reading incorrect non zero offchanel freq.

Fix, to zero initialize the local tdls_channel_switch_params variable.

Change-Id: Ia7d6daac098a179a22676620875a2b0d6488a8ad
CRs-Fixed: 2739267
This commit is contained in:
Pankaj Singh 2020-08-06 09:27:50 +05:30 • committed by snandini
commit bc917e55af

View file

@ -1012,7 +1012,7 @@ int tdls_set_tdls_offchannelmode(struct wlan_objmgr_vdev *vdev,
int offchanmode)
{
struct tdls_peer *conn_peer = NULL;
struct tdls_channel_switch_params chan_switch_params;
struct tdls_channel_switch_params chan_switch_params = {0};
QDF_STATUS status = QDF_STATUS_E_FAILURE;
int ret_value = 0;
struct tdls_vdev_priv_obj *tdls_vdev;