qcacmn: Send idle and disconnect roam parameters to firmware

Add support for new wmi command WMI_ROAM_DEAUTH_CONFIG_CMDID to
send disconnect roam trigger parameters and the new wmi command
WMI_ROAM_IDLE_CONFIG_CMDID is used to send the idle roam trigger
parameters.

Update the idle roam and disconnect roam parameters and send them
on the new wmi commands over wmi.

Change-Id: I57acb90266d506d37dcbb58d50ef23fadc439e46
CRs-Fixed: 2431502
This commit is contained in:
Pragaspathi Thilagaraj 2019-03-31 16:46:28 +05:30 • committed by nshrivas
commit 5e3cd0af27
5 changed files with 200 additions and 2 deletions

View file

@ -577,6 +577,13 @@ QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
QDF_STATUS (*send_roam_bss_load_config)(wmi_unified_t wmi_handle,
struct wmi_bss_load_config *params);
QDF_STATUS (*send_disconnect_roam_params)(
wmi_unified_t wmi_handle,
struct wmi_disconnect_roam_params *req);
QDF_STATUS (*send_idle_roam_params)(wmi_unified_t wmi_handle,
struct wmi_idle_roam_params *req);
QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,
struct wmi_btm_config *params);

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2019 The Linux Foundation. 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
@ -308,6 +308,29 @@ QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl,
QDF_STATUS wmi_unified_send_bss_load_config(void *wmi_hdl,
struct wmi_bss_load_config *params);
/**
* wmi_unified_send_disconnect_roam_params() - Send disconnect roam trigger
* parameters to firmware
* @wmi_hdl: wmi handle
* @params: pointer to wmi_disconnect_roam_params
*
* Return: QDF_STATUS
*/
QDF_STATUS
wmi_unified_send_disconnect_roam_params(wmi_unified_t wmi_handle,
struct wmi_disconnect_roam_params *req);
/**
* wmi_unified_send_idle_roam_params() - Send idle roam trigger params to fw
* @wmi_hdl: wmi handle
* @params: pointer to wmi_idle_roam_params
*
* Return: QDF_STATUS
*/
QDF_STATUS
wmi_unified_send_idle_roam_params(wmi_unified_t wmi_handle,
struct wmi_idle_roam_params *req);
/**
* wmi_unified_offload_11k_cmd() - send 11k offload command
* @wmi_hdl: wmi handle

View file

@ -548,6 +548,36 @@ struct wmi_bss_load_config {
uint32_t bss_load_sample_time;
};
/**
* struct wmi_idle_roam_params - Idle roam trigger parameters
* @vdev_id: VDEV on which the parameters should be applied
* @enable: Enable/Disable Idle roaming
* @band: Connected AP band
* @conn_ap_rssi_delta: Rssi change of connected AP in dBm
* @conn_ap_min_rssi: If connected AP rssi is less than min rssi trigger roam
* @inactive_time: Connected AP idle time
* @data_pkt_count: Data packet count allowed during idle time
*/
struct wmi_idle_roam_params {
uint32_t vdev_id;
bool enable;
uint32_t band;
uint32_t conn_ap_rssi_delta;
int32_t conn_ap_min_rssi;
uint32_t inactive_time;
uint32_t data_pkt_count;
};
/**
* struct wmi_disconnect_roam_params - Emergency deauth/disconnect roam params
* @vdev_id: VDEV on which the parameters should be applied
* @enable: Enable or disable disconnect roaming.
*/
struct wmi_disconnect_roam_params {
uint32_t vdev_id;
bool enable;
};
/**
* @time_offset: time offset after 11k offload command to trigger a neighbor
* report request (in seconds)