qcacmn: do not add MLO params if MLD is not set for vdev

If MLD is not set for a vdev, do not add MLO params
in vdev create command.

Change-Id: Ie726cd30165a541357422851848fb1da9790d64b
CRs-Fixed: 3138070
This commit is contained in:
Yu Wang
2022-02-24 19:31:05 +08:00
کامیت شده توسط Madan Koyyalamudi
والد 8aa7cab50c
کامیت 53441b208a
3فایلهای تغییر یافته به همراه14 افزوده شده و 5 حذف شده

مشاهده پرونده

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -20,10 +21,10 @@
#ifdef WLAN_FEATURE_11BE_MLO
/**
* vdev_create_mlo_params_size() - Get MLO params size in vdev create
*
* @param: ponter to vdev create request param
* Return: size of MLO params in vdev create
*/
size_t vdev_create_mlo_params_size(void);
size_t vdev_create_mlo_params_size(struct vdev_create_params *param);
/**
* vdev_create_add_mlo_params() - Add MLO params in vdev create cmd
* @buf_ptr: pointer to vdev create buffer.
@@ -121,7 +122,7 @@ static uint8_t *vdev_create_add_mlo_params(uint8_t *buf_ptr,
return buf_ptr + WMI_TLV_HDR_SIZE;
}
static size_t vdev_create_mlo_params_size(void)
static size_t vdev_create_mlo_params_size(struct vdev_create_params *param)
{
return WMI_TLV_HDR_SIZE;
}