qcacmn: Send max commands as param to wmi_unified_attach
Modify arguments of wmi_unified_attach to use struct to send attach params instead of individual params. Add max WMI commands as a param. Based on requirement MAX WMI commands value is different. In case of AP that supports 16 VAPs and more than 512 clients, 1024 commands is not enough. Use this param to configure this value based on the requirement. Change-Id: I4e778475481e509051dfbac70980614b644e1b4a CRs-fixed: 2034438
This commit is contained in:

committed by
nshrivas

parent
b1a06b7e42
commit
09744011e5
@@ -126,19 +126,32 @@ enum wmi_rx_exec_ctx {
|
||||
};
|
||||
|
||||
/**
|
||||
* attach for unified WMI
|
||||
*
|
||||
* @param scn_handle : handle to SCN.
|
||||
* struct wmi_unified_attach_params - wmi init parameters
|
||||
* @param osdev : NIC device
|
||||
* @param target_type : type of supported wmi command
|
||||
* @param use_cookie : flag to indicate cookie based allocation
|
||||
* @param ops : handle to wmi ops
|
||||
* @psoc : objmgr psoc
|
||||
* @return opaque handle.
|
||||
* @max_commands : max commands
|
||||
*/
|
||||
struct wmi_unified_attach_params {
|
||||
osdev_t osdev;
|
||||
enum wmi_target_type target_type;
|
||||
bool use_cookie;
|
||||
struct wmi_rx_ops *rx_ops;
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
uint16_t max_commands;
|
||||
};
|
||||
|
||||
/**
|
||||
* attach for unified WMI
|
||||
*
|
||||
* @param scn_handle : handle to SCN.
|
||||
* @param params : attach params for WMI
|
||||
*
|
||||
*/
|
||||
void *wmi_unified_attach(void *scn_handle,
|
||||
osdev_t osdev, enum wmi_target_type target_type,
|
||||
bool use_cookie, struct wmi_rx_ops *ops,
|
||||
struct wlan_objmgr_psoc *psoc);
|
||||
struct wmi_unified_attach_params *params);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user