qcacmn: Add support to get roam scan channel list from fw

Firmware advertises WMI_SERVICE_ROAM_SCAN_CHANNEL_LIST_TO_HOST_SUPPORT
at the time of initialization, that means host can querry for roam scan
channels list to firmware.

Host driver sends WMI_ROAM_GET_SCAN_CHANNEL_LIST_CMDID to firmware to
querry roam scan channels list and firmware responds with an event
WMI_ROAM_SCAN_CHANNEL_LIST_EVENTID.

Change-Id: I419a0206d7b06b6186d0c333c951bca5206f342f
CRs-Fixed: 2620607
This commit is contained in:
Abhishek Ambure
2020-02-12 20:15:14 +05:30
committed by nshrivas
parent 1047ea9c6b
commit 122adb67b3
5 changed files with 73 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2020 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
@@ -379,6 +379,18 @@ QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(
wmi_unified_t wmi_handle,
struct wmi_invoke_neighbor_report_params *params);
/**
* wmi_unified_get_roam_scan_ch_list() - send roam scan channel list get cmd
* @wmi_handle: wmi handle
* @vdev_id: vdev id
*
* This function sends roam scan channel list get command to firmware.
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_get_roam_scan_ch_list(wmi_unified_t wmi_handle,
uint8_t vdev_id);
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
/**
* wmi_unified_set_roam_triggers() - send roam trigger bitmap