Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | #include "athdefs.h" |
| 28 | #include "osapi_linux.h" |
| 29 | #include "a_types.h" |
| 30 | #include "a_debug.h" |
| 31 | #include "ol_if_athvar.h" |
| 32 | #include "ol_defines.h" |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 33 | #include "wmi_unified_priv.h" |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 34 | #include "wmi_unified_param.h" |
| 35 | |
| 36 | /** |
| 37 | * wmi_unified_vdev_create_send() - send VDEV create command to fw |
| 38 | * @wmi_handle: wmi handle |
| 39 | * @param: pointer to hold vdev create parameter |
| 40 | * @macaddr: vdev mac address |
| 41 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 42 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 43 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 44 | QDF_STATUS wmi_unified_vdev_create_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 45 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 46 | struct vdev_create_params *param) |
| 47 | { |
| 48 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 49 | |
| 50 | if (wmi_handle->ops->send_vdev_create_cmd) |
| 51 | return wmi_handle->ops->send_vdev_create_cmd(wmi_handle, |
| 52 | macaddr, param); |
| 53 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 54 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | /** |
| 58 | * wmi_unified_vdev_delete_send() - send VDEV delete command to fw |
| 59 | * @wmi_handle: wmi handle |
| 60 | * @if_id: vdev id |
| 61 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 62 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 63 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 64 | QDF_STATUS wmi_unified_vdev_delete_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 65 | uint8_t if_id) |
| 66 | { |
| 67 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 68 | |
| 69 | if (wmi_handle->ops->send_vdev_delete_cmd) |
| 70 | return wmi_handle->ops->send_vdev_delete_cmd(wmi_handle, |
| 71 | if_id); |
| 72 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 73 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | /** |
| 77 | * wmi_unified_vdev_stop_send() - send vdev stop command to fw |
| 78 | * @wmi: wmi handle |
| 79 | * @vdev_id: vdev id |
| 80 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 81 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 82 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 83 | QDF_STATUS wmi_unified_vdev_stop_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 84 | uint8_t vdev_id) |
| 85 | { |
| 86 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 87 | |
| 88 | if (wmi_handle->ops->send_vdev_stop_cmd) |
| 89 | return wmi_handle->ops->send_vdev_stop_cmd(wmi_handle, |
| 90 | vdev_id); |
| 91 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 92 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | /** |
| 96 | * wmi_unified_vdev_down_send() - send vdev down command to fw |
| 97 | * @wmi: wmi handle |
| 98 | * @vdev_id: vdev id |
| 99 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 100 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 101 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 102 | QDF_STATUS wmi_unified_vdev_down_send(void *wmi_hdl, uint8_t vdev_id) |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 103 | { |
| 104 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 105 | |
| 106 | if (wmi_handle->ops->send_vdev_down_cmd) |
| 107 | return wmi_handle->ops->send_vdev_down_cmd(wmi_handle, vdev_id); |
| 108 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 109 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 110 | } |
| 111 | |
| 112 | /** |
Himanshu Agarwal | 0007b76 | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 113 | * wmi_unified_vdev_start_send() - send vdev start command to fw |
| 114 | * @wmi: wmi handle |
| 115 | * @vdev_id: vdev id |
| 116 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 117 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | 0007b76 | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 118 | */ |
| 119 | QDF_STATUS wmi_unified_vdev_start_send(void *wmi_hdl, |
| 120 | struct vdev_start_params *req) |
| 121 | { |
| 122 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 123 | |
| 124 | if (wmi_handle->ops->send_vdev_start_cmd) |
| 125 | return wmi_handle->ops->send_vdev_start_cmd(wmi_handle, req); |
| 126 | |
| 127 | return QDF_STATUS_E_FAILURE; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * wmi_unified_hidden_ssid_vdev_restart_send() - restart vdev to set hidden ssid |
| 132 | * @wmi: wmi handle |
| 133 | * @restart_params: vdev restart params |
| 134 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 135 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | 0007b76 | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 136 | */ |
| 137 | QDF_STATUS wmi_unified_hidden_ssid_vdev_restart_send(void *wmi_hdl, |
| 138 | struct hidden_ssid_vdev_restart_params *restart_params) |
| 139 | { |
| 140 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 141 | |
| 142 | if (wmi_handle->ops->send_hidden_ssid_vdev_restart_cmd) |
| 143 | return wmi_handle->ops->send_hidden_ssid_vdev_restart_cmd( |
| 144 | wmi_handle, restart_params); |
| 145 | |
| 146 | return QDF_STATUS_E_FAILURE; |
| 147 | } |
| 148 | |
| 149 | /** |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 150 | * wmi_unified_peer_flush_tids_send() - flush peer tids packets in fw |
| 151 | * @wmi: wmi handle |
| 152 | * @peer_addr: peer mac address |
| 153 | * @param: pointer to hold peer flush tid parameter |
| 154 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 155 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 156 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 157 | QDF_STATUS wmi_unified_peer_flush_tids_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 158 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 159 | struct peer_flush_params *param) |
| 160 | { |
| 161 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 162 | |
| 163 | if (wmi_handle->ops->send_peer_flush_tids_cmd) |
| 164 | return wmi_handle->ops->send_peer_flush_tids_cmd(wmi_handle, |
| 165 | peer_addr, param); |
| 166 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 167 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | /** |
| 171 | * wmi_unified_peer_delete_send() - send PEER delete command to fw |
| 172 | * @wmi: wmi handle |
| 173 | * @peer_addr: peer mac addr |
| 174 | * @vdev_id: vdev id |
| 175 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 176 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 177 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 178 | QDF_STATUS wmi_unified_peer_delete_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 179 | uint8_t |
| 180 | peer_addr[IEEE80211_ADDR_LEN], |
| 181 | uint8_t vdev_id) |
| 182 | { |
| 183 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 184 | |
| 185 | if (wmi_handle->ops->send_peer_delete_cmd) |
| 186 | return wmi_handle->ops->send_peer_delete_cmd(wmi_handle, |
| 187 | peer_addr, vdev_id); |
| 188 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 189 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | /** |
| 193 | * wmi_set_peer_param() - set peer parameter in fw |
| 194 | * @wmi_ctx: wmi handle |
| 195 | * @peer_addr: peer mac address |
| 196 | * @param : pointer to hold peer set parameter |
| 197 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 198 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 199 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 200 | QDF_STATUS wmi_set_peer_param_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 201 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 202 | struct peer_set_params *param) |
| 203 | { |
| 204 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 205 | |
| 206 | if (wmi_handle->ops->send_peer_param_cmd) |
| 207 | return wmi_handle->ops->send_peer_param_cmd(wmi_handle, |
| 208 | peer_addr, param); |
| 209 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 210 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | /** |
| 214 | * wmi_unified_vdev_up_send() - send vdev up command in fw |
| 215 | * @wmi: wmi handle |
| 216 | * @bssid: bssid |
| 217 | * @vdev_up_params: pointer to hold vdev up parameter |
| 218 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 219 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 220 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 221 | QDF_STATUS wmi_unified_vdev_up_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 222 | uint8_t bssid[IEEE80211_ADDR_LEN], |
| 223 | struct vdev_up_params *params) |
| 224 | { |
| 225 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 226 | |
| 227 | if (wmi_handle->ops->send_vdev_up_cmd) |
| 228 | return wmi_handle->ops->send_vdev_up_cmd(wmi_handle, bssid, |
| 229 | params); |
| 230 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 231 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 232 | } |
| 233 | |
| 234 | /** |
| 235 | * wmi_unified_peer_create_send() - send peer create command to fw |
| 236 | * @wmi: wmi handle |
| 237 | * @peer_addr: peer mac address |
| 238 | * @peer_type: peer type |
| 239 | * @vdev_id: vdev id |
| 240 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 241 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 242 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 243 | QDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 244 | struct peer_create_params *param) |
| 245 | { |
| 246 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 247 | |
| 248 | if (wmi_handle->ops->send_peer_create_cmd) |
| 249 | return wmi_handle->ops->send_peer_create_cmd(wmi_handle, param); |
| 250 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 251 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | #ifdef FEATURE_GREEN_AP |
| 255 | /** |
| 256 | * wmi_unified_green_ap_ps_send() - enable green ap powersave command |
| 257 | * @wmi_handle: wmi handle |
| 258 | * @value: value |
| 259 | * @mac_id: mac id to have radio context |
| 260 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 261 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 262 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 263 | QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 264 | uint32_t value, uint8_t mac_id) |
| 265 | { |
| 266 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 267 | |
| 268 | if (wmi_handle->ops->send_green_ap_ps_cmd) |
| 269 | return wmi_handle->ops->send_green_ap_ps_cmd(wmi_handle, value, |
| 270 | mac_id); |
| 271 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 272 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 273 | } |
| 274 | #else |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 275 | QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 276 | uint32_t value, uint8_t mac_id) |
| 277 | { |
| 278 | return 0; |
| 279 | } |
| 280 | #endif /* FEATURE_GREEN_AP */ |
| 281 | |
| 282 | /** |
| 283 | * wmi_unified_pdev_utf_cmd() - send utf command to fw |
| 284 | * @wmi_handle: wmi handle |
| 285 | * @param: pointer to pdev_utf_params |
| 286 | * @mac_id: mac id to have radio context |
| 287 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 288 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 289 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 290 | QDF_STATUS |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 291 | wmi_unified_pdev_utf_cmd_send(void *wmi_hdl, |
| 292 | struct pdev_utf_params *param, |
| 293 | uint8_t mac_id) |
| 294 | { |
| 295 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 296 | |
| 297 | if (wmi_handle->ops->send_pdev_utf_cmd) |
| 298 | return wmi_handle->ops->send_pdev_utf_cmd(wmi_handle, param, |
| 299 | mac_id); |
| 300 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 301 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 302 | } |
| 303 | |
| 304 | /** |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 305 | * wmi_unified_pdev_param_send() - set pdev parameters |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 306 | * @wmi_handle: wmi handle |
| 307 | * @param: pointer to pdev parameter |
| 308 | * @mac_id: radio context |
| 309 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 310 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures, |
| 311 | * errno on failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 312 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 313 | QDF_STATUS |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 314 | wmi_unified_pdev_param_send(void *wmi_hdl, |
| 315 | struct pdev_params *param, |
| 316 | uint8_t mac_id) |
| 317 | { |
| 318 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 319 | |
| 320 | if (wmi_handle->ops->send_pdev_param_cmd) |
| 321 | return wmi_handle->ops->send_pdev_param_cmd(wmi_handle, param, |
| 322 | mac_id); |
| 323 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 324 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 325 | } |
| 326 | |
| 327 | /** |
| 328 | * wmi_unified_suspend_send() - WMI suspend function |
| 329 | * @param wmi_handle : handle to WMI. |
| 330 | * @param param : pointer to hold suspend parameter |
| 331 | * @mac_id: radio context |
| 332 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 333 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 334 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 335 | QDF_STATUS wmi_unified_suspend_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 336 | struct suspend_params *param, |
| 337 | uint8_t mac_id) |
| 338 | { |
| 339 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 340 | |
| 341 | if (wmi_handle->ops->send_suspend_cmd) |
| 342 | return wmi_handle->ops->send_suspend_cmd(wmi_handle, param, |
| 343 | mac_id); |
| 344 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 345 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 346 | } |
| 347 | |
| 348 | /** |
| 349 | * wmi_unified_resume_send - WMI resume function |
| 350 | * @param wmi_handle : handle to WMI. |
| 351 | * @mac_id: radio context |
| 352 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 353 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 354 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 355 | QDF_STATUS wmi_unified_resume_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 356 | uint8_t mac_id) |
| 357 | { |
| 358 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 359 | |
| 360 | if (wmi_handle->ops->send_resume_cmd) |
| 361 | return wmi_handle->ops->send_resume_cmd(wmi_handle, |
| 362 | mac_id); |
| 363 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 364 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 365 | } |
| 366 | |
| 367 | /** |
| 368 | * wmi_unified_wow_enable_send() - WMI wow enable function |
| 369 | * @param wmi_handle : handle to WMI. |
| 370 | * @param param : pointer to hold wow enable parameter |
| 371 | * @mac_id: radio context |
| 372 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 373 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 374 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 375 | QDF_STATUS wmi_unified_wow_enable_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 376 | struct wow_cmd_params *param, |
| 377 | uint8_t mac_id) |
| 378 | { |
| 379 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 380 | |
| 381 | if (wmi_handle->ops->send_wow_enable_cmd) |
| 382 | return wmi_handle->ops->send_wow_enable_cmd(wmi_handle, param, |
| 383 | mac_id); |
| 384 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 385 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 386 | } |
| 387 | |
| 388 | /** |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 389 | * wmi_unified_wow_wakeup_send() - WMI wow wakeup function |
| 390 | * @param wmi_hdl : handle to WMI. |
| 391 | * |
| 392 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 393 | */ |
| 394 | QDF_STATUS wmi_unified_wow_wakeup_send(void *wmi_hdl) |
| 395 | { |
| 396 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 397 | |
| 398 | if (wmi_handle->ops->send_wow_wakeup_cmd) |
| 399 | return wmi_handle->ops->send_wow_wakeup_cmd(wmi_handle); |
| 400 | |
| 401 | return QDF_STATUS_E_FAILURE; |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * wmi_unified_wow_add_wakeup_event_send() - WMI wow wakeup function |
| 406 | * @param wmi_handle : handle to WMI. |
| 407 | * @param: pointer to wow wakeup event parameter structure |
| 408 | * |
| 409 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 410 | */ |
| 411 | QDF_STATUS wmi_unified_wow_add_wakeup_event_send(void *wmi_hdl, |
| 412 | struct wow_add_wakeup_params *param) |
| 413 | { |
| 414 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 415 | |
| 416 | if (wmi->ops->send_wow_add_wakeup_event_cmd) |
| 417 | return wmi->ops->send_wow_add_wakeup_event_cmd(wmi, |
| 418 | param); |
| 419 | |
| 420 | return QDF_STATUS_E_FAILURE; |
| 421 | } |
| 422 | |
| 423 | /** |
| 424 | * wmi_unified_wow_add_wakeup_pattern_send() - WMI wow wakeup pattern function |
| 425 | * @param wmi_handle : handle to WMI. |
| 426 | * @param: pointer to wow wakeup pattern parameter structure |
| 427 | * |
| 428 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 429 | */ |
| 430 | QDF_STATUS wmi_unified_wow_add_wakeup_pattern_send(void *wmi_hdl, |
| 431 | struct wow_add_wakeup_pattern_params *param) |
| 432 | { |
| 433 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 434 | |
| 435 | if (wmi->ops->send_wow_add_wakeup_pattern_cmd) |
| 436 | return wmi->ops->send_wow_add_wakeup_pattern_cmd(wmi, param); |
| 437 | |
| 438 | return QDF_STATUS_E_FAILURE; |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * wmi_unified_wow_remove_wakeup_pattern_send() - WMI wow wakeup pattern function |
| 443 | * @param wmi_handle : handle to WMI. |
| 444 | * @param: pointer to wow wakeup pattern parameter structure |
| 445 | * |
| 446 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 447 | */ |
| 448 | QDF_STATUS wmi_unified_wow_remove_wakeup_pattern_send(void *wmi_hdl, |
| 449 | struct wow_remove_wakeup_pattern_params *param) |
| 450 | { |
| 451 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 452 | |
| 453 | if (wmi->ops->send_wow_remove_wakeup_pattern_cmd) |
| 454 | return wmi->ops->send_wow_remove_wakeup_pattern_cmd(wmi, param); |
| 455 | |
| 456 | return QDF_STATUS_E_FAILURE; |
| 457 | } |
| 458 | |
| 459 | /** |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 460 | * wmi_unified_ap_ps_cmd_send() - set ap powersave parameters |
| 461 | * @wma_ctx: wma context |
| 462 | * @peer_addr: peer mac address |
| 463 | * @param: pointer to ap_ps parameter structure |
| 464 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 465 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 466 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 467 | QDF_STATUS wmi_unified_ap_ps_cmd_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 468 | uint8_t *peer_addr, |
| 469 | struct ap_ps_params *param) |
| 470 | { |
| 471 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 472 | |
| 473 | if (wmi_handle->ops->send_set_ap_ps_param_cmd) |
| 474 | return wmi_handle->ops->send_set_ap_ps_param_cmd(wmi_handle, |
| 475 | peer_addr, |
| 476 | param); |
| 477 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 478 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 479 | } |
| 480 | |
| 481 | /** |
| 482 | * wmi_unified_sta_ps_cmd_send() - set sta powersave parameters |
| 483 | * @wma_ctx: wma context |
| 484 | * @peer_addr: peer mac address |
| 485 | * @param: pointer to sta_ps parameter structure |
| 486 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 487 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 488 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 489 | QDF_STATUS wmi_unified_sta_ps_cmd_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 490 | struct sta_ps_params *param) |
| 491 | { |
| 492 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 493 | |
| 494 | if (wmi_handle->ops->send_set_sta_ps_param_cmd) |
| 495 | return wmi_handle->ops->send_set_sta_ps_param_cmd(wmi_handle, |
| 496 | param); |
| 497 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 498 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 499 | } |
| 500 | |
| 501 | /** |
| 502 | * wmi_crash_inject() - inject fw crash |
| 503 | * @wma_handle: wma handle |
| 504 | * @param: ponirt to crash inject paramter structure |
| 505 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 506 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 507 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 508 | QDF_STATUS wmi_crash_inject(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 509 | struct crash_inject *param) |
| 510 | { |
| 511 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 512 | |
| 513 | if (wmi_handle->ops->send_crash_inject_cmd) |
| 514 | return wmi_handle->ops->send_crash_inject_cmd(wmi_handle, |
| 515 | param); |
| 516 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 517 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 518 | } |
| 519 | |
| 520 | /** |
| 521 | * wmi_unified_dbglog_cmd_send() - set debug log level |
| 522 | * @param wmi_handle : handle to WMI. |
| 523 | * @param param : pointer to hold dbglog level parameter |
| 524 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 525 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 526 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 527 | QDF_STATUS |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 528 | wmi_unified_dbglog_cmd_send(void *wmi_hdl, |
| 529 | struct dbglog_params *dbglog_param) |
| 530 | { |
| 531 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 532 | |
| 533 | if (wmi_handle->ops->send_dbglog_cmd) |
| 534 | return wmi_handle->ops->send_dbglog_cmd(wmi_handle, |
| 535 | dbglog_param); |
| 536 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 537 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 538 | } |
| 539 | |
| 540 | /** |
| 541 | * wmi_unified_vdev_set_param_send() - WMI vdev set parameter function |
| 542 | * @param wmi_handle : handle to WMI. |
| 543 | * @param macaddr : MAC address |
| 544 | * @param param : pointer to hold vdev set parameter |
| 545 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 546 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 547 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 548 | QDF_STATUS wmi_unified_vdev_set_param_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 549 | struct vdev_set_params *param) |
| 550 | { |
| 551 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 552 | |
| 553 | if (wmi_handle->ops->send_vdev_set_param_cmd) |
| 554 | return wmi_handle->ops->send_vdev_set_param_cmd(wmi_handle, |
| 555 | param); |
| 556 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 557 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 558 | } |
| 559 | |
| 560 | /** |
| 561 | * wmi_unified_stats_request_send() - WMI request stats function |
| 562 | * @param wmi_handle : handle to WMI. |
| 563 | * @param macaddr : MAC address |
| 564 | * @param param : pointer to hold stats request parameter |
| 565 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 566 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 567 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 568 | QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 569 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 570 | struct stats_request_params *param) |
| 571 | { |
| 572 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 573 | |
| 574 | if (wmi_handle->ops->send_stats_request_cmd) |
| 575 | return wmi_handle->ops->send_stats_request_cmd(wmi_handle, |
| 576 | macaddr, param); |
| 577 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 578 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 579 | } |
| 580 | |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 581 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 582 | /** |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 583 | * wmi_unified_packet_log_enable_send() - WMI request stats function |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 584 | * @param wmi_handle : handle to WMI. |
| 585 | * @param macaddr : MAC address |
| 586 | * @param param : pointer to hold stats request parameter |
| 587 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 588 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 589 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 590 | QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 591 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 592 | struct packet_enable_params *param) |
| 593 | { |
| 594 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 595 | |
| 596 | if (wmi_handle->ops->send_packet_log_enable_cmd) |
| 597 | return wmi_handle->ops->send_packet_log_enable_cmd(wmi_handle, |
| 598 | macaddr, param); |
| 599 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 600 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 601 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 602 | #else |
| 603 | /** |
| 604 | * wmi_unified_packet_log_enable_send() - WMI request stats function |
| 605 | * @param wmi_handle : handle to WMI. |
| 606 | * @param macaddr : MAC address |
| 607 | * @param param : pointer to hold stats request parameter |
| 608 | * |
| 609 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 610 | */ |
| 611 | QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl, |
| 612 | WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT) |
| 613 | { |
| 614 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 615 | |
| 616 | if (wmi_handle->ops->send_packet_log_enable_cmd) |
| 617 | return wmi_handle->ops->send_packet_log_enable_cmd(wmi_handle, |
| 618 | PKTLOG_EVENT); |
| 619 | |
| 620 | return QDF_STATUS_E_FAILURE; |
| 621 | } |
| 622 | |
| 623 | #endif |
| 624 | /** |
| 625 | * wmi_unified_packet_log_disable__send() - WMI pktlog disable function |
| 626 | * @param wmi_handle : handle to WMI. |
| 627 | * @param PKTLOG_EVENT : packet log event |
| 628 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 629 | */ |
| 630 | QDF_STATUS wmi_unified_packet_log_disable_send(void *wmi_hdl) |
| 631 | { |
| 632 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 633 | |
| 634 | if (wmi_handle->ops->send_packet_log_disable_cmd) |
| 635 | return wmi_handle->ops->send_packet_log_disable_cmd(wmi_handle); |
| 636 | |
| 637 | return QDF_STATUS_E_FAILURE; |
| 638 | } |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 639 | |
| 640 | /** |
| 641 | * wmi_unified_beacon_send_cmd() - WMI beacon send function |
| 642 | * @param wmi_handle : handle to WMI. |
| 643 | * @param macaddr : MAC address |
| 644 | * @param param : pointer to hold beacon send cmd parameter |
| 645 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 646 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 647 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 648 | QDF_STATUS wmi_unified_beacon_send_cmd(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 649 | struct beacon_params *param) |
| 650 | { |
| 651 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 652 | |
| 653 | if (wmi_handle->ops->send_beacon_send_cmd) |
| 654 | return wmi_handle->ops->send_beacon_send_cmd(wmi_handle, |
Govind Singh | d3156eb | 2016-02-26 17:50:39 +0530 | [diff] [blame] | 655 | param); |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 656 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 657 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 658 | } |
| 659 | |
| 660 | /** |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 661 | * wmi_unified_beacon_tmpl_send_cmd() - WMI beacon send function |
| 662 | * @param wmi_handle : handle to WMI. |
| 663 | * @param macaddr : MAC address |
| 664 | * @param param : pointer to hold beacon send cmd parameter |
| 665 | * |
| 666 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 667 | */ |
| 668 | QDF_STATUS wmi_unified_beacon_tmpl_send_cmd(void *wmi_hdl, |
| 669 | struct beacon_tmpl_params *param) |
| 670 | { |
| 671 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 672 | |
| 673 | if (wmi_handle->ops->send_beacon_tmpl_send_cmd) |
| 674 | return wmi_handle->ops->send_beacon_tmpl_send_cmd(wmi_handle, |
| 675 | param); |
| 676 | |
| 677 | return QDF_STATUS_E_FAILURE; |
| 678 | } |
| 679 | /** |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 680 | * wmi_unified_peer_assoc_send() - WMI peer assoc function |
| 681 | * @param wmi_handle : handle to WMI. |
| 682 | * @param macaddr : MAC address |
| 683 | * @param param : pointer to peer assoc parameter |
| 684 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 685 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 686 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 687 | QDF_STATUS wmi_unified_peer_assoc_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 688 | struct peer_assoc_params *param) |
| 689 | { |
| 690 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 691 | |
| 692 | if (wmi_handle->ops->send_peer_assoc_cmd) |
| 693 | return wmi_handle->ops->send_peer_assoc_cmd(wmi_handle, |
Govind Singh | d3156eb | 2016-02-26 17:50:39 +0530 | [diff] [blame] | 694 | param); |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 695 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 696 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 697 | } |
| 698 | |
| 699 | /** |
| 700 | * wmi_unified_scan_start_cmd_send() - WMI scan start function |
| 701 | * @param wmi_handle : handle to WMI. |
| 702 | * @param macaddr : MAC address |
| 703 | * @param param : pointer to hold scan start cmd parameter |
| 704 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 705 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 706 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 707 | QDF_STATUS wmi_unified_scan_start_cmd_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 708 | struct scan_start_params *param) |
| 709 | { |
| 710 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 711 | |
| 712 | if (wmi_handle->ops->send_scan_start_cmd) |
| 713 | return wmi_handle->ops->send_scan_start_cmd(wmi_handle, |
Govind Singh | d3156eb | 2016-02-26 17:50:39 +0530 | [diff] [blame] | 714 | param); |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 715 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 716 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 717 | } |
| 718 | |
| 719 | /** |
| 720 | * wmi_unified_scan_stop_cmd_send() - WMI scan start function |
| 721 | * @param wmi_handle : handle to WMI. |
| 722 | * @param macaddr : MAC address |
| 723 | * @param param : pointer to hold scan start cmd parameter |
| 724 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 725 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 726 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 727 | QDF_STATUS wmi_unified_scan_stop_cmd_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 728 | struct scan_stop_params *param) |
| 729 | { |
| 730 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 731 | |
| 732 | if (wmi_handle->ops->send_scan_stop_cmd) |
| 733 | return wmi_handle->ops->send_scan_stop_cmd(wmi_handle, |
Govind Singh | d3156eb | 2016-02-26 17:50:39 +0530 | [diff] [blame] | 734 | param); |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 735 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 736 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 737 | } |
| 738 | |
| 739 | /** |
| 740 | * wmi_unified_scan_chan_list_cmd_send() - WMI scan channel list function |
| 741 | * @param wmi_handle : handle to WMI. |
| 742 | * @param macaddr : MAC address |
| 743 | * @param param : pointer to hold scan channel list parameter |
| 744 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 745 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 746 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 747 | QDF_STATUS wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl, |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 748 | struct scan_chan_list_params *param) |
| 749 | { |
| 750 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 751 | |
| 752 | if (wmi_handle->ops->send_scan_chan_list_cmd) |
| 753 | return wmi_handle->ops->send_scan_chan_list_cmd(wmi_handle, |
Govind Singh | d3156eb | 2016-02-26 17:50:39 +0530 | [diff] [blame] | 754 | param); |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 755 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 756 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 5eb5153 | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 757 | } |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 758 | |
| 759 | /** |
| 760 | * wmi_mgmt_unified_cmd_send() - management cmd over wmi layer |
| 761 | * @wmi_hdl : handle to WMI. |
| 762 | * @param : pointer to hold mgmt cmd parameter |
| 763 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 764 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 765 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 766 | QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 767 | struct wmi_mgmt_params *param) |
| 768 | { |
| 769 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 770 | |
| 771 | if (wmi_handle->ops->send_mgmt_cmd) |
| 772 | return wmi_handle->ops->send_mgmt_cmd(wmi_handle, |
| 773 | param); |
| 774 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 775 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 776 | } |
| 777 | |
| 778 | /** |
| 779 | * wmi_unified_modem_power_state() - set modem power state to fw |
| 780 | * @wmi_hdl: wmi handle |
| 781 | * @param_value: parameter value |
| 782 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 783 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 784 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 785 | QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 786 | uint32_t param_value) |
| 787 | { |
| 788 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 789 | |
| 790 | if (wmi_handle->ops->send_modem_power_state_cmd) |
| 791 | return wmi_handle->ops->send_modem_power_state_cmd(wmi_handle, |
| 792 | param_value); |
| 793 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 794 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 795 | } |
| 796 | |
| 797 | /** |
| 798 | * wmi_unified_set_sta_ps_mode() - set sta powersave params in fw |
| 799 | * @wmi_hdl: wmi handle |
| 800 | * @vdev_id: vdev id |
| 801 | * @val: value |
| 802 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 803 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 804 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 805 | QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 806 | uint32_t vdev_id, uint8_t val) |
| 807 | { |
| 808 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 809 | |
| 810 | if (wmi_handle->ops->send_set_sta_ps_mode_cmd) |
| 811 | return wmi_handle->ops->send_set_sta_ps_mode_cmd(wmi_handle, |
| 812 | vdev_id, val); |
| 813 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 814 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 815 | } |
| 816 | |
| 817 | /** |
| 818 | * wmi_set_mimops() - set MIMO powersave |
| 819 | * @wmi_hdl: wmi handle |
| 820 | * @vdev_id: vdev id |
| 821 | * @value: value |
| 822 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 823 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 824 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 825 | QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value) |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 826 | { |
| 827 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 828 | |
| 829 | if (wmi_handle->ops->send_set_mimops_cmd) |
| 830 | return wmi_handle->ops->send_set_mimops_cmd(wmi_handle, |
| 831 | vdev_id, value); |
| 832 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 833 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 834 | } |
| 835 | |
| 836 | /** |
| 837 | * wmi_set_smps_params() - set smps params |
| 838 | * @wmi_hdl: wmi handle |
| 839 | * @vdev_id: vdev id |
| 840 | * @value: value |
| 841 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 842 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 843 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 844 | QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 845 | int value) |
| 846 | { |
| 847 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 848 | |
| 849 | if (wmi_handle->ops->send_set_smps_params_cmd) |
| 850 | return wmi_handle->ops->send_set_smps_params_cmd(wmi_handle, |
| 851 | vdev_id, value); |
| 852 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 853 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 854 | } |
| 855 | |
| 856 | |
| 857 | /** |
| 858 | * wmi_set_p2pgo_oppps_req() - send p2p go opp power save request to fw |
| 859 | * @wmi_hdl: wmi handle |
| 860 | * @opps: p2p opp power save parameters |
| 861 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 862 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 863 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 864 | QDF_STATUS wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 865 | struct p2p_ps_params *oppps) |
| 866 | { |
| 867 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 868 | |
| 869 | if (wmi_handle->ops->send_set_p2pgo_oppps_req_cmd) |
| 870 | return wmi_handle->ops->send_set_p2pgo_oppps_req_cmd(wmi_handle, |
| 871 | oppps); |
| 872 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 873 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 874 | } |
| 875 | |
| 876 | /** |
| 877 | * wmi_unified_set_p2pgo_noa_req_cmd() - send p2p go noa request to fw |
| 878 | * @wmi_hdl: wmi handle |
| 879 | * @noa: p2p power save parameters |
| 880 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 881 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 882 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 883 | QDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl, |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 884 | struct p2p_ps_params *noa) |
| 885 | { |
| 886 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 887 | |
| 888 | if (wmi_handle->ops->send_set_p2pgo_noa_req_cmd) |
| 889 | return wmi_handle->ops->send_set_p2pgo_noa_req_cmd(wmi_handle, |
| 890 | noa); |
| 891 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 892 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 893 | } |
| 894 | |
| 895 | /** |
| 896 | * wmi_get_temperature() - get pdev temperature req |
| 897 | * @wmi_hdl: wmi handle |
| 898 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 899 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 900 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 901 | QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl) |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 902 | { |
| 903 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 904 | |
| 905 | if (wmi_handle->ops->send_get_temperature_cmd) |
| 906 | return wmi_handle->ops->send_get_temperature_cmd(wmi_handle); |
| 907 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 908 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 909 | } |
| 910 | |
| 911 | /** |
| 912 | * wmi_unified_set_sta_uapsd_auto_trig_cmd() - set uapsd auto trigger command |
| 913 | * @wmi_hdl: wmi handle |
| 914 | * @end_set_sta_ps_mode_cmd: cmd paramter strcture |
| 915 | * |
| 916 | * This function sets the trigger |
| 917 | * uapsd params such as service interval, delay interval |
| 918 | * and suspend interval which will be used by the firmware |
| 919 | * to send trigger frames periodically when there is no |
| 920 | * traffic on the transmit side. |
| 921 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 922 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 923 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 924 | QDF_STATUS |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 925 | wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl, |
| 926 | struct sta_uapsd_trig_params *param) |
| 927 | { |
| 928 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 929 | |
| 930 | if (wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd) |
| 931 | return wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd(wmi_handle, |
| 932 | param); |
| 933 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 934 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 427ee5a | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 935 | } |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 936 | |
| 937 | /** |
| 938 | * wmi_unified_ocb_start_timing_advert() - start sending the timing advertisement |
| 939 | * frames on a channel |
| 940 | * @wmi_handle: pointer to the wmi handle |
| 941 | * @timing_advert: pointer to the timing advertisement struct |
| 942 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 943 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 944 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 945 | QDF_STATUS wmi_unified_ocb_start_timing_advert(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 946 | struct ocb_timing_advert_param *timing_advert) |
| 947 | { |
| 948 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 949 | |
| 950 | if (wmi_handle->ops->send_ocb_start_timing_advert_cmd) |
| 951 | return wmi_handle->ops->send_ocb_start_timing_advert_cmd(wmi_handle, |
| 952 | timing_advert); |
| 953 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 954 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 955 | } |
| 956 | |
| 957 | /** |
| 958 | * wmi_unified_ocb_stop_timing_advert() - stop sending the timing advertisement |
| 959 | * frames on a channel |
| 960 | * @wmi_handle: pointer to the wmi handle |
| 961 | * @timing_advert: pointer to the timing advertisement struct |
| 962 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 963 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 964 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 965 | QDF_STATUS wmi_unified_ocb_stop_timing_advert(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 966 | struct ocb_timing_advert_param *timing_advert) |
| 967 | { |
| 968 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 969 | |
| 970 | if (wmi_handle->ops->send_ocb_stop_timing_advert_cmd) |
| 971 | return wmi_handle->ops->send_ocb_stop_timing_advert_cmd(wmi_handle, |
| 972 | timing_advert); |
| 973 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 974 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 975 | } |
| 976 | |
| 977 | /** |
| 978 | * wmi_unified_ocb_set_utc_time_cmd() - get ocb tsf timer val |
| 979 | * @wmi_handle: pointer to the wmi handle |
| 980 | * @vdev_id: vdev id |
| 981 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 982 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 983 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 984 | QDF_STATUS wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 985 | struct ocb_utc_param *utc) |
| 986 | { |
| 987 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 988 | |
| 989 | if (wmi_handle->ops->send_ocb_set_utc_time_cmd) |
| 990 | return wmi_handle->ops->send_ocb_set_utc_time_cmd(wmi_handle, |
| 991 | utc); |
| 992 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 993 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 994 | } |
| 995 | |
| 996 | /** |
| 997 | * wmi_unified_ocb_get_tsf_timer() - get ocb tsf timer val |
| 998 | * @wmi_handle: pointer to the wmi handle |
| 999 | * @vdev_id: vdev id |
| 1000 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1001 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1002 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1003 | QDF_STATUS wmi_unified_ocb_get_tsf_timer(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1004 | uint8_t vdev_id) |
| 1005 | { |
| 1006 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1007 | |
| 1008 | if (wmi_handle->ops->send_ocb_get_tsf_timer_cmd) |
| 1009 | return wmi_handle->ops->send_ocb_get_tsf_timer_cmd(wmi_handle, |
| 1010 | vdev_id); |
| 1011 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1012 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1013 | } |
| 1014 | |
| 1015 | /** |
| 1016 | * wmi_unified_dcc_get_stats_cmd() - get the DCC channel stats |
| 1017 | * @wmi_handle: pointer to the wmi handle |
| 1018 | * @get_stats_param: pointer to the dcc stats |
| 1019 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1020 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1021 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1022 | QDF_STATUS wmi_unified_dcc_get_stats_cmd(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1023 | struct dcc_get_stats_param *get_stats_param) |
| 1024 | { |
| 1025 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1026 | |
| 1027 | if (wmi_handle->ops->send_dcc_get_stats_cmd) |
| 1028 | return wmi_handle->ops->send_dcc_get_stats_cmd(wmi_handle, |
| 1029 | get_stats_param); |
| 1030 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1031 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1032 | } |
| 1033 | |
| 1034 | /** |
| 1035 | * wmi_unified_dcc_clear_stats() - command to clear the DCC stats |
| 1036 | * @wmi_handle: pointer to the wmi handle |
| 1037 | * @clear_stats_param: parameters to the command |
| 1038 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1039 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1040 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1041 | QDF_STATUS wmi_unified_dcc_clear_stats(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1042 | uint32_t vdev_id, uint32_t dcc_stats_bitmap) |
| 1043 | { |
| 1044 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1045 | |
| 1046 | if (wmi_handle->ops->send_dcc_clear_stats_cmd) |
| 1047 | return wmi_handle->ops->send_dcc_clear_stats_cmd(wmi_handle, |
| 1048 | vdev_id, dcc_stats_bitmap); |
| 1049 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1050 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1051 | } |
| 1052 | |
| 1053 | /** |
| 1054 | * wmi_unified_dcc_update_ndl() - command to update the NDL data |
| 1055 | * @wmi_handle: pointer to the wmi handle |
| 1056 | * @update_ndl_param: pointer to the request parameters |
| 1057 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1058 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1059 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1060 | QDF_STATUS wmi_unified_dcc_update_ndl(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1061 | struct dcc_update_ndl_param *update_ndl_param) |
| 1062 | { |
| 1063 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1064 | |
| 1065 | if (wmi_handle->ops->send_dcc_update_ndl_cmd) |
| 1066 | return wmi_handle->ops->send_dcc_update_ndl_cmd(wmi_handle, |
| 1067 | update_ndl_param); |
| 1068 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1069 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1070 | } |
| 1071 | |
| 1072 | /** |
| 1073 | * wmi_unified_ocb_set_config() - send the OCB config to the FW |
| 1074 | * @wmi_handle: pointer to the wmi handle |
| 1075 | * @config: the OCB configuration |
| 1076 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1077 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1078 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1079 | QDF_STATUS wmi_unified_ocb_set_config(void *wmi_hdl, |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1080 | struct ocb_config_param *config, uint32_t *ch_mhz) |
| 1081 | { |
| 1082 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1083 | |
| 1084 | if (wmi_handle->ops->send_ocb_set_config_cmd) |
| 1085 | return wmi_handle->ops->send_ocb_set_config_cmd(wmi_handle, |
| 1086 | config, ch_mhz); |
| 1087 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1088 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 2edc80f | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 1089 | } |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1090 | |
| 1091 | /** |
| 1092 | * wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd() - control mcc scheduler |
| 1093 | * @wmi_handle: wmi handle |
| 1094 | * @mcc_adaptive_scheduler: enable/disable |
| 1095 | * |
| 1096 | * This function enable/disable mcc adaptive scheduler in fw. |
| 1097 | * |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1098 | * Return: QDF_STATUS_SUCCESS for sucess or error code |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1099 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1100 | QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd( |
Govind Singh | 4df4714 | 2016-04-16 19:24:23 -0700 | [diff] [blame] | 1101 | void *wmi_hdl, uint32_t mcc_adaptive_scheduler, |
| 1102 | uint32_t pdev_id) |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1103 | { |
| 1104 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1105 | |
| 1106 | if (wmi_handle->ops->send_set_enable_disable_mcc_adaptive_scheduler_cmd) |
| 1107 | return wmi_handle->ops->send_set_enable_disable_mcc_adaptive_scheduler_cmd(wmi_handle, |
Govind Singh | 4df4714 | 2016-04-16 19:24:23 -0700 | [diff] [blame] | 1108 | mcc_adaptive_scheduler, pdev_id); |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1109 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1110 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1111 | } |
| 1112 | |
| 1113 | /** |
| 1114 | * wmi_unified_set_mcc_channel_time_latency_cmd() - set MCC channel time latency |
| 1115 | * @wmi: wmi handle |
| 1116 | * @mcc_channel: mcc channel |
| 1117 | * @mcc_channel_time_latency: MCC channel time latency. |
| 1118 | * |
| 1119 | * Currently used to set time latency for an MCC vdev/adapter using operating |
| 1120 | * channel of it and channel number. The info is provided run time using |
| 1121 | * iwpriv command: iwpriv <wlan0 | p2p0> setMccLatency <latency in ms>. |
| 1122 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1123 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1124 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1125 | QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd(void *wmi_hdl, |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1126 | uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency) |
| 1127 | { |
| 1128 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1129 | |
| 1130 | if (wmi_handle->ops->send_set_mcc_channel_time_latency_cmd) |
| 1131 | return wmi_handle->ops->send_set_mcc_channel_time_latency_cmd(wmi_handle, |
| 1132 | mcc_channel_freq, |
| 1133 | mcc_channel_time_latency); |
| 1134 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1135 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1136 | } |
| 1137 | |
| 1138 | /** |
| 1139 | * wmi_unified_set_mcc_channel_time_quota_cmd() - set MCC channel time quota |
| 1140 | * @wmi: wmi handle |
| 1141 | * @adapter_1_chan_number: adapter 1 channel number |
| 1142 | * @adapter_1_quota: adapter 1 quota |
| 1143 | * @adapter_2_chan_number: adapter 2 channel number |
| 1144 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1145 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1146 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1147 | QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1148 | uint32_t adapter_1_chan_freq, |
| 1149 | uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq) |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1150 | { |
| 1151 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1152 | |
| 1153 | if (wmi_handle->ops->send_set_mcc_channel_time_quota_cmd) |
| 1154 | return wmi_handle->ops->send_set_mcc_channel_time_quota_cmd(wmi_handle, |
| 1155 | adapter_1_chan_freq, |
| 1156 | adapter_1_quota, |
| 1157 | adapter_2_chan_freq); |
| 1158 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1159 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1160 | } |
| 1161 | |
| 1162 | /** |
| 1163 | * wmi_unified_set_thermal_mgmt_cmd() - set thermal mgmt command to fw |
| 1164 | * @wmi_handle: Pointer to wmi handle |
| 1165 | * @thermal_info: Thermal command information |
| 1166 | * |
| 1167 | * This function sends the thermal management command |
| 1168 | * to the firmware |
| 1169 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1170 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1171 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1172 | QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl, |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1173 | struct thermal_cmd_params *thermal_info) |
| 1174 | { |
| 1175 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1176 | |
| 1177 | if (wmi_handle->ops->send_set_thermal_mgmt_cmd) |
| 1178 | return wmi_handle->ops->send_set_thermal_mgmt_cmd(wmi_handle, |
| 1179 | thermal_info); |
| 1180 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1181 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1182 | } |
| 1183 | |
| 1184 | |
| 1185 | /** |
| 1186 | * wmi_unified_lro_config_cmd() - process the LRO config command |
| 1187 | * @wmi: Pointer to wmi handle |
| 1188 | * @wmi_lro_cmd: Pointer to LRO configuration parameters |
| 1189 | * |
| 1190 | * This function sends down the LRO configuration parameters to |
| 1191 | * the firmware to enable LRO, sets the TCP flags and sets the |
| 1192 | * seed values for the toeplitz hash generation |
| 1193 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1194 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1195 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1196 | QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl, |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1197 | struct wmi_lro_config_cmd_t *wmi_lro_cmd) |
| 1198 | { |
| 1199 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1200 | |
| 1201 | if (wmi_handle->ops->send_lro_config_cmd) |
| 1202 | return wmi_handle->ops->send_lro_config_cmd(wmi_handle, |
| 1203 | wmi_lro_cmd); |
| 1204 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1205 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 17a9cfa | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 1206 | } |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1207 | |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1208 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1209 | /** |
Poddar, Siddarth | 98281c4 | 2016-04-28 15:49:11 +0530 | [diff] [blame] | 1210 | * wmi_unified_peer_rate_report_cmd() - process the peer rate report command |
| 1211 | * @wmi_hdl: Pointer to wmi handle |
| 1212 | * @rate_report_params: Pointer to peer rate report parameters |
| 1213 | * |
| 1214 | * |
| 1215 | * Return: QDF_STATUS_SUCCESS for success otherwise failure |
| 1216 | */ |
| 1217 | QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl, |
| 1218 | struct wmi_peer_rate_report_params *rate_report_params) |
| 1219 | { |
| 1220 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1221 | |
| 1222 | if (wmi_handle->ops->send_peer_rate_report_cmd) |
| 1223 | return wmi_handle->ops->send_peer_rate_report_cmd(wmi_handle, |
| 1224 | rate_report_params); |
| 1225 | |
| 1226 | return QDF_STATUS_E_FAILURE; |
| 1227 | } |
| 1228 | |
| 1229 | /** |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1230 | * wmi_unified_bcn_buf_ll_cmd() - prepare and send beacon buffer to fw for LL |
| 1231 | * @wmi_hdl: wmi handle |
| 1232 | * @param: bcn ll cmd parameter |
| 1233 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1234 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1235 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1236 | QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1237 | wmi_bcn_send_from_host_cmd_fixed_param *param) |
| 1238 | { |
| 1239 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1240 | |
| 1241 | if (wmi_handle->ops->send_bcn_buf_ll_cmd) |
| 1242 | return wmi_handle->ops->send_bcn_buf_ll_cmd(wmi_handle, |
| 1243 | param); |
| 1244 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1245 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1246 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1247 | #endif |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1248 | |
| 1249 | /** |
| 1250 | * wmi_unified_set_sta_sa_query_param_cmd() - set sta sa query parameters |
| 1251 | * @wmi_hdl: wmi handle |
| 1252 | * @vdev_id: vdev id |
| 1253 | * @max_retries: max retries |
| 1254 | * @retry_interval: retry interval |
| 1255 | * This function sets sta query related parameters in fw. |
| 1256 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1257 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1258 | */ |
| 1259 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1260 | QDF_STATUS wmi_unified_set_sta_sa_query_param_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1261 | uint8_t vdev_id, uint32_t max_retries, |
| 1262 | uint32_t retry_interval) |
| 1263 | { |
| 1264 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1265 | |
| 1266 | if (wmi_handle->ops->send_set_sta_sa_query_param_cmd) |
| 1267 | return wmi_handle->ops->send_set_sta_sa_query_param_cmd(wmi_handle, |
| 1268 | vdev_id, max_retries, |
| 1269 | retry_interval); |
| 1270 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1271 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1272 | } |
| 1273 | |
| 1274 | /** |
| 1275 | * wmi_unified_set_sta_keep_alive_cmd() - set sta keep alive parameters |
| 1276 | * @wmi_hdl: wmi handle |
| 1277 | * @params: sta keep alive parameter |
| 1278 | * |
| 1279 | * This function sets keep alive related parameters in fw. |
| 1280 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1281 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1282 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1283 | QDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1284 | struct sta_params *params) |
| 1285 | { |
| 1286 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1287 | |
| 1288 | if (wmi_handle->ops->send_set_sta_keep_alive_cmd) |
| 1289 | return wmi_handle->ops->send_set_sta_keep_alive_cmd(wmi_handle, |
| 1290 | params); |
| 1291 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1292 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1293 | } |
| 1294 | |
| 1295 | /** |
| 1296 | * wmi_unified_vdev_set_gtx_cfg_cmd() - set GTX params |
| 1297 | * @wmi_hdl: wmi handle |
| 1298 | * @if_id: vdev id |
| 1299 | * @gtx_info: GTX config params |
| 1300 | * |
| 1301 | * This function set GTX related params in firmware. |
| 1302 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1303 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1304 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1305 | QDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1306 | struct wmi_gtx_config *gtx_info) |
| 1307 | { |
| 1308 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1309 | |
| 1310 | if (wmi_handle->ops->send_vdev_set_gtx_cfg_cmd) |
| 1311 | return wmi_handle->ops->send_vdev_set_gtx_cfg_cmd(wmi_handle, |
| 1312 | if_id, gtx_info); |
| 1313 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1314 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1315 | } |
| 1316 | |
| 1317 | /** |
| 1318 | * wmi_unified_process_update_edca_param() - update EDCA params |
| 1319 | * @wmi_hdl: wmi handle |
| 1320 | * @edca_params: edca parameters |
| 1321 | * |
| 1322 | * This function updates EDCA parameters to the target |
| 1323 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1324 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1325 | */ |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1326 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1327 | QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1328 | uint8_t vdev_id, |
| 1329 | wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]) |
| 1330 | { |
| 1331 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1332 | |
| 1333 | if (wmi_handle->ops->send_process_update_edca_param_cmd) |
| 1334 | return wmi_handle->ops->send_process_update_edca_param_cmd(wmi_handle, |
| 1335 | vdev_id, gwmm_param); |
| 1336 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1337 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1338 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1339 | #endif |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1340 | |
| 1341 | /** |
| 1342 | * wmi_unified_probe_rsp_tmpl_send_cmd() - send probe response template to fw |
| 1343 | * @wmi_hdl: wmi handle |
| 1344 | * @vdev_id: vdev id |
| 1345 | * @probe_rsp_info: probe response info |
| 1346 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1347 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1348 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1349 | QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1350 | uint8_t vdev_id, |
| 1351 | struct wmi_probe_resp_params *probe_rsp_info, |
| 1352 | uint8_t *frm) |
| 1353 | { |
| 1354 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1355 | |
| 1356 | if (wmi_handle->ops->send_probe_rsp_tmpl_send_cmd) |
| 1357 | return wmi_handle->ops->send_probe_rsp_tmpl_send_cmd(wmi_handle, |
| 1358 | vdev_id, probe_rsp_info, |
| 1359 | frm); |
| 1360 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1361 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1362 | } |
| 1363 | |
| 1364 | /** |
Himanshu Agarwal | 712622f | 2016-03-09 18:49:18 +0530 | [diff] [blame] | 1365 | * wmi_unified_setup_install_key_cmd - send key to install to fw |
| 1366 | * @wmi_hdl: wmi handle |
| 1367 | * @key_params: key parameters |
| 1368 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1369 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | 712622f | 2016-03-09 18:49:18 +0530 | [diff] [blame] | 1370 | */ |
| 1371 | QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl, |
| 1372 | struct set_key_params *key_params) |
| 1373 | { |
| 1374 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1375 | |
| 1376 | if (wmi_handle->ops->send_setup_install_key_cmd) |
| 1377 | return wmi_handle->ops->send_setup_install_key_cmd(wmi_handle, |
| 1378 | key_params); |
| 1379 | |
| 1380 | return QDF_STATUS_E_FAILURE; |
| 1381 | } |
| 1382 | |
| 1383 | /** |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1384 | * wmi_unified_p2p_go_set_beacon_ie_cmd() - set beacon IE for p2p go |
| 1385 | * @wma_handle: wma handle |
| 1386 | * @vdev_id: vdev id |
| 1387 | * @p2p_ie: p2p IE |
| 1388 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1389 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1390 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1391 | QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1392 | A_UINT32 vdev_id, uint8_t *p2p_ie) |
| 1393 | { |
| 1394 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1395 | |
| 1396 | if (wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd) |
| 1397 | return wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd(wmi_handle, |
| 1398 | vdev_id, p2p_ie); |
| 1399 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1400 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1401 | } |
| 1402 | |
| 1403 | /** |
| 1404 | * wmi_unified_set_gateway_params_cmd() - set gateway parameters |
| 1405 | * @wmi_hdl: wmi handle |
| 1406 | * @req: gateway parameter update request structure |
| 1407 | * |
| 1408 | * This function reads the incoming @req and fill in the destination |
| 1409 | * WMI structure and sends down the gateway configs down to the firmware |
| 1410 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1411 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures; |
| 1412 | * error number otherwise |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1413 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1414 | QDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1415 | struct gateway_update_req_param *req) |
| 1416 | { |
| 1417 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1418 | |
| 1419 | if (wmi_handle->ops->send_set_gateway_params_cmd) |
| 1420 | return wmi_handle->ops->send_set_gateway_params_cmd(wmi_handle, |
| 1421 | req); |
| 1422 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1423 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1424 | } |
| 1425 | |
| 1426 | /** |
| 1427 | * wmi_unified_set_rssi_monitoring_cmd() - set rssi monitoring |
| 1428 | * @wmi_hdl: wmi handle |
| 1429 | * @req: rssi monitoring request structure |
| 1430 | * |
| 1431 | * This function reads the incoming @req and fill in the destination |
| 1432 | * WMI structure and send down the rssi monitoring configs down to the firmware |
| 1433 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1434 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures; |
| 1435 | * error number otherwise |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1436 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1437 | QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1438 | struct rssi_monitor_param *req) |
| 1439 | { |
| 1440 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1441 | |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1442 | if (wmi_handle->ops->send_set_rssi_monitoring_cmd) |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1443 | return wmi_handle->ops->send_set_rssi_monitoring_cmd(wmi_handle, |
| 1444 | req); |
| 1445 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1446 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1447 | } |
| 1448 | |
| 1449 | /** |
| 1450 | * wmi_unified_scan_probe_setoui_cmd() - set scan probe OUI |
| 1451 | * @wmi_hdl: wmi handle |
| 1452 | * @psetoui: OUI parameters |
| 1453 | * |
| 1454 | * set scan probe OUI parameters in firmware |
| 1455 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1456 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1457 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1458 | QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1459 | struct scan_mac_oui *psetoui) |
| 1460 | { |
| 1461 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1462 | |
| 1463 | if (wmi_handle->ops->send_scan_probe_setoui_cmd) |
| 1464 | return wmi_handle->ops->send_scan_probe_setoui_cmd(wmi_handle, |
| 1465 | psetoui); |
| 1466 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1467 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1468 | } |
| 1469 | |
| 1470 | /** |
| 1471 | * wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list |
| 1472 | * @wmi_hdl: wmi handle |
| 1473 | * @req: passpoint network request structure |
| 1474 | * |
| 1475 | * This function sends down WMI command with network id set to wildcard id. |
| 1476 | * firmware shall clear all the config entries |
| 1477 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1478 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1479 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1480 | QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1481 | struct wifi_passpoint_req_param *req) |
| 1482 | { |
| 1483 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1484 | |
| 1485 | if (wmi_handle->ops->send_reset_passpoint_network_list_cmd) |
| 1486 | return wmi_handle->ops->send_reset_passpoint_network_list_cmd(wmi_handle, |
| 1487 | req); |
| 1488 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1489 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1490 | } |
| 1491 | |
| 1492 | /** |
| 1493 | * wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list |
| 1494 | * @wmi_hdl: wmi handle |
| 1495 | * @req: passpoint network request structure |
| 1496 | * |
| 1497 | * This function reads the incoming @req and fill in the destination |
| 1498 | * WMI structure and send down the passpoint configs down to the firmware |
| 1499 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1500 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1501 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1502 | QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1503 | struct wifi_passpoint_req_param *req) |
| 1504 | { |
| 1505 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1506 | |
| 1507 | if (wmi_handle->ops->send_set_passpoint_network_list_cmd) |
| 1508 | return wmi_handle->ops->send_set_passpoint_network_list_cmd(wmi_handle, |
| 1509 | req); |
| 1510 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1511 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1512 | } |
| 1513 | |
| 1514 | /** wmi_unified_set_epno_network_list_cmd() - set epno network list |
| 1515 | * @wmi_hdl: wmi handle |
| 1516 | * @req: epno config params request structure |
| 1517 | * |
| 1518 | * This function reads the incoming epno config request structure |
| 1519 | * and constructs the WMI message to the firmware. |
| 1520 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1521 | * Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures, |
| 1522 | * error number otherwise |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1523 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1524 | QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1525 | struct wifi_enhanched_pno_params *req) |
| 1526 | { |
| 1527 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1528 | |
| 1529 | if (wmi_handle->ops->send_set_epno_network_list_cmd) |
| 1530 | return wmi_handle->ops->send_set_epno_network_list_cmd(wmi_handle, |
| 1531 | req); |
| 1532 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1533 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1534 | } |
| 1535 | |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1536 | #ifndef WMI_NON_TLV_SUPPORT |
Himanshu Agarwal | c5e4d89 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 1537 | /** |
| 1538 | * wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters |
| 1539 | * @wmi_hdl: wmi handle |
| 1540 | * @scan_cmd_fp: scan related parameters |
| 1541 | * @roam_req: roam related parameters |
| 1542 | * |
| 1543 | * This function reads the incoming @roam_req and fill in the destination |
| 1544 | * WMI structure and send down the roam scan configs down to the firmware |
| 1545 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1546 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | c5e4d89 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 1547 | */ |
| 1548 | QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl, |
| 1549 | wmi_start_scan_cmd_fixed_param *scan_cmd_fp, |
| 1550 | struct roam_offload_scan_params *roam_req) |
| 1551 | { |
| 1552 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1553 | |
| 1554 | if (wmi_handle->ops->send_roam_scan_offload_mode_cmd) |
| 1555 | return wmi_handle->ops->send_roam_scan_offload_mode_cmd( |
| 1556 | wmi_handle, scan_cmd_fp, roam_req); |
| 1557 | |
| 1558 | return QDF_STATUS_E_FAILURE; |
| 1559 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1560 | #endif |
Himanshu Agarwal | c5e4d89 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 1561 | |
| 1562 | /** |
| 1563 | * wmi_unified_roam_scan_offload_rssi_thresh_cmd() - set roam scan rssi |
| 1564 | * parameters |
| 1565 | * @wmi_hdl: wmi handle |
| 1566 | * @roam_req: roam rssi related parameters |
| 1567 | * |
| 1568 | * This function reads the incoming @roam_req and fill in the destination |
| 1569 | * WMI structure and send down the roam scan rssi configs down to the firmware |
| 1570 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1571 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | c5e4d89 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 1572 | */ |
| 1573 | QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl, |
| 1574 | struct roam_offload_scan_rssi_params |
| 1575 | *roam_req) |
| 1576 | { |
| 1577 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1578 | |
| 1579 | if (wmi_handle->ops->send_roam_scan_offload_rssi_thresh_cmd) |
| 1580 | return wmi_handle->ops->send_roam_scan_offload_rssi_thresh_cmd( |
| 1581 | wmi_handle, roam_req); |
| 1582 | |
| 1583 | return QDF_STATUS_E_FAILURE; |
| 1584 | } |
| 1585 | |
| 1586 | /** |
| 1587 | * wmi_unified_roam_scan_filter_cmd() - send roam scan whitelist, |
| 1588 | * blacklist and preferred list |
| 1589 | * @wmi_hdl: wmi handle |
| 1590 | * @roam_req: roam scan lists related parameters |
| 1591 | * |
| 1592 | * This function reads the incoming @roam_req and fill in the destination |
| 1593 | * WMI structure and send down the different roam scan lists down to the fw |
| 1594 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1595 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Himanshu Agarwal | c5e4d89 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 1596 | */ |
| 1597 | QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl, |
| 1598 | struct roam_scan_filter_params *roam_req) |
| 1599 | { |
| 1600 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1601 | |
| 1602 | if (wmi_handle->ops->send_roam_scan_filter_cmd) |
| 1603 | return wmi_handle->ops->send_roam_scan_filter_cmd( |
| 1604 | wmi_handle, roam_req); |
| 1605 | |
| 1606 | return QDF_STATUS_E_FAILURE; |
| 1607 | } |
| 1608 | |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1609 | /** wmi_unified_ipa_offload_control_cmd() - ipa offload control parameter |
| 1610 | * @wmi_hdl: wmi handle |
| 1611 | * @ipa_offload: ipa offload control parameter |
| 1612 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1613 | * Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures, |
| 1614 | * error number otherwise |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1615 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1616 | QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1617 | struct ipa_offload_control_params *ipa_offload) |
| 1618 | { |
| 1619 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1620 | |
| 1621 | if (wmi_handle->ops->send_ipa_offload_control_cmd) |
| 1622 | return wmi_handle->ops->send_ipa_offload_control_cmd(wmi_handle, |
| 1623 | ipa_offload); |
| 1624 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1625 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1626 | } |
| 1627 | |
| 1628 | /** |
| 1629 | * wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities |
| 1630 | * @wmi_hdl: wmi handle |
| 1631 | * @pgetcapab: get capabilities params |
| 1632 | * |
| 1633 | * This function send request to fw to get extscan capabilities. |
| 1634 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1635 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1636 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1637 | QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1638 | struct extscan_capabilities_params *pgetcapab) |
| 1639 | { |
| 1640 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1641 | |
| 1642 | if (wmi_handle->ops->send_extscan_get_capabilities_cmd) |
| 1643 | return wmi_handle->ops->send_extscan_get_capabilities_cmd(wmi_handle, |
| 1644 | pgetcapab); |
| 1645 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1646 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1647 | } |
| 1648 | |
| 1649 | /** |
| 1650 | * wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results |
| 1651 | * @wmi_hdl: wmi handle |
| 1652 | * @pcached_results: cached results parameters |
| 1653 | * |
| 1654 | * This function send request to fw to get cached results. |
| 1655 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1656 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1657 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1658 | QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1659 | struct extscan_cached_result_params *pcached_results) |
| 1660 | { |
| 1661 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1662 | |
| 1663 | if (wmi_handle->ops->send_extscan_get_cached_results_cmd) |
| 1664 | return wmi_handle->ops->send_extscan_get_cached_results_cmd(wmi_handle, |
| 1665 | pcached_results); |
| 1666 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1667 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1668 | } |
| 1669 | |
| 1670 | /** |
| 1671 | * wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd |
| 1672 | * @wmi_hdl: wmi handle |
| 1673 | * @reset_req: Reset change request params |
| 1674 | * |
| 1675 | * This function sends stop change monitor request to fw. |
| 1676 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1677 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1678 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1679 | QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1680 | struct extscan_capabilities_reset_params *reset_req) |
| 1681 | { |
| 1682 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1683 | |
| 1684 | if (wmi_handle->ops->send_extscan_stop_change_monitor_cmd) |
| 1685 | return wmi_handle->ops->send_extscan_stop_change_monitor_cmd(wmi_handle, |
| 1686 | reset_req); |
| 1687 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1688 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1689 | } |
| 1690 | |
| 1691 | |
| 1692 | |
| 1693 | /** |
| 1694 | * wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd |
| 1695 | * @wmi_hdl: wmi handle |
| 1696 | * @psigchange: change monitor request params |
| 1697 | * |
| 1698 | * This function sends start change monitor request to fw. |
| 1699 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1700 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1701 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1702 | QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1703 | struct extscan_set_sig_changereq_params * |
| 1704 | psigchange) |
| 1705 | { |
| 1706 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1707 | |
| 1708 | if (wmi_handle->ops->send_extscan_start_change_monitor_cmd) |
| 1709 | return wmi_handle->ops->send_extscan_start_change_monitor_cmd(wmi_handle, |
| 1710 | psigchange); |
| 1711 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1712 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1713 | } |
| 1714 | |
| 1715 | /** |
| 1716 | * wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor |
| 1717 | * @wmi_hdl: wmi handle |
| 1718 | * @photlist_reset: hotlist reset params |
| 1719 | * |
| 1720 | * This function configures hotlist monitor to stop in fw. |
| 1721 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1722 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1723 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1724 | QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1725 | struct extscan_bssid_hotlist_reset_params *photlist_reset) |
| 1726 | { |
| 1727 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1728 | |
| 1729 | if (wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd) |
| 1730 | return wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd(wmi_handle, |
| 1731 | photlist_reset); |
| 1732 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1733 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1734 | } |
| 1735 | |
| 1736 | /** |
| 1737 | * wmi_unified_stop_extscan_cmd() - stop extscan command to fw. |
| 1738 | * @wmi_hdl: wmi handle |
| 1739 | * @pstopcmd: stop scan command request params |
| 1740 | * |
| 1741 | * This function sends stop extscan request to fw. |
| 1742 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1743 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1744 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1745 | QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1746 | struct extscan_stop_req_params *pstopcmd) |
| 1747 | { |
| 1748 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1749 | |
| 1750 | if (wmi_handle->ops->send_stop_extscan_cmd) |
| 1751 | return wmi_handle->ops->send_stop_extscan_cmd(wmi_handle, |
| 1752 | pstopcmd); |
| 1753 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1754 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1755 | } |
| 1756 | |
| 1757 | /** |
| 1758 | * wmi_unified_start_extscan_cmd() - start extscan command to fw. |
| 1759 | * @wmi_hdl: wmi handle |
| 1760 | * @pstart: scan command request params |
| 1761 | * |
| 1762 | * This function sends start extscan request to fw. |
| 1763 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1764 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1765 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1766 | QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1767 | struct wifi_scan_cmd_req_params *pstart) |
| 1768 | { |
| 1769 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1770 | |
| 1771 | if (wmi_handle->ops->send_start_extscan_cmd) |
| 1772 | return wmi_handle->ops->send_start_extscan_cmd(wmi_handle, |
| 1773 | pstart); |
| 1774 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1775 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1776 | } |
| 1777 | |
| 1778 | /** |
| 1779 | * wmi_unified_plm_stop_cmd() - plm stop request |
| 1780 | * @wmi_hdl: wmi handle |
| 1781 | * @plm: plm request parameters |
| 1782 | * |
| 1783 | * This function request FW to stop PLM. |
| 1784 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1785 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1786 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1787 | QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1788 | const struct plm_req_params *plm) |
| 1789 | { |
| 1790 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1791 | |
| 1792 | if (wmi_handle->ops->send_plm_stop_cmd) |
| 1793 | return wmi_handle->ops->send_plm_stop_cmd(wmi_handle, |
| 1794 | plm); |
| 1795 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1796 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1797 | } |
| 1798 | |
| 1799 | /** |
| 1800 | * wmi_unified_plm_start_cmd() - plm start request |
| 1801 | * @wmi_hdl: wmi handle |
| 1802 | * @plm: plm request parameters |
| 1803 | * |
| 1804 | * This function request FW to start PLM. |
| 1805 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1806 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1807 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1808 | QDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1809 | const struct plm_req_params *plm, |
| 1810 | uint32_t *gchannel_list) |
| 1811 | { |
| 1812 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1813 | |
| 1814 | if (wmi_handle->ops->send_plm_start_cmd) |
| 1815 | return wmi_handle->ops->send_plm_start_cmd(wmi_handle, |
| 1816 | plm, gchannel_list); |
| 1817 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1818 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1819 | } |
| 1820 | |
| 1821 | /** |
| 1822 | * send_pno_stop_cmd() - PNO stop request |
| 1823 | * @wmi_hdl: wmi handle |
| 1824 | * @vdev_id: vdev id |
| 1825 | * |
| 1826 | * This function request FW to stop ongoing PNO operation. |
| 1827 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1828 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1829 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1830 | QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id) |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1831 | { |
| 1832 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1833 | |
| 1834 | if (wmi_handle->ops->send_pno_stop_cmd) |
| 1835 | return wmi_handle->ops->send_pno_stop_cmd(wmi_handle, |
| 1836 | vdev_id); |
| 1837 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1838 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1839 | } |
| 1840 | |
| 1841 | /** |
| 1842 | * wmi_unified_pno_start_cmd() - PNO start request |
| 1843 | * @wmi_hdl: wmi handle |
| 1844 | * @pno: PNO request |
| 1845 | * @gchannel_freq_list: channel frequency list |
| 1846 | * |
| 1847 | * This function request FW to start PNO request. |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1848 | * Request: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1849 | */ |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1850 | #ifdef FEATURE_WLAN_SCAN_PNO |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1851 | QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1852 | struct pno_scan_req_params *pno, |
| 1853 | uint32_t *gchannel_freq_list) |
| 1854 | { |
| 1855 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1856 | |
| 1857 | if (wmi_handle->ops->send_pno_start_cmd) |
| 1858 | return wmi_handle->ops->send_pno_start_cmd(wmi_handle, |
| 1859 | pno, gchannel_freq_list); |
| 1860 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1861 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1862 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1863 | #endif |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1864 | |
| 1865 | /* wmi_unified_set_ric_req_cmd() - set ric request element |
| 1866 | * @wmi_hdl: wmi handle |
| 1867 | * @msg: message |
| 1868 | * @is_add_ts: is addts required |
| 1869 | * |
| 1870 | * This function sets ric request element for 11r roaming. |
| 1871 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1872 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1873 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1874 | QDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1875 | uint8_t is_add_ts) |
| 1876 | { |
| 1877 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1878 | |
| 1879 | if (wmi_handle->ops->send_set_ric_req_cmd) |
| 1880 | return wmi_handle->ops->send_set_ric_req_cmd(wmi_handle, msg, |
| 1881 | is_add_ts); |
| 1882 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1883 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1884 | } |
| 1885 | |
| 1886 | /** |
| 1887 | * wmi_unified_process_ll_stats_clear_cmd() - clear link layer stats |
| 1888 | * @wmi_hdl: wmi handle |
| 1889 | * @clear_req: ll stats clear request command params |
| 1890 | * @addr: mac address |
| 1891 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1892 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1893 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1894 | QDF_STATUS wmi_unified_process_ll_stats_clear_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1895 | const struct ll_stats_clear_params *clear_req, |
| 1896 | uint8_t addr[IEEE80211_ADDR_LEN]) |
| 1897 | { |
| 1898 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1899 | |
| 1900 | if (wmi_handle->ops->send_process_ll_stats_clear_cmd) |
| 1901 | return wmi_handle->ops->send_process_ll_stats_clear_cmd(wmi_handle, |
| 1902 | clear_req, addr); |
| 1903 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1904 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1905 | } |
| 1906 | |
| 1907 | /** |
| 1908 | * wmi_unified_process_ll_stats_get_cmd() - link layer stats get request |
| 1909 | * @wmi_hdl:wmi handle |
| 1910 | * @get_req:ll stats get request command params |
| 1911 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1912 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1913 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1914 | QDF_STATUS wmi_unified_process_ll_stats_get_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1915 | const struct ll_stats_get_params *get_req, |
| 1916 | uint8_t addr[IEEE80211_ADDR_LEN]) |
| 1917 | { |
| 1918 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1919 | |
| 1920 | if (wmi_handle->ops->send_process_ll_stats_get_cmd) |
| 1921 | return wmi_handle->ops->send_process_ll_stats_get_cmd(wmi_handle, |
| 1922 | get_req, addr); |
| 1923 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1924 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1925 | } |
| 1926 | |
| 1927 | /** |
| 1928 | * wmi_unified_get_stats_cmd() - get stats request |
| 1929 | * @wmi_hdl: wma handle |
| 1930 | * @get_stats_param: stats params |
| 1931 | * @addr: mac address |
| 1932 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1933 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1934 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1935 | QDF_STATUS wmi_unified_get_stats_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1936 | struct pe_stats_req *get_stats_param, |
| 1937 | uint8_t addr[IEEE80211_ADDR_LEN]) |
| 1938 | { |
| 1939 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1940 | |
| 1941 | if (wmi_handle->ops->send_get_stats_cmd) |
| 1942 | return wmi_handle->ops->send_get_stats_cmd(wmi_handle, |
| 1943 | get_stats_param, addr); |
| 1944 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1945 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1946 | } |
| 1947 | |
| 1948 | /** |
| 1949 | * wmi_unified_process_ll_stats_set_cmd() - link layer stats set request |
| 1950 | * @wmi_handle: wmi handle |
| 1951 | * @set_req: ll stats set request command params |
| 1952 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1953 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1954 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1955 | QDF_STATUS wmi_unified_process_ll_stats_set_cmd(void *wmi_hdl, |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1956 | const struct ll_stats_set_params *set_req) |
| 1957 | { |
| 1958 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1959 | |
| 1960 | if (wmi_handle->ops->send_process_ll_stats_set_cmd) |
| 1961 | return wmi_handle->ops->send_process_ll_stats_set_cmd(wmi_handle, |
| 1962 | set_req); |
| 1963 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1964 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 4eacd2b | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 1965 | } |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1966 | |
| 1967 | /** |
| 1968 | * wmi_unified_snr_request_cmd() - send request to fw to get RSSI stats |
| 1969 | * @wmi_handle: wmi handle |
| 1970 | * @rssi_req: get RSSI request |
| 1971 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1972 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1973 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1974 | QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1975 | { |
| 1976 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1977 | |
| 1978 | if (wmi_handle->ops->send_snr_request_cmd) |
| 1979 | return wmi_handle->ops->send_snr_request_cmd(wmi_handle); |
| 1980 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1981 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1982 | } |
| 1983 | |
| 1984 | /** |
| 1985 | * wmi_unified_snr_cmd() - get RSSI from fw |
| 1986 | * @wmi_handle: wmi handle |
| 1987 | * @vdev_id: vdev id |
| 1988 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1989 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1990 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1991 | QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1992 | { |
| 1993 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 1994 | |
| 1995 | if (wmi_handle->ops->send_snr_cmd) |
| 1996 | return wmi_handle->ops->send_snr_cmd(wmi_handle, |
| 1997 | vdev_id); |
| 1998 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1999 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2000 | } |
| 2001 | |
| 2002 | /** |
| 2003 | * wmi_unified_link_status_req_cmd() - process link status request from UMAC |
| 2004 | * @wmi_handle: wmi handle |
| 2005 | * @link_status: get link params |
| 2006 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2007 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2008 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2009 | QDF_STATUS wmi_unified_link_status_req_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2010 | struct link_status_params *link_status) |
| 2011 | { |
| 2012 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2013 | |
| 2014 | if (wmi_handle->ops->send_link_status_req_cmd) |
| 2015 | return wmi_handle->ops->send_link_status_req_cmd(wmi_handle, |
| 2016 | link_status); |
| 2017 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2018 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2019 | } |
| 2020 | |
| 2021 | #ifdef FEATURE_WLAN_LPHB |
| 2022 | |
| 2023 | /** |
| 2024 | * wmi_unified_lphb_config_hbenable_cmd() - enable command of LPHB configuration requests |
| 2025 | * @wmi_handle: wmi handle |
| 2026 | * @lphb_conf_req: configuration info |
| 2027 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2028 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2029 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2030 | QDF_STATUS wmi_unified_lphb_config_hbenable_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2031 | wmi_hb_set_enable_cmd_fixed_param *params) |
| 2032 | { |
| 2033 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2034 | |
| 2035 | if (wmi_handle->ops->send_lphb_config_hbenable_cmd) |
| 2036 | return wmi_handle->ops->send_lphb_config_hbenable_cmd(wmi_handle, |
| 2037 | params); |
| 2038 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2039 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2040 | } |
| 2041 | |
| 2042 | /** |
| 2043 | * wmi_unified_lphb_config_tcp_params_cmd() - set tcp params of LPHB configuration requests |
| 2044 | * @wmi_handle: wmi handle |
| 2045 | * @lphb_conf_req: lphb config request |
| 2046 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2047 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2048 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2049 | QDF_STATUS wmi_unified_lphb_config_tcp_params_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2050 | wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req) |
| 2051 | { |
| 2052 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2053 | |
| 2054 | if (wmi_handle->ops->send_lphb_config_tcp_params_cmd) |
| 2055 | return wmi_handle->ops->send_lphb_config_tcp_params_cmd(wmi_handle, |
| 2056 | lphb_conf_req); |
| 2057 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2058 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2059 | } |
| 2060 | |
| 2061 | /** |
| 2062 | * wmi_unified_lphb_config_tcp_pkt_filter_cmd() - configure tcp packet filter command of LPHB |
| 2063 | * @wmi_handle: wmi handle |
| 2064 | * @lphb_conf_req: lphb config request |
| 2065 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2066 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2067 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2068 | QDF_STATUS wmi_unified_lphb_config_tcp_pkt_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2069 | wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp) |
| 2070 | { |
| 2071 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2072 | |
| 2073 | if (wmi_handle->ops->send_lphb_config_tcp_pkt_filter_cmd) |
| 2074 | return wmi_handle->ops->send_lphb_config_tcp_pkt_filter_cmd(wmi_handle, |
| 2075 | g_hb_tcp_filter_fp); |
| 2076 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2077 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2078 | } |
| 2079 | |
| 2080 | /** |
| 2081 | * wmi_unified_lphb_config_udp_params_cmd() - configure udp param command of LPHB |
| 2082 | * @wmi_handle: wmi handle |
| 2083 | * @lphb_conf_req: lphb config request |
| 2084 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2085 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2086 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2087 | QDF_STATUS wmi_unified_lphb_config_udp_params_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2088 | wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req) |
| 2089 | { |
| 2090 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2091 | |
| 2092 | if (wmi_handle->ops->send_lphb_config_udp_params_cmd) |
| 2093 | return wmi_handle->ops->send_lphb_config_udp_params_cmd(wmi_handle, |
| 2094 | lphb_conf_req); |
| 2095 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2096 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2097 | } |
| 2098 | |
| 2099 | /** |
| 2100 | * wmi_unified_lphb_config_udp_pkt_filter_cmd() - configure udp pkt filter command of LPHB |
| 2101 | * @wmi_handle: wmi handle |
| 2102 | * @lphb_conf_req: lphb config request |
| 2103 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2104 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2105 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2106 | QDF_STATUS wmi_unified_lphb_config_udp_pkt_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2107 | wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req) |
| 2108 | { |
| 2109 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2110 | |
| 2111 | if (wmi_handle->ops->send_lphb_config_udp_pkt_filter_cmd) |
| 2112 | return wmi_handle->ops->send_lphb_config_udp_pkt_filter_cmd(wmi_handle, |
| 2113 | lphb_conf_req); |
| 2114 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2115 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2116 | } |
| 2117 | #endif /* FEATURE_WLAN_LPHB */ |
| 2118 | |
| 2119 | /** |
| 2120 | * wmi_unified_process_dhcp_ind() - process dhcp indication from SME |
| 2121 | * @wmi_handle: wmi handle |
| 2122 | * @ta_dhcp_ind: DHCP indication parameter |
| 2123 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2124 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2125 | */ |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2126 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2127 | QDF_STATUS wmi_unified_process_dhcp_ind(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2128 | wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind) |
| 2129 | { |
| 2130 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2131 | |
| 2132 | if (wmi_handle->ops->send_process_dhcp_ind_cmd) |
| 2133 | return wmi_handle->ops->send_process_dhcp_ind_cmd(wmi_handle, |
| 2134 | ta_dhcp_ind); |
| 2135 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2136 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2137 | } |
| 2138 | |
| 2139 | /** |
| 2140 | * wmi_unified_get_link_speed_cmd() -send command to get linkspeed |
| 2141 | * @wmi_handle: wmi handle |
| 2142 | * @pLinkSpeed: link speed info |
| 2143 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2144 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2145 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2146 | QDF_STATUS wmi_unified_get_link_speed_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2147 | wmi_mac_addr peer_macaddr) |
| 2148 | { |
| 2149 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2150 | |
| 2151 | if (wmi_handle->ops->send_get_link_speed_cmd) |
| 2152 | return wmi_handle->ops->send_get_link_speed_cmd(wmi_handle, |
| 2153 | peer_macaddr); |
| 2154 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2155 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2156 | } |
| 2157 | |
| 2158 | /** |
| 2159 | * wmi_unified_egap_conf_params_cmd() - send wmi cmd of egap configuration params |
| 2160 | * @wmi_handle: wmi handler |
| 2161 | * @egap_params: pointer to egap_params |
| 2162 | * |
| 2163 | * Return: 0 for success, otherwise appropriate error code |
| 2164 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2165 | QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2166 | wmi_ap_ps_egap_param_cmd_fixed_param *egap_params) |
| 2167 | { |
| 2168 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2169 | |
| 2170 | if (wmi_handle->ops->send_egap_conf_params_cmd) |
| 2171 | return wmi_handle->ops->send_egap_conf_params_cmd(wmi_handle, |
| 2172 | egap_params); |
| 2173 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2174 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2175 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2176 | #endif |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2177 | |
| 2178 | /** |
| 2179 | * wmi_unified_fw_profiling_data_cmd() - send FW profiling cmd to WLAN FW |
| 2180 | * @wmi_handl: wmi handle |
| 2181 | * @cmd: Profiling command index |
| 2182 | * @value1: parameter1 value |
| 2183 | * @value2: parameter2 value |
| 2184 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2185 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2186 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2187 | QDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2188 | uint32_t cmd, uint32_t value1, uint32_t value2) |
| 2189 | { |
| 2190 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2191 | |
| 2192 | if (wmi_handle->ops->send_fw_profiling_cmd) |
| 2193 | return wmi_handle->ops->send_fw_profiling_cmd(wmi_handle, |
| 2194 | cmd, value1, value2); |
| 2195 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2196 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2197 | } |
| 2198 | |
| 2199 | #ifdef FEATURE_WLAN_RA_FILTERING |
| 2200 | /** |
| 2201 | * wmi_unified_wow_sta_ra_filter_cmd() - set RA filter pattern in fw |
| 2202 | * @wmi_handle: wmi handle |
| 2203 | * @vdev_id: vdev id |
| 2204 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2205 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2206 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2207 | QDF_STATUS wmi_unified_wow_sta_ra_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2208 | uint8_t vdev_id, uint8_t default_pattern, |
| 2209 | uint16_t rate_limit_interval) |
| 2210 | { |
| 2211 | |
| 2212 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2213 | |
| 2214 | if (wmi_handle->ops->send_wow_sta_ra_filter_cmd) |
| 2215 | return wmi_handle->ops->send_wow_sta_ra_filter_cmd(wmi_handle, |
Krunal Soni | 58d8760 | 2016-05-10 17:22:11 -0700 | [diff] [blame] | 2216 | vdev_id, default_pattern, rate_limit_interval); |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2217 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2218 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2219 | |
| 2220 | } |
| 2221 | #endif /* FEATURE_WLAN_RA_FILTERING */ |
| 2222 | |
| 2223 | /** |
| 2224 | * wmi_unified_nat_keepalive_en_cmd() - enable NAT keepalive filter |
| 2225 | * @wmi_handle: wmi handle |
| 2226 | * @vdev_id: vdev id |
| 2227 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2228 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2229 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2230 | QDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2231 | { |
| 2232 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2233 | |
| 2234 | if (wmi_handle->ops->send_nat_keepalive_en_cmd) |
| 2235 | return wmi_handle->ops->send_nat_keepalive_en_cmd(wmi_handle, |
| 2236 | vdev_id); |
| 2237 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2238 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2239 | } |
| 2240 | |
| 2241 | /** |
| 2242 | * wmi_unified_csa_offload_enable() - send CSA offload enable command |
| 2243 | * @wmi_hdl: wmi handle |
| 2244 | * @vdev_id: vdev id |
| 2245 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2246 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2247 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2248 | QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2249 | { |
| 2250 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2251 | |
| 2252 | if (wmi_handle->ops->send_csa_offload_enable_cmd) |
| 2253 | return wmi_handle->ops->send_csa_offload_enable_cmd(wmi_handle, |
| 2254 | vdev_id); |
| 2255 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2256 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2257 | } |
| 2258 | /** |
| 2259 | * wmi_unified_start_oem_data_cmd() - start OEM data request to target |
| 2260 | * @wmi_handle: wmi handle |
| 2261 | * @startOemDataReq: start request params |
| 2262 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2263 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2264 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2265 | QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl, |
Krishna Kumaar Natarajan | b16bb27 | 2016-07-21 15:02:44 -0700 | [diff] [blame] | 2266 | uint32_t data_len, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2267 | uint8_t *data) |
| 2268 | { |
| 2269 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2270 | |
| 2271 | if (wmi_handle->ops->send_start_oem_data_cmd) |
| 2272 | return wmi_handle->ops->send_start_oem_data_cmd(wmi_handle, |
| 2273 | data_len, data); |
| 2274 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2275 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2276 | } |
| 2277 | |
| 2278 | /** |
| 2279 | * wmi_unified_dfs_phyerr_filter_offload_en_cmd() - enable dfs phyerr filter |
| 2280 | * @wmi_handle: wmi handle |
| 2281 | * @dfs_phyerr_filter_offload: is dfs phyerr filter offload |
| 2282 | * |
| 2283 | * Send WMI_DFS_PHYERR_FILTER_ENA_CMDID or |
| 2284 | * WMI_DFS_PHYERR_FILTER_DIS_CMDID command |
| 2285 | * to firmware based on phyerr filtering |
| 2286 | * offload status. |
| 2287 | * |
| 2288 | * Return: 1 success, 0 failure |
| 2289 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2290 | QDF_STATUS |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2291 | wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl, |
| 2292 | bool dfs_phyerr_filter_offload) |
| 2293 | { |
| 2294 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2295 | |
| 2296 | if (wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd) |
| 2297 | return wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd(wmi_handle, |
| 2298 | dfs_phyerr_filter_offload); |
| 2299 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2300 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2301 | } |
| 2302 | |
| 2303 | #if !defined(REMOVE_PKT_LOG) |
| 2304 | /** |
| 2305 | * wmi_unified_pktlog_wmi_send_cmd() - send pktlog enable/disable command to target |
| 2306 | * @wmi_handle: wmi handle |
| 2307 | * @pktlog_event: pktlog event |
| 2308 | * @cmd_id: pktlog cmd id |
| 2309 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2310 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2311 | */ |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2312 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2313 | QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2314 | WMI_PKTLOG_EVENT pktlog_event, |
Himanshu Agarwal | 7c83dcd | 2016-07-19 15:41:51 +0530 | [diff] [blame^] | 2315 | uint32_t cmd_id) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2316 | { |
| 2317 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2318 | |
| 2319 | if (wmi_handle->ops->send_pktlog_wmi_send_cmd) |
| 2320 | return wmi_handle->ops->send_pktlog_wmi_send_cmd(wmi_handle, |
Krunal Soni | 58d8760 | 2016-05-10 17:22:11 -0700 | [diff] [blame] | 2321 | pktlog_event, cmd_id); |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2322 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2323 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2324 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2325 | #endif |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2326 | #endif /* REMOVE_PKT_LOG */ |
| 2327 | |
| 2328 | /** |
| 2329 | * wmi_unified_add_wow_wakeup_event_cmd() - Configures wow wakeup events. |
| 2330 | * @wmi_handle: wmi handle |
| 2331 | * @vdev_id: vdev id |
| 2332 | * @bitmap: Event bitmap |
| 2333 | * @enable: enable/disable |
| 2334 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2335 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2336 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2337 | QDF_STATUS wmi_unified_add_wow_wakeup_event_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2338 | uint32_t vdev_id, |
| 2339 | uint32_t bitmap, |
| 2340 | bool enable) |
| 2341 | { |
| 2342 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2343 | |
| 2344 | if (wmi_handle->ops->send_add_wow_wakeup_event_cmd) |
Krunal Soni | 58d8760 | 2016-05-10 17:22:11 -0700 | [diff] [blame] | 2345 | return wmi_handle->ops->send_add_wow_wakeup_event_cmd( |
| 2346 | wmi_handle, vdev_id, bitmap, enable); |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2347 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2348 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2349 | } |
| 2350 | |
| 2351 | /** |
| 2352 | * wmi_unified_wow_patterns_to_fw_cmd() - Sends WOW patterns to FW. |
| 2353 | * @wmi_handle: wmi handle |
| 2354 | * @vdev_id: vdev id |
| 2355 | * @ptrn_id: pattern id |
| 2356 | * @ptrn: pattern |
| 2357 | * @ptrn_len: pattern length |
| 2358 | * @ptrn_offset: pattern offset |
| 2359 | * @mask: mask |
| 2360 | * @mask_len: mask length |
| 2361 | * @user: true for user configured pattern and false for default pattern |
| 2362 | * @default_patterns: default patterns |
| 2363 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2364 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2365 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2366 | QDF_STATUS wmi_unified_wow_patterns_to_fw_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2367 | uint8_t vdev_id, uint8_t ptrn_id, |
| 2368 | const uint8_t *ptrn, uint8_t ptrn_len, |
| 2369 | uint8_t ptrn_offset, const uint8_t *mask, |
| 2370 | uint8_t mask_len, bool user, |
| 2371 | uint8_t default_patterns) |
| 2372 | { |
| 2373 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2374 | |
| 2375 | if (wmi_handle->ops->send_wow_patterns_to_fw_cmd) |
| 2376 | return wmi_handle->ops->send_wow_patterns_to_fw_cmd(wmi_handle, |
| 2377 | vdev_id, ptrn_id, ptrn, |
| 2378 | ptrn_len, ptrn_offset, mask, |
| 2379 | mask_len, user, default_patterns); |
| 2380 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2381 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2382 | } |
| 2383 | |
| 2384 | /** |
| 2385 | * wmi_unified_wow_delete_pattern_cmd() - delete wow pattern in target |
| 2386 | * @wmi_handle: wmi handle |
| 2387 | * @ptrn_id: pattern id |
| 2388 | * @vdev_id: vdev id |
| 2389 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2390 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2391 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2392 | QDF_STATUS wmi_unified_wow_delete_pattern_cmd(void *wmi_hdl, uint8_t ptrn_id, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2393 | uint8_t vdev_id) |
| 2394 | { |
| 2395 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2396 | |
| 2397 | if (wmi_handle->ops->send_wow_delete_pattern_cmd) |
| 2398 | return wmi_handle->ops->send_wow_delete_pattern_cmd(wmi_handle, |
| 2399 | ptrn_id, vdev_id); |
| 2400 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2401 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2402 | } |
| 2403 | |
| 2404 | /** |
| 2405 | * wmi_unified_host_wakeup_ind_to_fw_cmd() - send wakeup ind to fw |
| 2406 | * @wmi_handle: wmi handle |
| 2407 | * |
| 2408 | * Sends host wakeup indication to FW. On receiving this indication, |
| 2409 | * FW will come out of WOW. |
| 2410 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2411 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2412 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2413 | QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(void *wmi_hdl) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2414 | { |
| 2415 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2416 | |
| 2417 | if (wmi_handle->ops->send_host_wakeup_ind_to_fw_cmd) |
| 2418 | return wmi_handle->ops->send_host_wakeup_ind_to_fw_cmd(wmi_handle); |
| 2419 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2420 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2421 | } |
| 2422 | |
| 2423 | /** |
| 2424 | * wmi_unified_del_ts_cmd() - send DELTS request to fw |
| 2425 | * @wmi_handle: wmi handle |
| 2426 | * @msg: delts params |
| 2427 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2428 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2429 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2430 | QDF_STATUS wmi_unified_del_ts_cmd(void *wmi_hdl, uint8_t vdev_id, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2431 | uint8_t ac) |
| 2432 | { |
| 2433 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2434 | |
| 2435 | if (wmi_handle->ops->send_del_ts_cmd) |
| 2436 | return wmi_handle->ops->send_del_ts_cmd(wmi_handle, |
| 2437 | vdev_id, ac); |
| 2438 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2439 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2440 | } |
| 2441 | |
| 2442 | /** |
| 2443 | * wmi_unified_aggr_qos_cmd() - send aggr qos request to fw |
| 2444 | * @wmi_handle: handle to wmi |
| 2445 | * @aggr_qos_rsp_msg - combined struct for all ADD_TS requests. |
| 2446 | * |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2447 | * A function to handle WMI_AGGR_QOS_REQ. This will send out |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2448 | * ADD_TS requestes to firmware in loop for all the ACs with |
| 2449 | * active flow. |
| 2450 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2451 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2452 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2453 | QDF_STATUS wmi_unified_aggr_qos_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2454 | struct aggr_add_ts_param *aggr_qos_rsp_msg) |
| 2455 | { |
| 2456 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2457 | |
| 2458 | if (wmi_handle->ops->send_aggr_qos_cmd) |
| 2459 | return wmi_handle->ops->send_aggr_qos_cmd(wmi_handle, |
| 2460 | aggr_qos_rsp_msg); |
| 2461 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2462 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2463 | } |
| 2464 | |
| 2465 | /** |
| 2466 | * wmi_unified_add_ts_cmd() - send ADDTS request to fw |
| 2467 | * @wmi_handle: wmi handle |
| 2468 | * @msg: ADDTS params |
| 2469 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2470 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2471 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2472 | QDF_STATUS wmi_unified_add_ts_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2473 | struct add_ts_param *msg) |
| 2474 | { |
| 2475 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2476 | |
| 2477 | if (wmi_handle->ops->send_add_ts_cmd) |
| 2478 | return wmi_handle->ops->send_add_ts_cmd(wmi_handle, |
| 2479 | msg); |
| 2480 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2481 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2482 | } |
| 2483 | |
| 2484 | /** |
| 2485 | * wmi_unified_enable_disable_packet_filter_cmd() - enable/disable packet filter in target |
| 2486 | * @wmi_handle: wmi handle |
| 2487 | * @vdev_id: vdev id |
| 2488 | * @enable: Flag to enable/disable packet filter |
| 2489 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2490 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2491 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2492 | QDF_STATUS wmi_unified_enable_disable_packet_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2493 | uint8_t vdev_id, bool enable) |
| 2494 | { |
| 2495 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2496 | |
| 2497 | if (wmi_handle->ops->send_enable_disable_packet_filter_cmd) |
Krunal Soni | 58d8760 | 2016-05-10 17:22:11 -0700 | [diff] [blame] | 2498 | return wmi_handle->ops->send_enable_disable_packet_filter_cmd( |
| 2499 | wmi_handle, vdev_id, enable); |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2500 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2501 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2502 | } |
| 2503 | |
| 2504 | /** |
| 2505 | * wmi_unified_config_packet_filter_cmd() - configure packet filter in target |
| 2506 | * @wmi_handle: wmi handle |
| 2507 | * @vdev_id: vdev id |
| 2508 | * @rcv_filter_param: Packet filter parameters |
| 2509 | * @filter_id: Filter id |
| 2510 | * @enable: Flag to add/delete packet filter configuration |
| 2511 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2512 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2513 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2514 | QDF_STATUS wmi_unified_config_packet_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2515 | uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param, |
| 2516 | uint8_t filter_id, bool enable) |
| 2517 | { |
| 2518 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2519 | |
| 2520 | if (wmi_handle->ops->send_config_packet_filter_cmd) |
| 2521 | return wmi_handle->ops->send_config_packet_filter_cmd(wmi_handle, |
| 2522 | vdev_id, rcv_filter_param, |
| 2523 | filter_id, enable); |
| 2524 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2525 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2526 | } |
| 2527 | |
| 2528 | /** |
| 2529 | * wmi_unified_add_clear_mcbc_filter_cmd() - set mcast filter command to fw |
| 2530 | * @wmi_handle: wmi handle |
| 2531 | * @vdev_id: vdev id |
| 2532 | * @multicastAddr: mcast address |
| 2533 | * @clearList: clear list flag |
| 2534 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2535 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2536 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2537 | QDF_STATUS wmi_unified_add_clear_mcbc_filter_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2538 | uint8_t vdev_id, |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2539 | struct qdf_mac_addr multicast_addr, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2540 | bool clearList) |
| 2541 | { |
| 2542 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2543 | |
| 2544 | if (wmi_handle->ops->send_add_clear_mcbc_filter_cmd) |
| 2545 | return wmi_handle->ops->send_add_clear_mcbc_filter_cmd(wmi_handle, |
| 2546 | vdev_id, multicast_addr, clearList); |
| 2547 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2548 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2549 | } |
| 2550 | |
| 2551 | /** |
| 2552 | * wmi_unified_send_gtk_offload_cmd() - send GTK offload command to fw |
| 2553 | * @wmi_handle: wmi handle |
| 2554 | * @vdev_id: vdev id |
| 2555 | * @params: GTK offload parameters |
| 2556 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2557 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2558 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2559 | QDF_STATUS wmi_unified_send_gtk_offload_cmd(void *wmi_hdl, uint8_t vdev_id, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2560 | struct gtk_offload_params *params, |
| 2561 | bool enable_offload, |
| 2562 | uint32_t gtk_offload_opcode) |
| 2563 | { |
| 2564 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2565 | |
| 2566 | if (wmi_handle->ops->send_gtk_offload_cmd) |
| 2567 | return wmi_handle->ops->send_gtk_offload_cmd(wmi_handle, |
| 2568 | vdev_id, params, |
| 2569 | enable_offload, gtk_offload_opcode); |
| 2570 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2571 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2572 | } |
| 2573 | |
| 2574 | /** |
| 2575 | * wmi_unified_process_gtk_offload_getinfo_cmd() - send GTK offload cmd to fw |
| 2576 | * @wmi_handle: wmi handle |
| 2577 | * @params: GTK offload params |
| 2578 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2579 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2580 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2581 | QDF_STATUS wmi_unified_process_gtk_offload_getinfo_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2582 | uint8_t vdev_id, |
| 2583 | uint64_t offload_req_opcode) |
| 2584 | { |
| 2585 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2586 | |
| 2587 | if (wmi_handle->ops->send_process_gtk_offload_getinfo_cmd) |
| 2588 | return wmi_handle->ops->send_process_gtk_offload_getinfo_cmd(wmi_handle, |
| 2589 | vdev_id, |
| 2590 | offload_req_opcode); |
| 2591 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2592 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2593 | } |
| 2594 | |
| 2595 | /** |
| 2596 | * wmi_unified_process_add_periodic_tx_ptrn_cmd - add periodic tx ptrn |
| 2597 | * @wmi_handle: wmi handle |
| 2598 | * @pAddPeriodicTxPtrnParams: tx ptrn params |
| 2599 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2600 | * Retrun: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2601 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2602 | QDF_STATUS wmi_unified_process_add_periodic_tx_ptrn_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2603 | struct periodic_tx_pattern * |
| 2604 | pAddPeriodicTxPtrnParams, |
| 2605 | uint8_t vdev_id) |
| 2606 | { |
| 2607 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2608 | |
| 2609 | if (wmi_handle->ops->send_process_add_periodic_tx_ptrn_cmd) |
| 2610 | return wmi_handle->ops->send_process_add_periodic_tx_ptrn_cmd(wmi_handle, |
| 2611 | pAddPeriodicTxPtrnParams, |
| 2612 | vdev_id); |
| 2613 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2614 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2615 | } |
| 2616 | |
| 2617 | /** |
| 2618 | * wmi_unified_process_del_periodic_tx_ptrn_cmd - del periodic tx ptrn |
| 2619 | * @wmi_handle: wmi handle |
| 2620 | * @vdev_id: vdev id |
| 2621 | * @pattern_id: pattern id |
| 2622 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2623 | * Retrun: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2624 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2625 | QDF_STATUS wmi_unified_process_del_periodic_tx_ptrn_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2626 | uint8_t vdev_id, |
| 2627 | uint8_t pattern_id) |
| 2628 | { |
| 2629 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2630 | |
| 2631 | if (wmi_handle->ops->send_process_del_periodic_tx_ptrn_cmd) |
| 2632 | return wmi_handle->ops->send_process_del_periodic_tx_ptrn_cmd(wmi_handle, |
| 2633 | vdev_id, |
| 2634 | pattern_id); |
| 2635 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2636 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2637 | } |
| 2638 | |
| 2639 | /** |
| 2640 | * wmi_unified_stats_ext_req_cmd() - request ext stats from fw |
| 2641 | * @wmi_handle: wmi handle |
| 2642 | * @preq: stats ext params |
| 2643 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2644 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2645 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2646 | QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2647 | struct stats_ext_params *preq) |
| 2648 | { |
| 2649 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2650 | |
| 2651 | if (wmi_handle->ops->send_stats_ext_req_cmd) |
| 2652 | return wmi_handle->ops->send_stats_ext_req_cmd(wmi_handle, |
| 2653 | preq); |
| 2654 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2655 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2656 | } |
| 2657 | |
| 2658 | /** |
| 2659 | * wmi_unified_enable_ext_wow_cmd() - enable ext wow in fw |
| 2660 | * @wmi_handle: wmi handle |
| 2661 | * @params: ext wow params |
| 2662 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2663 | * Return:QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2664 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2665 | QDF_STATUS wmi_unified_enable_ext_wow_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2666 | struct ext_wow_params *params) |
| 2667 | { |
| 2668 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2669 | |
| 2670 | if (wmi_handle->ops->send_enable_ext_wow_cmd) |
| 2671 | return wmi_handle->ops->send_enable_ext_wow_cmd(wmi_handle, |
| 2672 | params); |
| 2673 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2674 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2675 | } |
| 2676 | |
| 2677 | /** |
| 2678 | * wmi_unified_set_app_type2_params_in_fw_cmd() - set app type2 params in fw |
| 2679 | * @wmi_handle: wmi handle |
| 2680 | * @appType2Params: app type2 params |
| 2681 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2682 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2683 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2684 | QDF_STATUS wmi_unified_set_app_type2_params_in_fw_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2685 | struct app_type2_params *appType2Params) |
| 2686 | { |
| 2687 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2688 | |
| 2689 | if (wmi_handle->ops->send_set_app_type2_params_in_fw_cmd) |
| 2690 | return wmi_handle->ops->send_set_app_type2_params_in_fw_cmd(wmi_handle, |
| 2691 | appType2Params); |
| 2692 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2693 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2694 | |
| 2695 | } |
| 2696 | |
| 2697 | /** |
| 2698 | * wmi_unified_set_auto_shutdown_timer_cmd() - sets auto shutdown timer in firmware |
| 2699 | * @wmi_handle: wmi handle |
| 2700 | * @timer_val: auto shutdown timer value |
| 2701 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2702 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2703 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2704 | QDF_STATUS wmi_unified_set_auto_shutdown_timer_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2705 | uint32_t timer_val) |
| 2706 | { |
| 2707 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2708 | |
| 2709 | if (wmi_handle->ops->send_set_auto_shutdown_timer_cmd) |
| 2710 | return wmi_handle->ops->send_set_auto_shutdown_timer_cmd(wmi_handle, |
| 2711 | timer_val); |
| 2712 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2713 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2714 | } |
| 2715 | |
| 2716 | /** |
| 2717 | * wmi_unified_nan_req_cmd() - to send nan request to target |
| 2718 | * @wmi_handle: wmi handle |
| 2719 | * @nan_req: request data which will be non-null |
| 2720 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2721 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2722 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2723 | QDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2724 | struct nan_req_params *nan_req) |
| 2725 | { |
| 2726 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2727 | |
| 2728 | if (wmi_handle->ops->send_nan_req_cmd) |
| 2729 | return wmi_handle->ops->send_nan_req_cmd(wmi_handle, |
| 2730 | nan_req); |
| 2731 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2732 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2733 | } |
| 2734 | |
| 2735 | /** |
| 2736 | * wmi_unified_process_dhcpserver_offload_cmd() - enable DHCP server offload |
| 2737 | * @wmi_handle: wmi handle |
| 2738 | * @pDhcpSrvOffloadInfo: DHCP server offload info |
| 2739 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2740 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2741 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2742 | QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2743 | struct dhcp_offload_info_params *pDhcpSrvOffloadInfo) |
| 2744 | { |
| 2745 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2746 | |
| 2747 | if (wmi_handle->ops->send_process_dhcpserver_offload_cmd) |
| 2748 | return wmi_handle->ops->send_process_dhcpserver_offload_cmd(wmi_handle, |
| 2749 | pDhcpSrvOffloadInfo); |
| 2750 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2751 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2752 | } |
| 2753 | |
| 2754 | /** |
| 2755 | * wmi_unified_process_ch_avoid_update_cmd() - handles channel avoid update request |
| 2756 | * @wmi_handle: wmi handle |
| 2757 | * @ch_avoid_update_req: channel avoid update params |
| 2758 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2759 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2760 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2761 | QDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl) |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2762 | { |
| 2763 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2764 | |
| 2765 | if (wmi_handle->ops->send_process_ch_avoid_update_cmd) |
| 2766 | return wmi_handle->ops->send_process_ch_avoid_update_cmd(wmi_handle); |
| 2767 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2768 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2769 | } |
| 2770 | |
| 2771 | /** |
| 2772 | * wmi_unified_send_regdomain_info_to_fw_cmd() - send regdomain info to fw |
| 2773 | * @wmi_handle: wmi handle |
| 2774 | * @reg_dmn: reg domain |
| 2775 | * @regdmn2G: 2G reg domain |
| 2776 | * @regdmn5G: 5G reg domain |
| 2777 | * @ctl2G: 2G test limit |
| 2778 | * @ctl5G: 5G test limit |
| 2779 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2780 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2781 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2782 | QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2783 | uint32_t reg_dmn, uint16_t regdmn2G, |
| 2784 | uint16_t regdmn5G, int8_t ctl2G, |
| 2785 | int8_t ctl5G) |
| 2786 | { |
| 2787 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2788 | |
| 2789 | if (wmi_handle->ops->send_regdomain_info_to_fw_cmd) |
| 2790 | return wmi_handle->ops->send_regdomain_info_to_fw_cmd(wmi_handle, |
| 2791 | reg_dmn, regdmn2G, |
| 2792 | regdmn5G, ctl2G, |
| 2793 | ctl5G); |
| 2794 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2795 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2796 | } |
| 2797 | |
| 2798 | |
| 2799 | /** |
| 2800 | * wmi_unified_set_tdls_offchan_mode_cmd() - set tdls off channel mode |
| 2801 | * @wmi_handle: wmi handle |
| 2802 | * @chan_switch_params: Pointer to tdls channel switch parameter structure |
| 2803 | * |
| 2804 | * This function sets tdls off channel mode |
| 2805 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2806 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures; |
| 2807 | * Negative errno otherwise |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2808 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2809 | QDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2810 | struct tdls_channel_switch_params *chan_switch_params) |
| 2811 | { |
| 2812 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2813 | |
| 2814 | if (wmi_handle->ops->send_set_tdls_offchan_mode_cmd) |
| 2815 | return wmi_handle->ops->send_set_tdls_offchan_mode_cmd(wmi_handle, |
| 2816 | chan_switch_params); |
| 2817 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2818 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2819 | } |
| 2820 | |
| 2821 | /** |
| 2822 | * wmi_unified_update_fw_tdls_state_cmd() - send enable/disable tdls for a vdev |
| 2823 | * @wmi_handle: wmi handle |
| 2824 | * @pwmaTdlsparams: TDLS params |
| 2825 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2826 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2827 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2828 | QDF_STATUS wmi_unified_update_fw_tdls_state_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2829 | void *tdls_param, uint8_t tdls_state) |
| 2830 | { |
| 2831 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2832 | |
| 2833 | if (wmi_handle->ops->send_update_fw_tdls_state_cmd) |
| 2834 | return wmi_handle->ops->send_update_fw_tdls_state_cmd(wmi_handle, |
| 2835 | tdls_param, tdls_state); |
| 2836 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2837 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2838 | } |
| 2839 | |
| 2840 | /** |
| 2841 | * wmi_unified_update_tdls_peer_state_cmd() - update TDLS peer state |
| 2842 | * @wmi_handle: wmi handle |
| 2843 | * @peerStateParams: TDLS peer state params |
| 2844 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2845 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2846 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2847 | QDF_STATUS wmi_unified_update_tdls_peer_state_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2848 | struct tdls_peer_state_params *peerStateParams, |
| 2849 | uint32_t *ch_mhz) |
| 2850 | { |
| 2851 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2852 | |
| 2853 | if (wmi_handle->ops->send_update_tdls_peer_state_cmd) |
| 2854 | return wmi_handle->ops->send_update_tdls_peer_state_cmd(wmi_handle, |
| 2855 | peerStateParams, ch_mhz); |
| 2856 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2857 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2858 | } |
| 2859 | |
| 2860 | /** |
| 2861 | * wmi_unified_process_fw_mem_dump_cmd() - Function to request fw memory dump from |
| 2862 | * firmware |
| 2863 | * @wmi_handle: Pointer to wmi handle |
| 2864 | * @mem_dump_req: Pointer for mem_dump_req |
| 2865 | * |
| 2866 | * This function sends memory dump request to firmware |
| 2867 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2868 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2869 | * |
| 2870 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2871 | QDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2872 | struct fw_dump_req_param *mem_dump_req) |
| 2873 | { |
| 2874 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2875 | |
| 2876 | if (wmi_handle->ops->send_process_fw_mem_dump_cmd) |
| 2877 | return wmi_handle->ops->send_process_fw_mem_dump_cmd(wmi_handle, |
| 2878 | mem_dump_req); |
| 2879 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2880 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2881 | } |
| 2882 | |
| 2883 | /** |
| 2884 | * wmi_unified_process_set_ie_info_cmd() - Function to send IE info to firmware |
| 2885 | * @wmi_handle: Pointer to WMi handle |
| 2886 | * @ie_data: Pointer for ie data |
| 2887 | * |
| 2888 | * This function sends IE information to firmware |
| 2889 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2890 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2891 | * |
| 2892 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2893 | QDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl, |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2894 | struct vdev_ie_info_param *ie_info) |
| 2895 | { |
| 2896 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2897 | |
| 2898 | if (wmi_handle->ops->send_process_set_ie_info_cmd) |
| 2899 | return wmi_handle->ops->send_process_set_ie_info_cmd(wmi_handle, |
| 2900 | ie_info); |
| 2901 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2902 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 20c5dac | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 2903 | } |
Himanshu Agarwal | 7c83dcd | 2016-07-19 15:41:51 +0530 | [diff] [blame^] | 2904 | #ifdef CONFIG_MCL |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2905 | /** |
| 2906 | * wmi_unified_send_init_cmd() - wmi init command |
| 2907 | * @wmi_handle: pointer to wmi handle |
| 2908 | * @res_cfg: resource config |
| 2909 | * @num_mem_chunks: no of mem chunck |
| 2910 | * @mem_chunk: pointer to mem chunck structure |
| 2911 | * |
| 2912 | * This function sends IE information to firmware |
| 2913 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2914 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2915 | * |
| 2916 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2917 | QDF_STATUS wmi_unified_send_init_cmd(void *wmi_hdl, |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2918 | wmi_resource_config *res_cfg, |
| 2919 | uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk, |
| 2920 | bool action) |
| 2921 | { |
| 2922 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2923 | |
| 2924 | if (wmi_handle->ops->send_init_cmd) |
| 2925 | return wmi_handle->ops->send_init_cmd(wmi_handle, |
| 2926 | res_cfg, num_mem_chunks, mem_chunk, action); |
| 2927 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2928 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2929 | } |
Himanshu Agarwal | 7c83dcd | 2016-07-19 15:41:51 +0530 | [diff] [blame^] | 2930 | #endif |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2931 | /** |
| 2932 | * wmi_unified_send_saved_init_cmd() - wmi init command |
| 2933 | * @wmi_handle: pointer to wmi handle |
| 2934 | * |
| 2935 | * This function sends IE information to firmware |
| 2936 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2937 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2938 | * |
| 2939 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2940 | QDF_STATUS wmi_unified_send_saved_init_cmd(void *wmi_hdl) |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2941 | { |
| 2942 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2943 | |
| 2944 | if (wmi_handle->ops->send_saved_init_cmd) |
| 2945 | return wmi_handle->ops->send_saved_init_cmd(wmi_handle); |
| 2946 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2947 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2948 | } |
| 2949 | |
| 2950 | /** |
| 2951 | * wmi_unified_save_fw_version_cmd() - save fw version |
| 2952 | * @wmi_handle: pointer to wmi handle |
| 2953 | * @res_cfg: resource config |
| 2954 | * @num_mem_chunks: no of mem chunck |
| 2955 | * @mem_chunk: pointer to mem chunck structure |
| 2956 | * |
| 2957 | * This function sends IE information to firmware |
| 2958 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2959 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2960 | * |
| 2961 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2962 | QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl, |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2963 | void *evt_buf) |
| 2964 | { |
| 2965 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2966 | |
| 2967 | if (wmi_handle->ops->save_fw_version_cmd) |
| 2968 | return wmi_handle->ops->save_fw_version_cmd(wmi_handle, |
| 2969 | evt_buf); |
| 2970 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2971 | return QDF_STATUS_E_FAILURE; |
Govind Singh | 9ddd516 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 2972 | } |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 2973 | |
| 2974 | /** |
| 2975 | * send_set_base_macaddr_indicate_cmd() - set base mac address in fw |
| 2976 | * @wmi_hdl: wmi handle |
| 2977 | * @custom_addr: base mac address |
| 2978 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 2979 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 2980 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2981 | QDF_STATUS wmi_unified_set_base_macaddr_indicate_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 2982 | uint8_t *custom_addr) |
| 2983 | { |
| 2984 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 2985 | |
| 2986 | if (wmi_handle->ops->send_set_base_macaddr_indicate_cmd) |
| 2987 | return wmi_handle->ops->send_set_base_macaddr_indicate_cmd(wmi_handle, |
| 2988 | custom_addr); |
| 2989 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 2990 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 2991 | } |
| 2992 | |
| 2993 | /** |
| 2994 | * wmi_unified_log_supported_evt_cmd() - Enable/Disable FW diag/log events |
| 2995 | * @wmi_hdl: wmi handle |
| 2996 | * @event: Event received from FW |
| 2997 | * @len: Length of the event |
| 2998 | * |
| 2999 | * Enables the low frequency events and disables the high frequency |
| 3000 | * events. Bit 17 indicates if the event if low/high frequency. |
| 3001 | * 1 - high frequency, 0 - low frequency |
| 3002 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3003 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3004 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3005 | QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3006 | uint8_t *event, |
| 3007 | uint32_t len) |
| 3008 | { |
| 3009 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3010 | |
| 3011 | if (wmi_handle->ops->send_log_supported_evt_cmd) |
| 3012 | return wmi_handle->ops->send_log_supported_evt_cmd(wmi_handle, |
| 3013 | event, len); |
| 3014 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3015 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3016 | } |
| 3017 | |
| 3018 | /** |
| 3019 | * wmi_unified_enable_specific_fw_logs_cmd() - Start/Stop logging of diag log id |
| 3020 | * @wmi_hdl: wmi handle |
| 3021 | * @start_log: Start logging related parameters |
| 3022 | * |
| 3023 | * Send the command to the FW based on which specific logging of diag |
| 3024 | * event/log id can be started/stopped |
| 3025 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3026 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3027 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3028 | QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3029 | struct wmi_wifi_start_log *start_log) |
| 3030 | { |
| 3031 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3032 | |
| 3033 | if (wmi_handle->ops->send_enable_specific_fw_logs_cmd) |
| 3034 | return wmi_handle->ops->send_enable_specific_fw_logs_cmd(wmi_handle, |
| 3035 | start_log); |
| 3036 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3037 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3038 | } |
| 3039 | |
| 3040 | /** |
| 3041 | * wmi_unified_flush_logs_to_fw_cmd() - Send log flush command to FW |
| 3042 | * @wmi_hdl: WMI handle |
| 3043 | * |
| 3044 | * This function is used to send the flush command to the FW, |
| 3045 | * that will flush the fw logs that are residue in the FW |
| 3046 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3047 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3048 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3049 | QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl) |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3050 | { |
| 3051 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3052 | |
| 3053 | if (wmi_handle->ops->send_flush_logs_to_fw_cmd) |
| 3054 | return wmi_handle->ops->send_flush_logs_to_fw_cmd(wmi_handle); |
| 3055 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3056 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3057 | } |
| 3058 | |
| 3059 | /** |
Manishekar Chandrasekaran | 8650851 | 2016-04-21 19:16:32 +0530 | [diff] [blame] | 3060 | * wmi_unified_pdev_set_pcl_cmd() - Send WMI_SOC_SET_PCL_CMDID to FW |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3061 | * @wmi_hdl: wmi handle |
| 3062 | * @msg: PCL structure containing the PCL and the number of channels |
| 3063 | * |
| 3064 | * WMI_SOC_SET_PCL_CMDID provides a Preferred Channel List (PCL) to the WLAN |
| 3065 | * firmware. The DBS Manager is the consumer of this information in the WLAN |
| 3066 | * firmware. The channel list will be used when a Virtual DEVice (VDEV) needs |
| 3067 | * to migrate to a new channel without host driver involvement. An example of |
| 3068 | * this behavior is Legacy Fast Roaming (LFR 3.0). Generally, the host will |
| 3069 | * manage the channel selection without firmware involvement. |
| 3070 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3071 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3072 | */ |
Manishekar Chandrasekaran | 8650851 | 2016-04-21 19:16:32 +0530 | [diff] [blame] | 3073 | QDF_STATUS wmi_unified_pdev_set_pcl_cmd(void *wmi_hdl, |
| 3074 | struct wmi_pcl_chan_weights *msg) |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3075 | { |
| 3076 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3077 | |
Manishekar Chandrasekaran | 8650851 | 2016-04-21 19:16:32 +0530 | [diff] [blame] | 3078 | if (wmi_handle->ops->send_pdev_set_pcl_cmd) |
| 3079 | return wmi_handle->ops->send_pdev_set_pcl_cmd(wmi_handle, msg); |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3080 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3081 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3082 | } |
| 3083 | |
| 3084 | /** |
| 3085 | * wmi_unified_soc_set_hw_mode_cmd() - Send WMI_SOC_SET_HW_MODE_CMDID to FW |
| 3086 | * @wmi_hdl: wmi handle |
| 3087 | * @msg: Structure containing the following parameters |
| 3088 | * |
| 3089 | * - hw_mode_index: The HW_Mode field is a enumerated type that is selected |
| 3090 | * from the HW_Mode table, which is returned in the WMI_SERVICE_READY_EVENTID. |
| 3091 | * |
| 3092 | * Provides notification to the WLAN firmware that host driver is requesting a |
| 3093 | * HardWare (HW) Mode change. This command is needed to support iHelium in the |
| 3094 | * configurations that include the Dual Band Simultaneous (DBS) feature. |
| 3095 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3096 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3097 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3098 | QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3099 | uint32_t hw_mode_index) |
| 3100 | { |
| 3101 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3102 | |
Manishekar Chandrasekaran | 1718378 | 2016-04-27 12:29:16 +0530 | [diff] [blame] | 3103 | if (wmi_handle->ops->send_pdev_set_hw_mode_cmd) |
| 3104 | return wmi_handle->ops->send_pdev_set_hw_mode_cmd(wmi_handle, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3105 | hw_mode_index); |
| 3106 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3107 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3108 | } |
| 3109 | |
| 3110 | /** |
Manishekar Chandrasekaran | 157a4de | 2016-04-27 12:52:51 +0530 | [diff] [blame] | 3111 | * wmi_unified_pdev_set_dual_mac_config_cmd() - Set dual mac config to FW |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3112 | * @wmi_hdl: wmi handle |
| 3113 | * @msg: Dual MAC config parameters |
| 3114 | * |
| 3115 | * Configures WLAN firmware with the dual MAC features |
| 3116 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3117 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures. |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3118 | */ |
Manishekar Chandrasekaran | 157a4de | 2016-04-27 12:52:51 +0530 | [diff] [blame] | 3119 | QDF_STATUS wmi_unified_pdev_set_dual_mac_config_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3120 | struct wmi_dual_mac_config *msg) |
| 3121 | { |
| 3122 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3123 | |
Manishekar Chandrasekaran | 157a4de | 2016-04-27 12:52:51 +0530 | [diff] [blame] | 3124 | if (wmi_handle->ops->send_pdev_set_dual_mac_config_cmd) |
| 3125 | return wmi_handle->ops->send_pdev_set_dual_mac_config_cmd(wmi_handle, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3126 | msg); |
| 3127 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3128 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3129 | } |
| 3130 | |
| 3131 | /** |
| 3132 | * wmi_unified_enable_arp_ns_offload_cmd() - enable ARP NS offload |
| 3133 | * @wmi_hdl: wmi handle |
| 3134 | * @param: offload request |
| 3135 | * @arp_only: flag |
| 3136 | * |
| 3137 | * To configure ARP NS off load data to firmware |
| 3138 | * when target goes to wow mode. |
| 3139 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3140 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3141 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3142 | QDF_STATUS wmi_unified_enable_arp_ns_offload_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3143 | struct host_offload_req_param *param, bool arp_only, |
| 3144 | uint8_t vdev_id) |
| 3145 | { |
| 3146 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3147 | |
| 3148 | if (wmi_handle->ops->send_enable_arp_ns_offload_cmd) |
| 3149 | return wmi_handle->ops->send_enable_arp_ns_offload_cmd(wmi_handle, |
| 3150 | param, arp_only, |
| 3151 | vdev_id); |
| 3152 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3153 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3154 | } |
| 3155 | |
| 3156 | /** |
| 3157 | * wmi_unified_set_led_flashing_cmd() - set led flashing in fw |
| 3158 | * @wmi_hdl: wmi handle |
| 3159 | * @flashing: flashing request |
| 3160 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3161 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3162 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3163 | QDF_STATUS wmi_unified_set_led_flashing_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3164 | struct flashing_req_params *flashing) |
| 3165 | { |
| 3166 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3167 | |
| 3168 | if (wmi_handle->ops->send_set_led_flashing_cmd) |
| 3169 | return wmi_handle->ops->send_set_led_flashing_cmd(wmi_handle, |
| 3170 | flashing); |
| 3171 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3172 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3173 | } |
| 3174 | |
| 3175 | /** |
| 3176 | * wmi_unified_app_type1_params_in_fw_cmd() - set app type1 params in fw |
| 3177 | * @wmi_hdl: wmi handle |
| 3178 | * @appType1Params: app type1 params |
| 3179 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3180 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3181 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3182 | QDF_STATUS wmi_unified_app_type1_params_in_fw_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3183 | struct app_type1_params *app_type1_params) |
| 3184 | { |
| 3185 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3186 | |
| 3187 | if (wmi_handle->ops->send_app_type1_params_in_fw_cmd) |
| 3188 | return wmi_handle->ops->send_app_type1_params_in_fw_cmd(wmi_handle, |
| 3189 | app_type1_params); |
| 3190 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3191 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3192 | } |
| 3193 | |
| 3194 | /** |
| 3195 | * wmi_unified_set_ssid_hotlist_cmd() - Handle an SSID hotlist set request |
| 3196 | * @wmi_hdl: wmi handle |
| 3197 | * @request: SSID hotlist set request |
| 3198 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3199 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3200 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3201 | QDF_STATUS |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3202 | wmi_unified_set_ssid_hotlist_cmd(void *wmi_hdl, |
| 3203 | struct ssid_hotlist_request_params *request) |
| 3204 | { |
| 3205 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3206 | |
| 3207 | if (wmi_handle->ops->send_set_ssid_hotlist_cmd) |
| 3208 | return wmi_handle->ops->send_set_ssid_hotlist_cmd(wmi_handle, |
| 3209 | request); |
| 3210 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3211 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3212 | } |
| 3213 | |
| 3214 | /** |
| 3215 | * wmi_unified_roam_synch_complete_cmd() - roam synch complete command to fw. |
| 3216 | * @wmi_hdl: wmi handle |
| 3217 | * @vdev_id: vdev id |
| 3218 | * |
| 3219 | * This function sends roam synch complete event to fw. |
| 3220 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3221 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3222 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3223 | QDF_STATUS wmi_unified_roam_synch_complete_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3224 | uint8_t vdev_id) |
| 3225 | { |
| 3226 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3227 | |
| 3228 | if (wmi_handle->ops->send_process_roam_synch_complete_cmd) |
| 3229 | return wmi_handle->ops->send_process_roam_synch_complete_cmd(wmi_handle, |
| 3230 | vdev_id); |
| 3231 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3232 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3233 | } |
| 3234 | |
| 3235 | /** |
| 3236 | * wmi_unified_unit_test_cmd() - send unit test command to fw. |
| 3237 | * @wmi_hdl: wmi handle |
| 3238 | * @wmi_utest: unit test command |
| 3239 | * |
| 3240 | * This function send unit test command to fw. |
| 3241 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3242 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3243 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3244 | QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3245 | struct wmi_unit_test_cmd *wmi_utest) |
| 3246 | { |
| 3247 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3248 | |
| 3249 | if (wmi_handle->ops->send_unit_test_cmd) |
| 3250 | return wmi_handle->ops->send_unit_test_cmd(wmi_handle, |
| 3251 | wmi_utest); |
| 3252 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3253 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3254 | } |
| 3255 | |
| 3256 | /** |
| 3257 | * wmi_unified__roam_invoke_cmd() - send roam invoke command to fw. |
| 3258 | * @wmi_hdl: wmi handle |
| 3259 | * @roaminvoke: roam invoke command |
| 3260 | * |
| 3261 | * Send roam invoke command to fw for fastreassoc. |
| 3262 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3263 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3264 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3265 | QDF_STATUS wmi_unified_roam_invoke_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3266 | struct wmi_roam_invoke_cmd *roaminvoke, |
| 3267 | uint32_t ch_hz) |
| 3268 | { |
| 3269 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3270 | |
| 3271 | if (wmi_handle->ops->send_roam_invoke_cmd) |
| 3272 | return wmi_handle->ops->send_roam_invoke_cmd(wmi_handle, |
| 3273 | roaminvoke, ch_hz); |
| 3274 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3275 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3276 | } |
| 3277 | |
| 3278 | /** |
| 3279 | * wmi_unified_roam_scan_offload_cmd() - set roam offload command |
| 3280 | * @wmi_hdl: wmi handle |
| 3281 | * @command: command |
| 3282 | * @vdev_id: vdev id |
| 3283 | * |
| 3284 | * This function set roam offload command to fw. |
| 3285 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3286 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3287 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3288 | QDF_STATUS wmi_unified_roam_scan_offload_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3289 | uint32_t command, uint32_t vdev_id) |
| 3290 | { |
| 3291 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3292 | |
| 3293 | if (wmi_handle->ops->send_roam_scan_offload_cmd) |
| 3294 | return wmi_handle->ops->send_roam_scan_offload_cmd(wmi_handle, |
| 3295 | command, vdev_id); |
| 3296 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3297 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3298 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3299 | #ifndef WMI_NON_TLV_SUPPORT |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3300 | /** |
| 3301 | * wmi_unified_send_roam_scan_offload_ap_cmd() - set roam ap profile in fw |
| 3302 | * @wmi_hdl: wmi handle |
| 3303 | * @ap_profile_p: ap profile |
| 3304 | * @vdev_id: vdev id |
| 3305 | * |
| 3306 | * Send WMI_ROAM_AP_PROFILE to firmware |
| 3307 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3308 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3309 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3310 | QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3311 | wmi_ap_profile *ap_profile_p, |
| 3312 | uint32_t vdev_id) |
| 3313 | { |
| 3314 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3315 | |
| 3316 | if (wmi_handle->ops->send_roam_scan_offload_ap_profile_cmd) |
| 3317 | return wmi_handle->ops->send_roam_scan_offload_ap_profile_cmd(wmi_handle, |
| 3318 | ap_profile_p, vdev_id); |
| 3319 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3320 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3321 | } |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3322 | #endif |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3323 | /** |
| 3324 | * wmi_unified_roam_scan_offload_scan_period() - set roam offload scan period |
| 3325 | * @wmi_handle: wmi handle |
| 3326 | * @scan_period: scan period |
| 3327 | * @scan_age: scan age |
| 3328 | * @vdev_id: vdev id |
| 3329 | * |
| 3330 | * Send WMI_ROAM_SCAN_PERIOD parameters to fw. |
| 3331 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3332 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3333 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3334 | QDF_STATUS wmi_unified_roam_scan_offload_scan_period(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3335 | uint32_t scan_period, |
| 3336 | uint32_t scan_age, |
| 3337 | uint32_t vdev_id) |
| 3338 | { |
| 3339 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3340 | |
| 3341 | if (wmi_handle->ops->send_roam_scan_offload_scan_period_cmd) |
| 3342 | return wmi_handle->ops->send_roam_scan_offload_scan_period_cmd(wmi_handle, |
| 3343 | scan_period, scan_age, vdev_id); |
| 3344 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3345 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3346 | } |
| 3347 | |
| 3348 | /** |
| 3349 | * wmi_unified_roam_scan_offload_chan_list_cmd() - set roam offload channel list |
| 3350 | * @wmi_handle: wmi handle |
| 3351 | * @chan_count: channel count |
| 3352 | * @chan_list: channel list |
| 3353 | * @list_type: list type |
| 3354 | * @vdev_id: vdev id |
| 3355 | * |
| 3356 | * Set roam offload channel list. |
| 3357 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3358 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3359 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3360 | QDF_STATUS wmi_unified_roam_scan_offload_chan_list_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3361 | uint8_t chan_count, |
Varun Reddy Yeturu | 5a552cf | 2016-07-07 17:42:49 -0700 | [diff] [blame] | 3362 | uint32_t *chan_list, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3363 | uint8_t list_type, uint32_t vdev_id) |
| 3364 | { |
| 3365 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3366 | |
| 3367 | if (wmi_handle->ops->send_roam_scan_offload_chan_list_cmd) |
| 3368 | return wmi_handle->ops->send_roam_scan_offload_chan_list_cmd(wmi_handle, |
| 3369 | chan_count, chan_list, |
| 3370 | list_type, vdev_id); |
| 3371 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3372 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3373 | } |
| 3374 | |
| 3375 | /** |
| 3376 | * wmi_unified_roam_scan_offload_rssi_change_cmd() - set roam offload RSSI th |
| 3377 | * @wmi_hdl: wmi handle |
| 3378 | * @rssi_change_thresh: RSSI Change threshold |
| 3379 | * @bcn_rssi_weight: beacon RSSI weight |
| 3380 | * @vdev_id: vdev id |
| 3381 | * |
| 3382 | * Send WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD parameters to fw. |
| 3383 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3384 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3385 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3386 | QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3387 | uint32_t vdev_id, |
| 3388 | int32_t rssi_change_thresh, |
| 3389 | uint32_t bcn_rssi_weight, |
| 3390 | uint32_t hirssi_delay_btw_scans) |
| 3391 | { |
| 3392 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3393 | |
| 3394 | if (wmi_handle->ops->send_roam_scan_offload_rssi_change_cmd) |
| 3395 | return wmi_handle->ops->send_roam_scan_offload_rssi_change_cmd(wmi_handle, |
| 3396 | vdev_id, rssi_change_thresh, |
| 3397 | bcn_rssi_weight, hirssi_delay_btw_scans); |
| 3398 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3399 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3400 | } |
| 3401 | |
| 3402 | /** |
| 3403 | * wmi_unified_get_buf_extscan_hotlist_cmd() - prepare hotlist command |
| 3404 | * @wmi_hdl: wmi handle |
| 3405 | * @photlist: hotlist command params |
| 3406 | * @buf_len: buffer length |
| 3407 | * |
| 3408 | * This function fills individual elements for hotlist request and |
| 3409 | * TLV for bssid entries |
| 3410 | * |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3411 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure. |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3412 | */ |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3413 | QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl, |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3414 | struct ext_scan_setbssi_hotlist_params * |
| 3415 | photlist, int *buf_len) |
| 3416 | { |
| 3417 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3418 | |
| 3419 | if (wmi_handle->ops->send_get_buf_extscan_hotlist_cmd) |
| 3420 | return wmi_handle->ops->send_get_buf_extscan_hotlist_cmd(wmi_handle, |
| 3421 | photlist, buf_len); |
| 3422 | |
Govind Singh | b53420c | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 3423 | return QDF_STATUS_E_FAILURE; |
Govind Singh | a4836fd | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 3424 | } |
| 3425 | |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 3426 | /** |
| 3427 | * wmi_unified_pdev_get_tpc_config_cmd_send() - WMI get tpc config function |
| 3428 | * @param wmi_handle : handle to WMI. |
| 3429 | * @param param : tpc config param |
| 3430 | * |
| 3431 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3432 | */ |
| 3433 | QDF_STATUS wmi_unified_pdev_get_tpc_config_cmd_send(void *wmi_hdl, |
| 3434 | uint32_t param) |
| 3435 | { |
| 3436 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3437 | |
| 3438 | if (wmi_handle->ops->send_pdev_get_tpc_config_cmd) |
| 3439 | return wmi_handle->ops->send_pdev_get_tpc_config_cmd(wmi_handle, |
| 3440 | param); |
| 3441 | |
| 3442 | return QDF_STATUS_E_FAILURE; |
| 3443 | } |
| 3444 | |
| 3445 | /** |
| 3446 | * wmi_unified_set_atf_cmd_send() - WMI set atf function |
| 3447 | * @param wmi_handle : handle to WMI. |
| 3448 | * @param param : pointer to set atf param |
| 3449 | * |
| 3450 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3451 | */ |
| 3452 | QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl, |
| 3453 | struct set_atf_params *param) |
| 3454 | { |
| 3455 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3456 | |
| 3457 | if (wmi_handle->ops->send_set_atf_cmd) |
| 3458 | return wmi_handle->ops->send_set_atf_cmd(wmi_handle, param); |
| 3459 | |
| 3460 | return QDF_STATUS_E_FAILURE; |
| 3461 | } |
| 3462 | |
| 3463 | /** |
| 3464 | * wmi_unified_pdev_fips_cmd_send() - WMI pdev fips cmd function |
| 3465 | * @param wmi_handle : handle to WMI. |
| 3466 | * @param param : pointer to hold pdev fips param |
| 3467 | * |
| 3468 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3469 | */ |
| 3470 | QDF_STATUS wmi_unified_pdev_fips_cmd_send(void *wmi_hdl, |
| 3471 | struct fips_params *param) |
| 3472 | { |
| 3473 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3474 | |
| 3475 | if (wmi_handle->ops->send_pdev_fips_cmd) |
| 3476 | return wmi_handle->ops->send_pdev_fips_cmd(wmi_handle, param); |
| 3477 | |
| 3478 | return QDF_STATUS_E_FAILURE; |
| 3479 | } |
| 3480 | |
| 3481 | /** |
| 3482 | * wmi_unified_wlan_profile_enable_cmd_send() - WMI wlan profile enable cmd function |
| 3483 | * @param wmi_handle : handle to WMI. |
| 3484 | * @param param : pointer to hold wlan profile param |
| 3485 | * |
| 3486 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3487 | */ |
| 3488 | QDF_STATUS wmi_unified_wlan_profile_enable_cmd_send(void *wmi_hdl, |
| 3489 | struct wlan_profile_params *param) |
| 3490 | { |
| 3491 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3492 | |
| 3493 | if (wmi_handle->ops->send_wlan_profile_enable_cmd) |
| 3494 | return wmi_handle->ops->send_wlan_profile_enable_cmd(wmi_handle, |
| 3495 | param); |
| 3496 | |
| 3497 | return QDF_STATUS_E_FAILURE; |
| 3498 | } |
| 3499 | |
| 3500 | /** |
| 3501 | * wmi_unified_wlan_profile_trigger_cmd_send() - WMI wlan profile trigger cmd function |
| 3502 | * @param wmi_handle : handle to WMI. |
| 3503 | * @param param : pointer to hold wlan profile param |
| 3504 | * |
| 3505 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3506 | */ |
| 3507 | QDF_STATUS wmi_unified_wlan_profile_trigger_cmd_send(void *wmi_hdl, |
| 3508 | struct wlan_profile_params *param) |
| 3509 | { |
| 3510 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3511 | |
| 3512 | if (wmi->ops->send_wlan_profile_trigger_cmd) |
| 3513 | return wmi->ops->send_wlan_profile_trigger_cmd(wmi, |
| 3514 | param); |
| 3515 | |
| 3516 | return QDF_STATUS_E_FAILURE; |
| 3517 | } |
| 3518 | |
| 3519 | /** |
| 3520 | * wmi_unified_set_chan_cmd_send() - WMI set channel cmd function |
| 3521 | * @param wmi_handle : handle to WMI. |
| 3522 | * @param param : pointer to hold channel param |
| 3523 | * |
| 3524 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3525 | */ |
| 3526 | QDF_STATUS wmi_unified_set_chan_cmd_send(void *wmi_hdl, |
| 3527 | struct channel_param *param) |
| 3528 | { |
| 3529 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3530 | |
| 3531 | if (wmi_handle->ops->send_pdev_set_chan_cmd) |
| 3532 | return wmi_handle->ops->send_pdev_set_chan_cmd(wmi_handle, |
| 3533 | param); |
| 3534 | |
| 3535 | return QDF_STATUS_E_FAILURE; |
| 3536 | } |
| 3537 | |
| 3538 | /** |
| 3539 | * wmi_unified_set_ht_ie_cmd_send() - WMI set channel cmd function |
| 3540 | * @param wmi_handle : handle to WMI. |
| 3541 | * @param param : pointer to hold channel param |
| 3542 | * |
| 3543 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3544 | */ |
| 3545 | QDF_STATUS wmi_unified_set_ht_ie_cmd_send(void *wmi_hdl, |
| 3546 | struct ht_ie_params *param) |
| 3547 | { |
| 3548 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3549 | |
| 3550 | if (wmi_handle->ops->send_set_ht_ie_cmd) |
| 3551 | return wmi_handle->ops->send_set_ht_ie_cmd(wmi_handle, param); |
| 3552 | |
| 3553 | return QDF_STATUS_E_FAILURE; |
| 3554 | } |
| 3555 | |
| 3556 | /** |
| 3557 | * wmi_unified_set_vht_ie_cmd_send() - WMI set channel cmd function |
| 3558 | * @param wmi_handle : handle to WMI. |
| 3559 | * @param param : pointer to hold channel param |
| 3560 | * |
| 3561 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3562 | */ |
| 3563 | QDF_STATUS wmi_unified_set_vht_ie_cmd_send(void *wmi_hdl, |
| 3564 | struct vht_ie_params *param) |
| 3565 | { |
| 3566 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3567 | |
| 3568 | if (wmi_handle->ops->send_set_vht_ie_cmd) |
| 3569 | return wmi_handle->ops->send_set_vht_ie_cmd(wmi_handle, param); |
| 3570 | |
| 3571 | return QDF_STATUS_E_FAILURE; |
| 3572 | } |
| 3573 | |
| 3574 | /** |
| 3575 | * wmi_unified_wmm_update_cmd_send() - WMI wmm update cmd function |
| 3576 | * @param wmi_handle : handle to WMI. |
| 3577 | * @param param : pointer to hold wmm param |
| 3578 | * |
| 3579 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3580 | */ |
| 3581 | QDF_STATUS wmi_unified_wmm_update_cmd_send(void *wmi_hdl, |
| 3582 | struct wmm_update_params *param) |
| 3583 | { |
| 3584 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3585 | |
| 3586 | if (wmi_handle->ops->send_wmm_update_cmd) |
| 3587 | return wmi_handle->ops->send_wmm_update_cmd(wmi_handle, param); |
| 3588 | |
| 3589 | return QDF_STATUS_E_FAILURE; |
| 3590 | } |
| 3591 | |
| 3592 | /** |
| 3593 | * wmi_unified_set_ant_switch_tbl_cmd_send() - WMI ant switch tbl cmd function |
| 3594 | * @param wmi_handle : handle to WMI. |
| 3595 | * @param param : pointer to hold ant switch tbl param |
| 3596 | * |
| 3597 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3598 | */ |
| 3599 | QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl, |
| 3600 | struct ant_switch_tbl_params *param) |
| 3601 | { |
| 3602 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3603 | |
| 3604 | if (wmi_handle->ops->send_set_ant_switch_tbl_cmd) |
| 3605 | return wmi_handle->ops->send_set_ant_switch_tbl_cmd(wmi_handle, |
| 3606 | param); |
| 3607 | |
| 3608 | return QDF_STATUS_E_FAILURE; |
| 3609 | } |
| 3610 | |
| 3611 | /** |
| 3612 | * wmi_unified_set_ratepwr_table_cmd_send() - WMI ratepwr table cmd function |
| 3613 | * @param wmi_handle : handle to WMI. |
| 3614 | * @param param : pointer to hold ratepwr table param |
| 3615 | * |
| 3616 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3617 | */ |
| 3618 | QDF_STATUS wmi_unified_set_ratepwr_table_cmd_send(void *wmi_hdl, |
| 3619 | struct ratepwr_table_params *param) |
| 3620 | { |
| 3621 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3622 | |
| 3623 | if (wmi_handle->ops->send_set_ratepwr_table_cmd) |
| 3624 | return wmi_handle->ops->send_set_ratepwr_table_cmd(wmi_handle, |
| 3625 | param); |
| 3626 | |
| 3627 | return QDF_STATUS_E_FAILURE; |
| 3628 | } |
| 3629 | |
| 3630 | /** |
| 3631 | * wmi_unified_get_ratepwr_table_cmd_send() - WMI ratepwr table cmd function |
| 3632 | * @param wmi_handle : handle to WMI. |
| 3633 | * |
| 3634 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3635 | */ |
| 3636 | QDF_STATUS wmi_unified_get_ratepwr_table_cmd_send(void *wmi_hdl) |
| 3637 | { |
| 3638 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3639 | |
| 3640 | if (wmi_handle->ops->send_get_ratepwr_table_cmd) |
| 3641 | return wmi_handle->ops->send_get_ratepwr_table_cmd(wmi_handle); |
| 3642 | |
| 3643 | return QDF_STATUS_E_FAILURE; |
| 3644 | } |
| 3645 | |
| 3646 | /** |
| 3647 | * wmi_unified_set_ctl_table_cmd_send() - WMI ctl table cmd function |
| 3648 | * @param wmi_handle : handle to WMI. |
| 3649 | * @param param : pointer to hold ctl table param |
| 3650 | * |
| 3651 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3652 | */ |
| 3653 | QDF_STATUS wmi_unified_set_ctl_table_cmd_send(void *wmi_hdl, |
| 3654 | struct ctl_table_params *param) |
| 3655 | { |
| 3656 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3657 | |
| 3658 | if (wmi_handle->ops->send_set_ctl_table_cmd) |
| 3659 | return wmi_handle->ops->send_set_ctl_table_cmd(wmi_handle, |
| 3660 | param); |
| 3661 | |
| 3662 | return QDF_STATUS_E_FAILURE; |
| 3663 | } |
| 3664 | |
| 3665 | /** |
| 3666 | * wmi_unified_set_mimogain_table_cmd_send() - WMI set mimogain cmd function |
| 3667 | * @param wmi_handle : handle to WMI. |
| 3668 | * @param param : pointer to hold mimogain param |
| 3669 | * |
| 3670 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3671 | */ |
| 3672 | QDF_STATUS wmi_unified_set_mimogain_table_cmd_send(void *wmi_hdl, |
| 3673 | struct mimogain_table_params *param) |
| 3674 | { |
| 3675 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3676 | |
| 3677 | if (wmi_handle->ops->send_set_mimogain_table_cmd) |
| 3678 | return wmi_handle->ops->send_set_mimogain_table_cmd(wmi_handle, |
| 3679 | param); |
| 3680 | |
| 3681 | return QDF_STATUS_E_FAILURE; |
| 3682 | } |
| 3683 | |
| 3684 | /** |
| 3685 | * wmi_unified_set_ratepwr_chainmsk_cmd_send() - WMI ratepwr |
| 3686 | * chainmsk cmd function |
| 3687 | * @param wmi_handle : handle to WMI. |
| 3688 | * @param param : pointer to hold ratepwr chainmsk param |
| 3689 | * |
| 3690 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3691 | */ |
| 3692 | QDF_STATUS wmi_unified_set_ratepwr_chainmsk_cmd_send(void *wmi_hdl, |
| 3693 | struct ratepwr_chainmsk_params *param) |
| 3694 | { |
| 3695 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3696 | |
| 3697 | if (wmi->ops->send_set_ratepwr_chainmsk_cmd) |
| 3698 | return wmi->ops->send_set_ratepwr_chainmsk_cmd(wmi, param); |
| 3699 | |
| 3700 | return QDF_STATUS_E_FAILURE; |
| 3701 | } |
| 3702 | |
| 3703 | /** |
| 3704 | * wmi_unified_set_macaddr_cmd_send() - WMI set macaddr cmd function |
| 3705 | * @param wmi_handle : handle to WMI. |
| 3706 | * @param param : pointer to hold macaddr param |
| 3707 | * |
| 3708 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3709 | */ |
| 3710 | QDF_STATUS wmi_unified_set_macaddr_cmd_send(void *wmi_hdl, |
| 3711 | struct macaddr_params *param) |
| 3712 | { |
| 3713 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3714 | |
| 3715 | if (wmi_handle->ops->send_set_macaddr_cmd) |
| 3716 | return wmi_handle->ops->send_set_macaddr_cmd(wmi_handle, param); |
| 3717 | |
| 3718 | return QDF_STATUS_E_FAILURE; |
| 3719 | } |
| 3720 | |
| 3721 | /** |
| 3722 | * wmi_unified_pdev_scan_start_cmd_send() - WMI pdev scan start cmd function |
| 3723 | * @param wmi_handle : handle to WMI. |
| 3724 | * |
| 3725 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3726 | */ |
| 3727 | QDF_STATUS wmi_unified_pdev_scan_start_cmd_send(void *wmi_hdl) |
| 3728 | { |
| 3729 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3730 | |
| 3731 | if (wmi_handle->ops->send_pdev_scan_start_cmd) |
| 3732 | return wmi_handle->ops->send_pdev_scan_start_cmd(wmi_handle); |
| 3733 | |
| 3734 | return QDF_STATUS_E_FAILURE; |
| 3735 | } |
| 3736 | |
| 3737 | /** |
| 3738 | * wmi_unified_pdev_scan_end_cmd_send() - WMI pdev scan end cmd function |
| 3739 | * @param wmi_handle : handle to WMI. |
| 3740 | * |
| 3741 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3742 | */ |
| 3743 | QDF_STATUS wmi_unified_pdev_scan_end_cmd_send(void *wmi_hdl) |
| 3744 | { |
| 3745 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3746 | |
| 3747 | if (wmi_handle->ops->send_pdev_scan_end_cmd) |
| 3748 | return wmi_handle->ops->send_pdev_scan_end_cmd(wmi_handle); |
| 3749 | |
| 3750 | return QDF_STATUS_E_FAILURE; |
| 3751 | } |
| 3752 | |
| 3753 | /** |
| 3754 | * wmi_unified_set_acparams_cmd_send() - WMI set acparams cmd function |
| 3755 | * @param wmi_handle : handle to WMI. |
| 3756 | * @param param : pointer to hold acparams param |
| 3757 | * |
| 3758 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3759 | */ |
| 3760 | QDF_STATUS wmi_unified_set_acparams_cmd_send(void *wmi_hdl, |
| 3761 | struct acparams_params *param) |
| 3762 | { |
| 3763 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3764 | |
| 3765 | if (wmi_handle->ops->send_set_acparams_cmd) |
| 3766 | return wmi_handle->ops->send_set_acparams_cmd(wmi_handle, |
| 3767 | param); |
| 3768 | |
| 3769 | return QDF_STATUS_E_FAILURE; |
| 3770 | } |
| 3771 | |
| 3772 | /** |
| 3773 | * wmi_unified_set_vap_dscp_tid_map_cmd_send() - WMI set vap dscp |
| 3774 | * tid map cmd function |
| 3775 | * @param wmi_handle : handle to WMI. |
| 3776 | * @param param : pointer to hold dscp param |
| 3777 | * |
| 3778 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3779 | */ |
| 3780 | QDF_STATUS wmi_unified_set_vap_dscp_tid_map_cmd_send(void *wmi_hdl, |
| 3781 | struct vap_dscp_tid_map_params *param) |
| 3782 | { |
| 3783 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3784 | |
| 3785 | if (wmi->ops->send_set_vap_dscp_tid_map_cmd) |
| 3786 | return wmi->ops->send_set_vap_dscp_tid_map_cmd(wmi, param); |
| 3787 | |
| 3788 | return QDF_STATUS_E_FAILURE; |
| 3789 | } |
| 3790 | |
| 3791 | /** |
| 3792 | * wmi_unified_proxy_ast_reserve_cmd_send() - WMI proxy ast |
| 3793 | * reserve cmd function |
| 3794 | * @param wmi_handle : handle to WMI. |
| 3795 | * @param param : pointer to hold ast param |
| 3796 | * |
| 3797 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3798 | */ |
| 3799 | QDF_STATUS wmi_unified_proxy_ast_reserve_cmd_send(void *wmi_hdl, |
| 3800 | struct proxy_ast_reserve_params *param) |
| 3801 | { |
| 3802 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3803 | |
| 3804 | if (wmi_handle->ops->send_proxy_ast_reserve_cmd) |
| 3805 | return wmi_handle->ops->send_proxy_ast_reserve_cmd(wmi_handle, |
| 3806 | param); |
| 3807 | |
| 3808 | return QDF_STATUS_E_FAILURE; |
| 3809 | } |
| 3810 | |
| 3811 | /** |
| 3812 | * wmi_unified_pdev_qvit_cmd_send() - WMI pdev qvit cmd function |
| 3813 | * @param wmi_handle : handle to WMI. |
| 3814 | * @param param : pointer to hold qvit param |
| 3815 | * |
| 3816 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3817 | */ |
| 3818 | QDF_STATUS wmi_unified_pdev_qvit_cmd_send(void *wmi_hdl, |
| 3819 | struct pdev_qvit_params *param) |
| 3820 | { |
| 3821 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3822 | |
| 3823 | if (wmi_handle->ops->send_pdev_qvit_cmd) |
| 3824 | return wmi_handle->ops->send_pdev_qvit_cmd(wmi_handle, param); |
| 3825 | |
| 3826 | return QDF_STATUS_E_FAILURE; |
| 3827 | } |
| 3828 | |
| 3829 | /** |
| 3830 | * wmi_unified_mcast_group_update_cmd_send() - WMI mcast grp update cmd function |
| 3831 | * @param wmi_handle : handle to WMI. |
| 3832 | * @param param : pointer to hold mcast grp param |
| 3833 | * |
| 3834 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3835 | */ |
| 3836 | QDF_STATUS wmi_unified_mcast_group_update_cmd_send(void *wmi_hdl, |
| 3837 | struct mcast_group_update_params *param) |
| 3838 | { |
| 3839 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3840 | |
| 3841 | if (wmi_handle->ops->send_mcast_group_update_cmd) |
| 3842 | return wmi_handle->ops->send_mcast_group_update_cmd(wmi_handle, |
| 3843 | param); |
| 3844 | |
| 3845 | return QDF_STATUS_E_FAILURE; |
| 3846 | } |
| 3847 | |
| 3848 | /** |
| 3849 | * wmi_unified_peer_add_wds_entry_cmd_send() - WMI add wds entry cmd function |
| 3850 | * @param wmi_handle : handle to WMI. |
| 3851 | * @param param : pointer to hold wds entry param |
| 3852 | * |
| 3853 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3854 | */ |
| 3855 | QDF_STATUS wmi_unified_peer_add_wds_entry_cmd_send(void *wmi_hdl, |
| 3856 | struct peer_add_wds_entry_params *param) |
| 3857 | { |
| 3858 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3859 | |
| 3860 | if (wmi_handle->ops->send_peer_add_wds_entry_cmd) |
| 3861 | return wmi_handle->ops->send_peer_add_wds_entry_cmd(wmi_handle, |
| 3862 | param); |
| 3863 | |
| 3864 | return QDF_STATUS_E_FAILURE; |
| 3865 | } |
| 3866 | |
| 3867 | /** |
| 3868 | * wmi_unified_peer_del_wds_entry_cmd_send() - WMI del wds entry cmd function |
| 3869 | * @param wmi_handle : handle to WMI. |
| 3870 | * @param param : pointer to hold wds entry param |
| 3871 | * |
| 3872 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3873 | */ |
| 3874 | QDF_STATUS wmi_unified_peer_del_wds_entry_cmd_send(void *wmi_hdl, |
| 3875 | struct peer_del_wds_entry_params *param) |
| 3876 | { |
| 3877 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3878 | |
| 3879 | if (wmi_handle->ops->send_peer_del_wds_entry_cmd) |
| 3880 | return wmi_handle->ops->send_peer_del_wds_entry_cmd(wmi_handle, |
| 3881 | param); |
| 3882 | |
| 3883 | return QDF_STATUS_E_FAILURE; |
| 3884 | } |
| 3885 | |
| 3886 | /** |
| 3887 | * wmi_unified_peer_update_wds_entry_cmd_send() - WMI update wds entry cmd function |
| 3888 | * @param wmi_handle : handle to WMI. |
| 3889 | * @param param : pointer to hold wds entry param |
| 3890 | * |
| 3891 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3892 | */ |
| 3893 | QDF_STATUS wmi_unified_peer_update_wds_entry_cmd_send(void *wmi_hdl, |
| 3894 | struct peer_update_wds_entry_params *param) |
| 3895 | { |
| 3896 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3897 | |
| 3898 | if (wmi->ops->send_peer_update_wds_entry_cmd) |
| 3899 | return wmi->ops->send_peer_update_wds_entry_cmd(wmi, param); |
| 3900 | |
| 3901 | return QDF_STATUS_E_FAILURE; |
| 3902 | } |
| 3903 | |
| 3904 | /** |
| 3905 | * wmi_unified_phyerr_enable_cmd_send() - WMI phyerr enable cmd function |
| 3906 | * @param wmi_handle : handle to WMI. |
| 3907 | * @param param : pointer to hold phyerr enable param |
| 3908 | * |
| 3909 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3910 | */ |
| 3911 | QDF_STATUS wmi_unified_phyerr_enable_cmd_send(void *wmi_hdl) |
| 3912 | { |
| 3913 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3914 | |
| 3915 | if (wmi_handle->ops->send_phyerr_enable_cmd) |
| 3916 | return wmi_handle->ops->send_phyerr_enable_cmd(wmi_handle); |
| 3917 | |
| 3918 | return QDF_STATUS_E_FAILURE; |
| 3919 | } |
| 3920 | |
| 3921 | /** |
| 3922 | * wmi_unified_phyerr_disable_cmd_send() - WMI phyerr disable cmd function |
| 3923 | * @param wmi_handle : handle to WMI. |
| 3924 | * @param param : pointer to hold phyerr disable param |
| 3925 | * |
| 3926 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3927 | */ |
| 3928 | QDF_STATUS wmi_unified_phyerr_disable_cmd_send(void *wmi_hdl) |
| 3929 | { |
| 3930 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3931 | |
| 3932 | if (wmi_handle->ops->send_phyerr_disable_cmd) |
| 3933 | return wmi_handle->ops->send_phyerr_disable_cmd(wmi_handle); |
| 3934 | |
| 3935 | return QDF_STATUS_E_FAILURE; |
| 3936 | } |
| 3937 | |
| 3938 | /** |
| 3939 | * wmi_unified_smart_ant_enable_cmd_send() - WMI smart ant enable function |
| 3940 | * @param wmi_handle : handle to WMI. |
| 3941 | * @param param : pointer to hold antenna param |
| 3942 | * |
| 3943 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3944 | */ |
| 3945 | QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl, |
| 3946 | struct smart_ant_enable_params *param) |
| 3947 | { |
| 3948 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 3949 | |
| 3950 | if (wmi_handle->ops->send_smart_ant_enable_cmd) |
| 3951 | return wmi_handle->ops->send_smart_ant_enable_cmd(wmi_handle, |
| 3952 | param); |
| 3953 | |
| 3954 | return QDF_STATUS_E_FAILURE; |
| 3955 | } |
| 3956 | |
| 3957 | /** |
| 3958 | * wmi_unified_smart_ant_set_rx_ant_cmd_send() - WMI set rx antenna function |
| 3959 | * @param wmi_handle : handle to WMI. |
| 3960 | * @param param : pointer to hold antenna param |
| 3961 | * |
| 3962 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3963 | */ |
| 3964 | QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(void *wmi_hdl, |
| 3965 | struct smart_ant_rx_ant_params *param) |
| 3966 | { |
| 3967 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3968 | |
| 3969 | if (wmi->ops->send_smart_ant_set_rx_ant_cmd) |
| 3970 | return wmi->ops->send_smart_ant_set_rx_ant_cmd(wmi, param); |
| 3971 | |
| 3972 | return QDF_STATUS_E_FAILURE; |
| 3973 | } |
| 3974 | |
| 3975 | /** |
| 3976 | * wmi_unified_smart_ant_set_tx_ant_cmd_send() - WMI set tx antenna function |
| 3977 | * @param wmi_handle : handle to WMI. |
| 3978 | * @param param : pointer to hold antenna param |
| 3979 | * |
| 3980 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 3981 | */ |
| 3982 | QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(void *wmi_hdl, |
| 3983 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 3984 | struct smart_ant_tx_ant_params *param) |
| 3985 | { |
| 3986 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 3987 | |
| 3988 | if (wmi->ops->send_smart_ant_set_tx_ant_cmd) |
| 3989 | return wmi->ops->send_smart_ant_set_tx_ant_cmd(wmi, macaddr, |
| 3990 | param); |
| 3991 | |
| 3992 | return QDF_STATUS_E_FAILURE; |
| 3993 | } |
| 3994 | |
| 3995 | /** |
| 3996 | * wmi_unified_smart_ant_set_training_info_cmd_send() - WMI set tx antenna function |
| 3997 | * @param wmi_handle : handle to WMI. |
| 3998 | * @param param : pointer to hold antenna param |
| 3999 | * |
| 4000 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4001 | */ |
| 4002 | QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(void *wmi_hdl, |
| 4003 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4004 | struct smart_ant_training_info_params *param) |
| 4005 | { |
| 4006 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4007 | |
| 4008 | if (wmi->ops->send_smart_ant_set_training_info_cmd) |
| 4009 | return wmi->ops->send_smart_ant_set_training_info_cmd(wmi, |
| 4010 | macaddr, param); |
| 4011 | |
| 4012 | return QDF_STATUS_E_FAILURE; |
| 4013 | } |
| 4014 | |
| 4015 | /** |
| 4016 | * wmi_unified_smart_ant_node_config_cmd_send() - WMI set node config function |
| 4017 | * @param wmi_handle : handle to WMI. |
| 4018 | * @param macaddr : MAC address |
| 4019 | * @param param : pointer to hold node parameter |
| 4020 | * |
| 4021 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4022 | */ |
| 4023 | QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(void *wmi_hdl, |
| 4024 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4025 | struct smart_ant_node_config_params *param) |
| 4026 | { |
| 4027 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4028 | |
| 4029 | if (wmi->ops->send_smart_ant_set_node_config_cmd) |
| 4030 | return wmi->ops->send_smart_ant_set_node_config_cmd(wmi, |
| 4031 | macaddr, param); |
| 4032 | |
| 4033 | return QDF_STATUS_E_FAILURE; |
| 4034 | } |
| 4035 | |
| 4036 | /** |
| 4037 | * wmi_unified_smart_ant_enable_tx_feedback_cmd_send() - WMI set tx antenna function |
| 4038 | * @param wmi_handle : handle to WMI. |
| 4039 | * @param param : pointer to hold antenna param |
| 4040 | * |
| 4041 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4042 | */ |
| 4043 | QDF_STATUS wmi_unified_smart_ant_enable_tx_feedback_cmd_send(void *wmi_hdl, |
| 4044 | struct smart_ant_enable_tx_feedback_params *param) |
| 4045 | { |
| 4046 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4047 | |
| 4048 | if (wmi->ops->send_smart_ant_enable_tx_feedback_cmd) |
| 4049 | return wmi->ops->send_smart_ant_enable_tx_feedback_cmd(wmi, |
| 4050 | param); |
| 4051 | |
| 4052 | return QDF_STATUS_E_FAILURE; |
| 4053 | } |
| 4054 | |
| 4055 | /** |
| 4056 | * wmi_unified_vdev_spectral_configure_cmd_send() - WMI set spectral config function |
| 4057 | * @param wmi_handle : handle to WMI. |
| 4058 | * @param param : pointer to hold spectral config param |
| 4059 | * |
| 4060 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4061 | */ |
| 4062 | QDF_STATUS wmi_unified_vdev_spectral_configure_cmd_send(void *wmi_hdl, |
| 4063 | struct vdev_spectral_configure_params *param) |
| 4064 | { |
| 4065 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4066 | |
| 4067 | if (wmi->ops->send_vdev_spectral_configure_cmd) |
| 4068 | return wmi->ops->send_vdev_spectral_configure_cmd(wmi, param); |
| 4069 | |
| 4070 | return QDF_STATUS_E_FAILURE; |
| 4071 | } |
| 4072 | |
| 4073 | /** |
| 4074 | * wmi_unified_vdev_spectral_enable_cmd_send() - WMI enable spectral function |
| 4075 | * @param wmi_handle : handle to WMI. |
| 4076 | * @param param : pointer to hold enable spectral param |
| 4077 | * |
| 4078 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4079 | */ |
| 4080 | QDF_STATUS wmi_unified_vdev_spectral_enable_cmd_send(void *wmi_hdl, |
| 4081 | struct vdev_spectral_enable_params *param) |
| 4082 | { |
| 4083 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4084 | |
| 4085 | if (wmi->ops->send_vdev_spectral_enable_cmd) |
| 4086 | return wmi->ops->send_vdev_spectral_enable_cmd(wmi, param); |
| 4087 | |
| 4088 | return QDF_STATUS_E_FAILURE; |
| 4089 | } |
| 4090 | |
| 4091 | /** |
| 4092 | * wmi_unified_bss_chan_info_request_cmd_send() - WMI bss chan info request function |
| 4093 | * @param wmi_handle : handle to WMI. |
| 4094 | * @param param : pointer to hold chan info param |
| 4095 | * |
| 4096 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4097 | */ |
| 4098 | QDF_STATUS wmi_unified_bss_chan_info_request_cmd_send(void *wmi_hdl, |
| 4099 | struct bss_chan_info_request_params *param) |
| 4100 | { |
| 4101 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4102 | |
| 4103 | if (wmi->ops->send_bss_chan_info_request_cmd) |
| 4104 | return wmi->ops->send_bss_chan_info_request_cmd(wmi, param); |
| 4105 | |
| 4106 | return QDF_STATUS_E_FAILURE; |
| 4107 | } |
| 4108 | |
| 4109 | /** |
| 4110 | * wmi_unified_thermal_mitigation_param_cmd_send() - WMI thermal mitigation function |
| 4111 | * @param wmi_handle : handle to WMI. |
| 4112 | * @param param : pointer to hold thermal mitigation param |
| 4113 | * |
| 4114 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4115 | */ |
| 4116 | QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send(void *wmi_hdl, |
| 4117 | struct thermal_mitigation_params *param) |
| 4118 | { |
| 4119 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4120 | |
| 4121 | if (wmi->ops->send_thermal_mitigation_param_cmd) |
| 4122 | return wmi->ops->send_thermal_mitigation_param_cmd(wmi, param); |
| 4123 | |
| 4124 | return QDF_STATUS_E_FAILURE; |
| 4125 | } |
| 4126 | |
| 4127 | /** |
| 4128 | * wmi_unified_vdev_set_neighbour_rx_cmd_send() - WMI set neighbour rx function |
| 4129 | * @param wmi_handle : handle to WMI. |
| 4130 | * @param macaddr : MAC address |
| 4131 | * @param param : pointer to hold neighbour rx parameter |
| 4132 | * |
| 4133 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4134 | */ |
| 4135 | QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(void *wmi_hdl, |
| 4136 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4137 | struct set_neighbour_rx_params *param) |
| 4138 | { |
| 4139 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4140 | |
| 4141 | if (wmi->ops->send_vdev_set_neighbour_rx_cmd) |
| 4142 | return wmi->ops->send_vdev_set_neighbour_rx_cmd(wmi, |
| 4143 | macaddr, param); |
| 4144 | |
| 4145 | return QDF_STATUS_E_FAILURE; |
| 4146 | } |
| 4147 | |
| 4148 | /** |
| 4149 | * wmi_unified_vdev_set_fwtest_param_cmd_send() - WMI set fwtest function |
| 4150 | * @param wmi_handle : handle to WMI. |
| 4151 | * @param param : pointer to hold fwtest param |
| 4152 | * |
| 4153 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4154 | */ |
| 4155 | QDF_STATUS wmi_unified_vdev_set_fwtest_param_cmd_send(void *wmi_hdl, |
| 4156 | struct set_fwtest_params *param) |
| 4157 | { |
| 4158 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4159 | |
| 4160 | if (wmi->ops->send_vdev_set_fwtest_param_cmd) |
| 4161 | return wmi->ops->send_vdev_set_fwtest_param_cmd(wmi, param); |
| 4162 | |
| 4163 | return QDF_STATUS_E_FAILURE; |
| 4164 | } |
| 4165 | |
| 4166 | /** |
| 4167 | * wmi_unified_vdev_config_ratemask_cmd_send() - WMI config ratemask function |
| 4168 | * @param wmi_handle : handle to WMI. |
| 4169 | * @param param : pointer to hold config ratemask param |
| 4170 | * |
| 4171 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4172 | */ |
| 4173 | QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(void *wmi_hdl, |
| 4174 | struct config_ratemask_params *param) |
| 4175 | { |
| 4176 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4177 | |
| 4178 | if (wmi->ops->send_vdev_config_ratemask_cmd) |
| 4179 | return wmi->ops->send_vdev_config_ratemask_cmd(wmi, param); |
| 4180 | |
| 4181 | return QDF_STATUS_E_FAILURE; |
| 4182 | } |
| 4183 | |
| 4184 | /** |
| 4185 | * wmi_unified_vdev_install_key_cmd_send() - WMI install key function |
| 4186 | * @param wmi_handle : handle to WMI. |
| 4187 | * @param macaddr : MAC address |
| 4188 | * @param param : pointer to hold key parameter |
| 4189 | * |
| 4190 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4191 | */ |
| 4192 | QDF_STATUS wmi_unified_vdev_install_key_cmd_send(void *wmi_hdl, |
| 4193 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4194 | struct vdev_install_key_params *param) |
| 4195 | { |
| 4196 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4197 | |
| 4198 | if (wmi_handle->ops->send_vdev_install_key_cmd) |
| 4199 | return wmi_handle->ops->send_vdev_install_key_cmd(wmi_handle, |
| 4200 | macaddr, param); |
| 4201 | |
| 4202 | return QDF_STATUS_E_FAILURE; |
| 4203 | } |
| 4204 | |
| 4205 | /** |
| 4206 | * wmi_unified_pdev_set_regdomain_params_cmd_send() - WMI set regdomain function |
| 4207 | * @param wmi_handle : handle to WMI. |
| 4208 | * @param param : pointer to hold regdomain param |
| 4209 | * |
| 4210 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4211 | */ |
| 4212 | QDF_STATUS wmi_unified_pdev_set_regdomain_cmd_send(void *wmi_hdl, |
| 4213 | struct pdev_set_regdomain_params *param) |
| 4214 | { |
| 4215 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4216 | |
| 4217 | if (wmi_handle->ops->send_pdev_set_regdomain_cmd) |
| 4218 | return wmi_handle->ops->send_pdev_set_regdomain_cmd(wmi_handle, |
| 4219 | param); |
| 4220 | |
| 4221 | return QDF_STATUS_E_FAILURE; |
| 4222 | } |
| 4223 | |
| 4224 | /** |
| 4225 | * wmi_unified_set_quiet_mode_cmd_send() - WMI set quiet mode function |
| 4226 | * @param wmi_handle : handle to WMI. |
| 4227 | * @param param : pointer to hold quiet mode param |
| 4228 | * |
| 4229 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4230 | */ |
| 4231 | QDF_STATUS wmi_unified_set_quiet_mode_cmd_send(void *wmi_hdl, |
| 4232 | struct set_quiet_mode_params *param) |
| 4233 | { |
| 4234 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4235 | |
| 4236 | if (wmi_handle->ops->send_set_quiet_mode_cmd) |
| 4237 | return wmi_handle->ops->send_set_quiet_mode_cmd(wmi_handle, |
| 4238 | param); |
| 4239 | |
| 4240 | return QDF_STATUS_E_FAILURE; |
| 4241 | } |
| 4242 | |
| 4243 | /** |
| 4244 | * wmi_unified_set_beacon_filter_cmd_send() - WMI set beacon filter function |
| 4245 | * @param wmi_handle : handle to WMI. |
| 4246 | * @param param : pointer to hold beacon filter param |
| 4247 | * |
| 4248 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4249 | */ |
| 4250 | QDF_STATUS wmi_unified_set_beacon_filter_cmd_send(void *wmi_hdl, |
| 4251 | struct set_beacon_filter_params *param) |
| 4252 | { |
| 4253 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4254 | |
| 4255 | if (wmi_handle->ops->send_set_beacon_filter_cmd) |
| 4256 | return wmi_handle->ops->send_set_beacon_filter_cmd(wmi_handle, |
| 4257 | param); |
| 4258 | |
| 4259 | return QDF_STATUS_E_FAILURE; |
| 4260 | } |
| 4261 | |
| 4262 | /** |
| 4263 | * wmi_unified_remove_beacon_filter_cmd_send() - WMI set beacon filter function |
| 4264 | * @param wmi_handle : handle to WMI. |
| 4265 | * @param param : pointer to hold beacon filter param |
| 4266 | * |
| 4267 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4268 | */ |
| 4269 | QDF_STATUS wmi_unified_remove_beacon_filter_cmd_send(void *wmi_hdl, |
| 4270 | struct remove_beacon_filter_params *param) |
| 4271 | { |
| 4272 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4273 | |
| 4274 | if (wmi->ops->send_remove_beacon_filter_cmd) |
| 4275 | return wmi->ops->send_remove_beacon_filter_cmd(wmi, param); |
| 4276 | |
| 4277 | return QDF_STATUS_E_FAILURE; |
| 4278 | } |
| 4279 | |
| 4280 | /** |
| 4281 | * wmi_unified_mgmt_cmd_send() - WMI mgmt cmd function |
| 4282 | * @param wmi_handle : handle to WMI. |
| 4283 | * @param macaddr : MAC address |
| 4284 | * @param param : pointer to hold mgmt parameter |
| 4285 | * |
| 4286 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4287 | */ |
| 4288 | #if 0 |
| 4289 | QDF_STATUS wmi_unified_mgmt_cmd_send(void *wmi_hdl, |
| 4290 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4291 | struct mgmt_params *param) |
| 4292 | { |
| 4293 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4294 | |
| 4295 | if (wmi_handle->ops->send_mgmt_cmd) |
| 4296 | return wmi_handle->ops->send_mgmt_cmd(wmi_handle, |
| 4297 | macaddr, param); |
| 4298 | |
| 4299 | return QDF_STATUS_E_FAILURE; |
| 4300 | } |
| 4301 | #endif |
| 4302 | |
| 4303 | /** |
| 4304 | * wmi_unified_addba_clearresponse_cmd_send() - WMI addba resp cmd function |
| 4305 | * @param wmi_handle : handle to WMI. |
| 4306 | * @param macaddr : MAC address |
| 4307 | * @param param : pointer to hold addba resp parameter |
| 4308 | * |
| 4309 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4310 | */ |
| 4311 | QDF_STATUS wmi_unified_addba_clearresponse_cmd_send(void *wmi_hdl, |
| 4312 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4313 | struct addba_clearresponse_params *param) |
| 4314 | { |
| 4315 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4316 | |
| 4317 | if (wmi_handle->ops->send_addba_clearresponse_cmd) |
| 4318 | return wmi_handle->ops->send_addba_clearresponse_cmd(wmi_handle, |
| 4319 | macaddr, param); |
| 4320 | |
| 4321 | return QDF_STATUS_E_FAILURE; |
| 4322 | } |
| 4323 | |
| 4324 | /** |
| 4325 | * wmi_unified_addba_send_cmd_send() - WMI addba send function |
| 4326 | * @param wmi_handle : handle to WMI. |
| 4327 | * @param macaddr : MAC address |
| 4328 | * @param param : pointer to hold addba parameter |
| 4329 | * |
| 4330 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4331 | */ |
| 4332 | QDF_STATUS wmi_unified_addba_send_cmd_send(void *wmi_hdl, |
| 4333 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4334 | struct addba_send_params *param) |
| 4335 | { |
| 4336 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4337 | |
| 4338 | if (wmi_handle->ops->send_addba_send_cmd) |
| 4339 | return wmi_handle->ops->send_addba_send_cmd(wmi_handle, |
| 4340 | macaddr, param); |
| 4341 | |
| 4342 | return QDF_STATUS_E_FAILURE; |
| 4343 | } |
| 4344 | |
| 4345 | /** |
| 4346 | * wmi_unified_delba_send_cmd_send() - WMI delba cmd function |
| 4347 | * @param wmi_handle : handle to WMI. |
| 4348 | * @param macaddr : MAC address |
| 4349 | * @param param : pointer to hold delba parameter |
| 4350 | * |
| 4351 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4352 | */ |
| 4353 | QDF_STATUS wmi_unified_delba_send_cmd_send(void *wmi_hdl, |
| 4354 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4355 | struct delba_send_params *param) |
| 4356 | { |
| 4357 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4358 | |
| 4359 | if (wmi_handle->ops->send_delba_send_cmd) |
| 4360 | return wmi_handle->ops->send_delba_send_cmd(wmi_handle, |
| 4361 | macaddr, param); |
| 4362 | |
| 4363 | return QDF_STATUS_E_FAILURE; |
| 4364 | } |
| 4365 | |
| 4366 | /** |
| 4367 | * wmi_unified_addba_setresponse_cmd_send() - WMI addba set resp cmd function |
| 4368 | * @param wmi_handle : handle to WMI. |
| 4369 | * @param macaddr : MAC address |
| 4370 | * @param param : pointer to hold addba set resp parameter |
| 4371 | * |
| 4372 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4373 | */ |
| 4374 | QDF_STATUS wmi_unified_addba_setresponse_cmd_send(void *wmi_hdl, |
| 4375 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4376 | struct addba_setresponse_params *param) |
| 4377 | { |
| 4378 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4379 | |
| 4380 | if (wmi_handle->ops->send_addba_setresponse_cmd) |
| 4381 | return wmi_handle->ops->send_addba_setresponse_cmd(wmi_handle, |
| 4382 | macaddr, param); |
| 4383 | |
| 4384 | return QDF_STATUS_E_FAILURE; |
| 4385 | } |
| 4386 | |
| 4387 | /** |
| 4388 | * wmi_unified_singleamsdu_cmd_send() - WMI singleamsdu function |
| 4389 | * @param wmi_handle : handle to WMI. |
| 4390 | * @param macaddr : MAC address |
| 4391 | * @param param : pointer to hold singleamsdu parameter |
| 4392 | * |
| 4393 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4394 | */ |
| 4395 | QDF_STATUS wmi_unified_singleamsdu_cmd_send(void *wmi_hdl, |
| 4396 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4397 | struct singleamsdu_params *param) |
| 4398 | { |
| 4399 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4400 | |
| 4401 | if (wmi_handle->ops->send_singleamsdu_cmd) |
| 4402 | return wmi_handle->ops->send_singleamsdu_cmd(wmi_handle, |
| 4403 | macaddr, param); |
| 4404 | |
| 4405 | return QDF_STATUS_E_FAILURE; |
| 4406 | } |
| 4407 | |
| 4408 | /** |
| 4409 | * wmi_unified_set_qboost_param_cmd_send() - WMI set_qboost function |
| 4410 | * @param wmi_handle : handle to WMI. |
| 4411 | * @param macaddr : MAC address |
| 4412 | * @param param : pointer to hold set_qboost parameter |
| 4413 | * |
| 4414 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4415 | */ |
| 4416 | QDF_STATUS wmi_unified_set_qboost_param_cmd_send(void *wmi_hdl, |
| 4417 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 4418 | struct set_qboost_params *param) |
| 4419 | { |
| 4420 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4421 | |
| 4422 | if (wmi_handle->ops->send_set_qboost_param_cmd) |
| 4423 | return wmi_handle->ops->send_set_qboost_param_cmd(wmi_handle, |
| 4424 | macaddr, param); |
| 4425 | |
| 4426 | return QDF_STATUS_E_FAILURE; |
| 4427 | } |
| 4428 | |
| 4429 | /** |
| 4430 | * wmi_unified_mu_scan_cmd_send() - WMI set mu scan function |
| 4431 | * @param wmi_handle : handle to WMI. |
| 4432 | * @param param : pointer to hold mu scan param |
| 4433 | * |
| 4434 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4435 | */ |
| 4436 | QDF_STATUS wmi_unified_mu_scan_cmd_send(void *wmi_hdl, |
| 4437 | struct mu_scan_params *param) |
| 4438 | { |
| 4439 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4440 | |
| 4441 | if (wmi_handle->ops->send_mu_scan_cmd) |
| 4442 | return wmi_handle->ops->send_mu_scan_cmd(wmi_handle, param); |
| 4443 | |
| 4444 | return QDF_STATUS_E_FAILURE; |
| 4445 | } |
| 4446 | |
| 4447 | /** |
| 4448 | * wmi_unified_lteu_config_cmd_send() - WMI set mu scan function |
| 4449 | * @param wmi_handle : handle to WMI. |
| 4450 | * @param param : pointer to hold mu scan param |
| 4451 | * |
| 4452 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4453 | */ |
| 4454 | QDF_STATUS wmi_unified_lteu_config_cmd_send(void *wmi_hdl, |
| 4455 | struct lteu_config_params *param) |
| 4456 | { |
| 4457 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4458 | |
| 4459 | if (wmi_handle->ops->send_lteu_config_cmd) |
| 4460 | return wmi_handle->ops->send_lteu_config_cmd(wmi_handle, param); |
| 4461 | |
| 4462 | return QDF_STATUS_E_FAILURE; |
| 4463 | } |
| 4464 | |
| 4465 | /** |
| 4466 | * wmi_unified_set_psmode_cmd_send() - WMI set mu scan function |
| 4467 | * @param wmi_handle : handle to WMI. |
| 4468 | * @param param : pointer to hold mu scan param |
| 4469 | * |
| 4470 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4471 | */ |
| 4472 | QDF_STATUS wmi_unified_set_psmode_cmd_send(void *wmi_hdl, |
| 4473 | struct set_ps_mode_params *param) |
| 4474 | { |
| 4475 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4476 | |
| 4477 | if (wmi_handle->ops->send_set_ps_mode_cmd) |
| 4478 | return wmi_handle->ops->send_set_ps_mode_cmd(wmi_handle, param); |
| 4479 | |
| 4480 | return QDF_STATUS_E_FAILURE; |
| 4481 | } |
| 4482 | |
| 4483 | /** |
| 4484 | * wmi_unified_init_cmd_send() - send initialization cmd to fw |
| 4485 | * @wmi_handle: wmi handle |
| 4486 | * @param tgt_res_cfg: pointer to target resource configuration |
| 4487 | * @param num_mem_chunks: Number of memory chunks |
| 4488 | * @param mem_chunks: pointer to target memory chunks |
| 4489 | * |
| 4490 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4491 | */ |
| 4492 | QDF_STATUS wmi_unified_init_cmd_send(void *wmi_hdl, |
| 4493 | target_resource_config *res_cfg, uint8_t num_mem_chunks, |
| 4494 | struct wmi_host_mem_chunk *mem_chunk) |
| 4495 | { |
| 4496 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4497 | |
| 4498 | if (wmi_handle->ops->init_cmd_send) |
| 4499 | return wmi_handle->ops->init_cmd_send(wmi_handle, res_cfg, |
| 4500 | num_mem_chunks, mem_chunk); |
| 4501 | |
| 4502 | return QDF_STATUS_E_FAILURE; |
| 4503 | } |
| 4504 | |
| 4505 | /** |
| 4506 | * wmi_save_service_bitmap() - save service bitmap |
| 4507 | * @wmi_handle: wmi handle |
| 4508 | * @param evt_buf: pointer to event buffer |
| 4509 | * |
| 4510 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4511 | */ |
| 4512 | QDF_STATUS wmi_save_service_bitmap(void *wmi_hdl, void *evt_buf) |
| 4513 | { |
| 4514 | struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl; |
| 4515 | |
| 4516 | if (wmi_handle->ops->save_service_bitmap) { |
| 4517 | wmi_handle->ops->save_service_bitmap(wmi_handle, evt_buf); |
| 4518 | return 0; |
| 4519 | } |
| 4520 | return QDF_STATUS_E_FAILURE; |
| 4521 | } |
| 4522 | |
| 4523 | /** |
| 4524 | * wmi_save_fw_version() - Save fw version |
| 4525 | * @wmi_handle: wmi handle |
| 4526 | * @param evt_buf: pointer to event buffer |
| 4527 | * |
| 4528 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4529 | */ |
| 4530 | QDF_STATUS wmi_save_fw_version(void *wmi_hdl, void *evt_buf) |
| 4531 | { |
| 4532 | struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl; |
| 4533 | |
| 4534 | if (wmi_handle->ops->save_fw_version) { |
| 4535 | wmi_handle->ops->save_fw_version(wmi_handle, evt_buf); |
| 4536 | return 0; |
| 4537 | } |
| 4538 | return QDF_STATUS_E_FAILURE; |
| 4539 | |
| 4540 | } |
| 4541 | |
| 4542 | /** |
| 4543 | * wmi_check_and_update_fw_version() - Ready and fw version check |
| 4544 | * @wmi_handle: wmi handle |
| 4545 | * @param evt_buf: pointer to event buffer |
| 4546 | * |
| 4547 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4548 | */ |
| 4549 | QDF_STATUS wmi_check_and_update_fw_version(void *wmi_hdl, void *evt_buf) |
| 4550 | { |
| 4551 | struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl; |
| 4552 | |
| 4553 | if (wmi_handle->ops->check_and_update_fw_version) |
| 4554 | return wmi_handle->ops->check_and_update_fw_version(wmi_handle, |
| 4555 | evt_buf); |
| 4556 | |
| 4557 | return QDF_STATUS_E_FAILURE; |
| 4558 | |
| 4559 | } |
| 4560 | |
| 4561 | /** |
| 4562 | * wmi_service_enabled() - Check if service enabled |
| 4563 | * @param wmi_handle: wmi handle |
| 4564 | * @param service_id: service identifier |
| 4565 | * |
| 4566 | * Return: 1 enabled, 0 disabled |
| 4567 | */ |
| 4568 | #ifdef WMI_NON_TLV_SUPPORT |
| 4569 | bool wmi_service_enabled(void *wmi_hdl, uint32_t service_id) |
| 4570 | { |
| 4571 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4572 | |
| 4573 | if ((service_id < wmi_services_max) && |
| 4574 | (wmi_handle->services[service_id] != WMI_SERVICE_UNAVAILABLE)) { |
| 4575 | if (wmi_handle->ops->is_service_enabled) { |
| 4576 | return wmi_handle->ops->is_service_enabled(wmi_handle, |
| 4577 | wmi_handle->services[service_id]); |
| 4578 | } |
| 4579 | } else { |
| 4580 | qdf_print("Support not added yet for Service %d\n", service_id); |
| 4581 | } |
| 4582 | return false; |
| 4583 | } |
| 4584 | #endif |
| 4585 | |
| 4586 | /** |
| 4587 | * wmi_get_target_cap_from_service_ready() - extract service ready event |
| 4588 | * @wmi_handle: wmi handle |
| 4589 | * @param evt_buf: pointer to received event buffer |
| 4590 | * @param ev: pointer to hold target capability information extracted from even |
| 4591 | * |
| 4592 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4593 | */ |
| 4594 | QDF_STATUS wmi_get_target_cap_from_service_ready(void *wmi_hdl, |
| 4595 | void *evt_buf, target_capability_info *ev) |
| 4596 | { |
| 4597 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4598 | |
| 4599 | if (wmi->ops->get_target_cap_from_service_ready) |
| 4600 | return wmi->ops->get_target_cap_from_service_ready(wmi, |
| 4601 | evt_buf, ev); |
| 4602 | |
| 4603 | return QDF_STATUS_E_FAILURE; |
| 4604 | } |
| 4605 | |
| 4606 | /** |
| 4607 | * wmi_extract_fw_version() - extract fw version |
| 4608 | * @wmi_handle: wmi handle |
| 4609 | * @param evt_buf: pointer to event buffer |
| 4610 | * @param fw_ver: Pointer to hold fw version |
| 4611 | * |
| 4612 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4613 | */ |
| 4614 | QDF_STATUS wmi_extract_fw_version(void *wmi_hdl, |
| 4615 | void *evt_buf, struct wmi_host_fw_ver *fw_ver) |
| 4616 | { |
| 4617 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4618 | |
| 4619 | if (wmi_handle->ops->extract_fw_version) |
| 4620 | return wmi_handle->ops->extract_fw_version(wmi_handle, |
| 4621 | evt_buf, fw_ver); |
| 4622 | |
| 4623 | return QDF_STATUS_E_FAILURE; |
| 4624 | } |
| 4625 | |
| 4626 | /** |
| 4627 | * wmi_extract_fw_abi_version() - extract fw abi version |
| 4628 | * @wmi_handle: wmi handle |
| 4629 | * @param evt_buf: Pointer to event buffer |
| 4630 | * @param fw_ver: Pointer to hold fw abi version |
| 4631 | * |
| 4632 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4633 | */ |
| 4634 | QDF_STATUS wmi_extract_fw_abi_version(void *wmi_hdl, |
| 4635 | void *evt_buf, struct wmi_host_fw_abi_ver *fw_ver) |
| 4636 | { |
| 4637 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4638 | |
| 4639 | if (wmi_handle->ops->extract_fw_abi_version) |
| 4640 | return wmi_handle->ops->extract_fw_abi_version(wmi_handle, |
| 4641 | evt_buf, fw_ver); |
| 4642 | |
| 4643 | return QDF_STATUS_E_FAILURE; |
| 4644 | } |
| 4645 | |
| 4646 | /** |
| 4647 | * wmi_extract_hal_reg_cap() - extract HAL registered capabilities |
| 4648 | * @wmi_handle: wmi handle |
| 4649 | * @param evt_buf: Pointer to event buffer |
| 4650 | * @param hal_reg_cap: pointer to hold HAL reg capabilities |
| 4651 | * |
| 4652 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4653 | */ |
| 4654 | QDF_STATUS wmi_extract_hal_reg_cap(void *wmi_hdl, void *evt_buf, |
| 4655 | TARGET_HAL_REG_CAPABILITIES *hal_reg_cap) |
| 4656 | { |
| 4657 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4658 | |
| 4659 | if (wmi_handle->ops->extract_hal_reg_cap) |
| 4660 | return wmi_handle->ops->extract_hal_reg_cap(wmi_handle, |
| 4661 | evt_buf, hal_reg_cap); |
| 4662 | |
| 4663 | return QDF_STATUS_E_FAILURE; |
| 4664 | } |
| 4665 | |
| 4666 | /** |
| 4667 | * wmi_extract_host_mem_req_from_service_ready() - Extract host memory |
| 4668 | * request event |
| 4669 | * @wmi_handle: wmi handle |
| 4670 | * @param evt_buf: pointer to event buffer |
| 4671 | * @param num_entries: pointer to hold number of entries requested |
| 4672 | * |
| 4673 | * Return: Number of entries requested |
| 4674 | */ |
| 4675 | host_mem_req *wmi_extract_host_mem_req_from_service_ready(void *wmi_hdl, |
| 4676 | void *evt_buf, uint8_t *num_entries) |
| 4677 | { |
| 4678 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4679 | |
| 4680 | if (wmi_handle->ops->extract_host_mem_req) |
| 4681 | return wmi_handle->ops->extract_host_mem_req(wmi_handle, |
| 4682 | evt_buf, num_entries); |
| 4683 | |
| 4684 | *num_entries = 0; |
| 4685 | return NULL; |
| 4686 | } |
| 4687 | |
| 4688 | /** |
| 4689 | * wmi_ready_extract_init_status() - Extract init status from ready event |
| 4690 | * @wmi_handle: wmi handle |
| 4691 | * @param ev: Pointer to event buffer |
| 4692 | * |
| 4693 | * Return: ready status |
| 4694 | */ |
| 4695 | uint32_t wmi_ready_extract_init_status(void *wmi_hdl, void *ev) |
| 4696 | { |
| 4697 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4698 | |
| 4699 | if (wmi_handle->ops->ready_extract_init_status) |
| 4700 | return wmi_handle->ops->ready_extract_init_status(wmi_handle, |
| 4701 | ev); |
| 4702 | |
| 4703 | |
| 4704 | return 1; |
| 4705 | |
| 4706 | } |
| 4707 | |
| 4708 | /** |
| 4709 | * wmi_ready_extract_mac_addr() - extract mac address from ready event |
| 4710 | * @wmi_handle: wmi handle |
| 4711 | * @param ev: pointer to event buffer |
| 4712 | * @param macaddr: Pointer to hold MAC address |
| 4713 | * |
| 4714 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4715 | */ |
| 4716 | QDF_STATUS wmi_ready_extract_mac_addr(void *wmi_hdl, void *ev, uint8_t *macaddr) |
| 4717 | { |
| 4718 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4719 | |
| 4720 | if (wmi_handle->ops->ready_extract_mac_addr) |
| 4721 | return wmi_handle->ops->ready_extract_mac_addr(wmi_handle, |
| 4722 | ev, macaddr); |
| 4723 | |
| 4724 | |
| 4725 | return QDF_STATUS_E_FAILURE; |
| 4726 | } |
| 4727 | |
| 4728 | /** |
| 4729 | * wmi_extract_dbglog_data_len() - extract debuglog data length |
| 4730 | * @wmi_handle: wmi handle |
| 4731 | * @param evt_buf: pointer to event buffer |
| 4732 | * @param len: length of buffer |
| 4733 | * |
| 4734 | * Return: length |
| 4735 | */ |
| 4736 | uint8_t *wmi_extract_dbglog_data_len(void *wmi_hdl, void *evt_buf, |
| 4737 | uint16_t *len) |
| 4738 | { |
| 4739 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4740 | |
| 4741 | if (wmi_handle->ops->extract_dbglog_data_len) |
| 4742 | return wmi_handle->ops->extract_dbglog_data_len(wmi_handle, |
| 4743 | evt_buf, len); |
| 4744 | |
| 4745 | |
| 4746 | return NULL; |
| 4747 | } |
| 4748 | |
| 4749 | /** |
| 4750 | * wmi_send_ext_resource_config() - send extended resource configuration |
| 4751 | * @wmi_handle: wmi handle |
| 4752 | * @param ext_cfg: pointer to extended resource configuration |
| 4753 | * |
| 4754 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4755 | */ |
| 4756 | QDF_STATUS wmi_send_ext_resource_config(void *wmi_hdl, |
| 4757 | wmi_host_ext_resource_config *ext_cfg) |
| 4758 | { |
| 4759 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4760 | |
| 4761 | if (wmi_handle->ops->send_ext_resource_config) |
| 4762 | return wmi_handle->ops->send_ext_resource_config(wmi_handle, |
| 4763 | ext_cfg); |
| 4764 | |
| 4765 | return QDF_STATUS_E_FAILURE; |
| 4766 | } |
| 4767 | |
| 4768 | /** |
| 4769 | * wmi_unified_nf_dbr_dbm_info_get_cmd_send() - WMI request nf info function |
| 4770 | * @param wmi_handle : handle to WMI. |
| 4771 | * |
| 4772 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4773 | */ |
| 4774 | QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(void *wmi_hdl) |
| 4775 | { |
| 4776 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4777 | |
| 4778 | if (wmi->ops->send_nf_dbr_dbm_info_get_cmd) |
| 4779 | return wmi->ops->send_nf_dbr_dbm_info_get_cmd(wmi); |
| 4780 | |
| 4781 | return QDF_STATUS_E_FAILURE; |
| 4782 | } |
| 4783 | |
| 4784 | /** |
| 4785 | * wmi_unified_packet_power_info_get_cmd_send() - WMI get packet power info function |
| 4786 | * @param wmi_handle : handle to WMI. |
| 4787 | * @param param : pointer to hold packet power info param |
| 4788 | * |
| 4789 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4790 | */ |
| 4791 | QDF_STATUS wmi_unified_packet_power_info_get_cmd_send(void *wmi_hdl, |
| 4792 | struct packet_power_info_params *param) |
| 4793 | { |
| 4794 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4795 | |
| 4796 | if (wmi->ops->send_packet_power_info_get_cmd) |
| 4797 | return wmi->ops->send_packet_power_info_get_cmd(wmi, param); |
| 4798 | |
| 4799 | return QDF_STATUS_E_FAILURE; |
| 4800 | } |
| 4801 | |
| 4802 | /** |
| 4803 | * wmi_unified_gpio_config_cmd_send() - WMI gpio config function |
| 4804 | * @param wmi_handle : handle to WMI. |
| 4805 | * @param param : pointer to hold gpio config param |
| 4806 | * |
| 4807 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4808 | */ |
| 4809 | QDF_STATUS wmi_unified_gpio_config_cmd_send(void *wmi_hdl, |
| 4810 | struct gpio_config_params *param) |
| 4811 | { |
| 4812 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4813 | |
| 4814 | if (wmi_handle->ops->send_gpio_config_cmd) |
| 4815 | return wmi_handle->ops->send_gpio_config_cmd(wmi_handle, param); |
| 4816 | |
| 4817 | return QDF_STATUS_E_FAILURE; |
| 4818 | } |
| 4819 | |
| 4820 | /** |
| 4821 | * wmi_unified_gpio_output_cmd_send() - WMI gpio config function |
| 4822 | * @param wmi_handle : handle to WMI. |
| 4823 | * @param param : pointer to hold gpio config param |
| 4824 | * |
| 4825 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4826 | */ |
| 4827 | QDF_STATUS wmi_unified_gpio_output_cmd_send(void *wmi_hdl, |
| 4828 | struct gpio_output_params *param) |
| 4829 | { |
| 4830 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4831 | |
| 4832 | if (wmi_handle->ops->send_gpio_output_cmd) |
| 4833 | return wmi_handle->ops->send_gpio_output_cmd(wmi_handle, param); |
| 4834 | |
| 4835 | return QDF_STATUS_E_FAILURE; |
| 4836 | } |
| 4837 | |
| 4838 | /** |
| 4839 | * wmi_unified_rtt_meas_req_test_cmd_send() - WMI rtt meas req test function |
| 4840 | * @param wmi_handle : handle to WMI. |
| 4841 | * @param param : pointer to hold rtt meas req test param |
| 4842 | * |
| 4843 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4844 | */ |
| 4845 | QDF_STATUS wmi_unified_rtt_meas_req_test_cmd_send(void *wmi_hdl, |
| 4846 | struct rtt_meas_req_test_params *param) |
| 4847 | { |
| 4848 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4849 | |
| 4850 | if (wmi_handle->ops->send_rtt_meas_req_test_cmd) |
| 4851 | return wmi_handle->ops->send_rtt_meas_req_test_cmd(wmi_handle, |
| 4852 | param); |
| 4853 | |
| 4854 | return QDF_STATUS_E_FAILURE; |
| 4855 | } |
| 4856 | |
| 4857 | /** |
| 4858 | * wmi_unified_rtt_meas_req_cmd_send() - WMI rtt meas req function |
| 4859 | * @param wmi_handle : handle to WMI. |
| 4860 | * @param param : pointer to hold rtt meas req param |
| 4861 | * |
| 4862 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4863 | */ |
| 4864 | QDF_STATUS wmi_unified_rtt_meas_req_cmd_send(void *wmi_hdl, |
| 4865 | struct rtt_meas_req_params *param) |
| 4866 | { |
| 4867 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4868 | |
| 4869 | if (wmi_handle->ops->send_rtt_meas_req_cmd) |
| 4870 | return wmi_handle->ops->send_rtt_meas_req_cmd(wmi_handle, |
| 4871 | param); |
| 4872 | |
| 4873 | return QDF_STATUS_E_FAILURE; |
| 4874 | } |
| 4875 | |
| 4876 | /** |
| 4877 | * wmi_unified_lci_set_cmd_send() - WMI lci set function |
| 4878 | * @param wmi_handle : handle to WMI. |
| 4879 | * @param param : pointer to hold lci param |
| 4880 | * |
| 4881 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4882 | */ |
| 4883 | QDF_STATUS wmi_unified_lci_set_cmd_send(void *wmi_hdl, |
| 4884 | struct lci_set_params *param) |
| 4885 | { |
| 4886 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4887 | |
| 4888 | if (wmi_handle->ops->send_lci_set_cmd) |
| 4889 | return wmi_handle->ops->send_lci_set_cmd(wmi_handle, param); |
| 4890 | |
| 4891 | return QDF_STATUS_E_FAILURE; |
| 4892 | } |
| 4893 | |
| 4894 | /** |
| 4895 | * wmi_unified_lcr_set_cmd_send() - WMI lcr set function |
| 4896 | * @param wmi_handle : handle to WMI. |
| 4897 | * @param param : pointer to hold lcr param |
| 4898 | * |
| 4899 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4900 | */ |
| 4901 | QDF_STATUS wmi_unified_lcr_set_cmd_send(void *wmi_hdl, |
| 4902 | struct lcr_set_params *param) |
| 4903 | { |
| 4904 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4905 | |
| 4906 | if (wmi_handle->ops->send_lcr_set_cmd) |
| 4907 | return wmi_handle->ops->send_lcr_set_cmd(wmi_handle, param); |
| 4908 | |
| 4909 | return QDF_STATUS_E_FAILURE; |
| 4910 | } |
| 4911 | |
| 4912 | /** |
| 4913 | * wmi_unified_rtt_keepalive_req_cmd_send() - WMI rtt meas req test function |
| 4914 | * @param wmi_handle : handle to WMI. |
| 4915 | * @param param : pointer to hold rtt meas req test param |
| 4916 | * |
| 4917 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4918 | */ |
| 4919 | QDF_STATUS wmi_unified_rtt_keepalive_req_cmd_send(void *wmi_hdl, |
| 4920 | struct rtt_keepalive_req_params *param) |
| 4921 | { |
| 4922 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4923 | |
| 4924 | if (wmi_handle->ops->send_rtt_keepalive_req_cmd) |
| 4925 | return wmi_handle->ops->send_rtt_keepalive_req_cmd(wmi_handle, |
| 4926 | param); |
| 4927 | |
| 4928 | return QDF_STATUS_E_FAILURE; |
| 4929 | } |
| 4930 | |
| 4931 | /** |
| 4932 | * wmi_unified_send_periodic_chan_stats_config_cmd() - send periodic chan stats cmd |
| 4933 | * to fw |
| 4934 | * @wmi_handle: wmi handle |
| 4935 | * @param: pointer to hold periodic chan stats param |
| 4936 | * |
| 4937 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4938 | */ |
| 4939 | QDF_STATUS wmi_unified_send_periodic_chan_stats_config_cmd(void *wmi_hdl, |
| 4940 | struct periodic_chan_stats_params *param) |
| 4941 | { |
| 4942 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 4943 | |
| 4944 | if (wmi->ops->send_periodic_chan_stats_config_cmd) |
| 4945 | return wmi->ops->send_periodic_chan_stats_config_cmd(wmi, |
| 4946 | param); |
| 4947 | |
| 4948 | return QDF_STATUS_E_FAILURE; |
| 4949 | } |
| 4950 | |
| 4951 | /** |
| 4952 | * wmi_send_atf_peer_request_cmd() - send atf peer request command to fw |
| 4953 | * @wmi_handle: wmi handle |
| 4954 | * @param: pointer to atf peer request param |
| 4955 | * |
| 4956 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4957 | */ |
| 4958 | QDF_STATUS |
| 4959 | wmi_send_atf_peer_request_cmd(void *wmi_hdl, |
| 4960 | struct atf_peer_request_params *param) |
| 4961 | { |
| 4962 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4963 | |
| 4964 | if (wmi_handle->ops->send_atf_peer_request_cmd) |
| 4965 | return wmi_handle->ops->send_atf_peer_request_cmd(wmi_handle, |
| 4966 | param); |
| 4967 | |
| 4968 | return QDF_STATUS_E_FAILURE; |
| 4969 | } |
| 4970 | |
| 4971 | /** |
| 4972 | * wmi_send_set_atf_grouping_cmd() - send set atf grouping command to fw |
| 4973 | * @wmi_handle: wmi handle |
| 4974 | * @param: pointer to set atf grouping param |
| 4975 | * |
| 4976 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 4977 | */ |
| 4978 | QDF_STATUS |
| 4979 | wmi_send_set_atf_grouping_cmd(void *wmi_hdl, |
| 4980 | struct atf_grouping_params *param) |
| 4981 | { |
| 4982 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 4983 | |
| 4984 | if (wmi_handle->ops->send_set_atf_grouping_cmd) |
| 4985 | return wmi_handle->ops->send_set_atf_grouping_cmd(wmi_handle, |
| 4986 | param); |
| 4987 | |
| 4988 | return QDF_STATUS_E_FAILURE; |
| 4989 | |
| 4990 | } |
| 4991 | |
| 4992 | |
| 4993 | /* Extract - APIs */ |
| 4994 | /** |
| 4995 | * wmi_extract_wds_addr_event - Extract WDS addr WMI event |
| 4996 | * |
| 4997 | * @param wmi_handle : handle to WMI. |
| 4998 | * @param evt_buf : pointer to event buffer |
| 4999 | * @param len : length of the event buffer |
| 5000 | * @param wds_ev: pointer to strct to extract |
| 5001 | * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5002 | */ |
| 5003 | QDF_STATUS wmi_extract_wds_addr_event(void *wmi_hdl, void *evt_buf, |
| 5004 | uint16_t len, wds_addr_event_t *wds_ev) |
| 5005 | { |
| 5006 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5007 | |
| 5008 | if (wmi_handle->ops->extract_wds_addr_event) { |
| 5009 | return wmi_handle->ops->extract_wds_addr_event(wmi_handle, |
| 5010 | evt_buf, len, wds_ev); |
| 5011 | } |
| 5012 | return QDF_STATUS_E_FAILURE; |
| 5013 | } |
| 5014 | |
| 5015 | /** |
| 5016 | * wmi_extract_dcs_interference_type() - extract dcs interference type |
| 5017 | * @wmi_handle: wmi handle |
| 5018 | * @param evt_buf: pointer to event buffer |
| 5019 | * @param interference_type: Pointer to hold interference type |
| 5020 | * |
| 5021 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5022 | */ |
| 5023 | QDF_STATUS wmi_extract_dcs_interference_type(void *wmi_hdl, |
| 5024 | void *evt_buf, uint32_t *interference_type) |
| 5025 | { |
| 5026 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5027 | |
| 5028 | if (wmi->ops->extract_dcs_interference_type) { |
| 5029 | return wmi->ops->extract_dcs_interference_type(wmi, |
| 5030 | evt_buf, interference_type); |
| 5031 | } |
| 5032 | return QDF_STATUS_E_FAILURE; |
| 5033 | } |
| 5034 | |
| 5035 | /* |
| 5036 | * wmi_extract_dcs_cw_int() - extract dcs cw interference from event |
| 5037 | * @wmi_handle: wmi handle |
| 5038 | * @param evt_buf: pointer to event buffer |
| 5039 | * @param cw_int: Pointer to hold cw interference |
| 5040 | * |
| 5041 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5042 | */ |
| 5043 | QDF_STATUS wmi_extract_dcs_cw_int(void *wmi_hdl, void *evt_buf, |
| 5044 | wmi_host_ath_dcs_cw_int *cw_int) |
| 5045 | { |
| 5046 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5047 | |
| 5048 | if (wmi_handle->ops->extract_dcs_cw_int) { |
| 5049 | return wmi_handle->ops->extract_dcs_cw_int(wmi_handle, |
| 5050 | evt_buf, cw_int); |
| 5051 | } |
| 5052 | return QDF_STATUS_E_FAILURE; |
| 5053 | } |
| 5054 | |
| 5055 | /** |
| 5056 | * wmi_extract_dcs_im_tgt_stats() - extract dcs im target stats from event |
| 5057 | * @wmi_handle: wmi handle |
| 5058 | * @param evt_buf: pointer to event buffer |
| 5059 | * @param wlan_stat: Pointer to hold wlan stats |
| 5060 | * |
| 5061 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5062 | */ |
| 5063 | QDF_STATUS wmi_extract_dcs_im_tgt_stats(void *wmi_hdl, void *evt_buf, |
| 5064 | wmi_host_dcs_im_tgt_stats_t *wlan_stat) |
| 5065 | { |
| 5066 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5067 | |
| 5068 | if (wmi_handle->ops->extract_dcs_im_tgt_stats) { |
| 5069 | return wmi_handle->ops->extract_dcs_im_tgt_stats(wmi_handle, |
| 5070 | evt_buf, wlan_stat); |
| 5071 | } |
| 5072 | return QDF_STATUS_E_FAILURE; |
| 5073 | } |
| 5074 | |
| 5075 | /** |
| 5076 | * wmi_extract_fips_event_error_status() - extract fips event error status |
| 5077 | * @wmi_handle: wmi handle |
| 5078 | * @param evt_buf: pointer to event buffer |
| 5079 | * @param err_status: Pointer to hold error status |
| 5080 | * |
| 5081 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5082 | */ |
| 5083 | QDF_STATUS wmi_extract_fips_event_error_status(void *wmi_hdl, void *evt_buf, |
| 5084 | uint32_t *err_status) |
| 5085 | { |
| 5086 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5087 | |
| 5088 | if (wmi->ops->extract_fips_event_error_status) { |
| 5089 | return wmi->ops->extract_fips_event_error_status(wmi, |
| 5090 | evt_buf, err_status); |
| 5091 | } |
| 5092 | return QDF_STATUS_E_FAILURE; |
| 5093 | } |
| 5094 | |
| 5095 | /** |
| 5096 | * wmi_extract_fips_event_data() - extract fips event data |
| 5097 | * @wmi_handle: wmi handle |
| 5098 | * @param evt_buf: pointer to event buffer |
| 5099 | * @param data_len: Pointer to hold fips data length |
| 5100 | * @param data: Double pointer to hold fips data |
| 5101 | * |
| 5102 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5103 | */ |
| 5104 | QDF_STATUS wmi_extract_fips_event_data(void *wmi_hdl, void *evt_buf, |
| 5105 | uint32_t *data_len, uint32_t **data) |
| 5106 | { |
| 5107 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5108 | |
| 5109 | if (wmi_handle->ops->extract_fips_event_data) { |
| 5110 | return wmi_handle->ops->extract_fips_event_data(wmi_handle, |
| 5111 | evt_buf, data_len, data); |
| 5112 | } |
| 5113 | return QDF_STATUS_E_FAILURE; |
| 5114 | } |
| 5115 | |
| 5116 | /** |
| 5117 | * wmi_extract_vdev_start_resp() - extract vdev start response |
| 5118 | * @wmi_handle: wmi handle |
| 5119 | * @param evt_buf: pointer to event buffer |
| 5120 | * @param vdev_rsp: Pointer to hold vdev response |
| 5121 | * |
| 5122 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5123 | */ |
| 5124 | QDF_STATUS wmi_extract_vdev_start_resp(void *wmi_hdl, void *evt_buf, |
| 5125 | wmi_host_vdev_start_resp *vdev_rsp) |
| 5126 | { |
| 5127 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5128 | |
| 5129 | if (wmi_handle->ops->extract_vdev_start_resp) |
| 5130 | return wmi_handle->ops->extract_vdev_start_resp(wmi_handle, |
| 5131 | evt_buf, vdev_rsp); |
| 5132 | |
| 5133 | return QDF_STATUS_E_FAILURE; |
| 5134 | } |
| 5135 | |
| 5136 | /** |
| 5137 | * wmi_extract_tbttoffset_update_params() - extract tbtt offset update param |
| 5138 | * @wmi_handle: wmi handle |
| 5139 | * @param evt_buf: pointer to event buffer |
| 5140 | * @param vdev_map: Pointer to hold vdev map |
| 5141 | * @param tbttoffset_list: Pointer to tbtt offset list |
| 5142 | * |
| 5143 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5144 | */ |
| 5145 | QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf, |
| 5146 | uint32_t *vdev_map, uint32_t **tbttoffset_list) |
| 5147 | { |
| 5148 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5149 | |
| 5150 | if (wmi->ops->extract_tbttoffset_update_params) |
| 5151 | return wmi->ops->extract_tbttoffset_update_params(wmi, |
| 5152 | evt_buf, vdev_map, tbttoffset_list); |
| 5153 | |
| 5154 | return QDF_STATUS_E_FAILURE; |
| 5155 | } |
| 5156 | |
| 5157 | /** |
| 5158 | * wmi_extract_mgmt_rx_params() - extract management rx params from event |
| 5159 | * @wmi_handle: wmi handle |
| 5160 | * @param evt_buf: pointer to event buffer |
| 5161 | * @param hdr: Pointer to hold header |
| 5162 | * @param bufp: Pointer to hold pointer to rx param buffer |
| 5163 | * |
| 5164 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5165 | */ |
| 5166 | QDF_STATUS wmi_extract_mgmt_rx_params(void *wmi_hdl, void *evt_buf, |
| 5167 | wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp) |
| 5168 | { |
| 5169 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5170 | |
| 5171 | if (wmi_handle->ops->extract_mgmt_rx_params) |
| 5172 | return wmi_handle->ops->extract_mgmt_rx_params(wmi_handle, |
| 5173 | evt_buf, hdr, bufp); |
| 5174 | |
| 5175 | return QDF_STATUS_E_FAILURE; |
| 5176 | } |
| 5177 | |
| 5178 | /** |
| 5179 | * wmi_extract_vdev_stopped_param() - extract vdev stop param from event |
| 5180 | * @wmi_handle: wmi handle |
| 5181 | * @param evt_buf: pointer to event buffer |
| 5182 | * @param vdev_id: Pointer to hold vdev identifier |
| 5183 | * |
| 5184 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5185 | */ |
| 5186 | QDF_STATUS wmi_extract_vdev_stopped_param(void *wmi_hdl, void *evt_buf, |
| 5187 | uint32_t *vdev_id) |
| 5188 | { |
| 5189 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5190 | |
| 5191 | if (wmi_handle->ops->extract_vdev_stopped_param) |
| 5192 | return wmi_handle->ops->extract_vdev_stopped_param(wmi_handle, |
| 5193 | evt_buf, vdev_id); |
| 5194 | |
| 5195 | return QDF_STATUS_E_FAILURE; |
| 5196 | } |
| 5197 | |
| 5198 | /** |
| 5199 | * wmi_extract_vdev_roam_param() - extract vdev roam param from event |
| 5200 | * @wmi_handle: wmi handle |
| 5201 | * @param evt_buf: pointer to event buffer |
| 5202 | * @param param: Pointer to hold roam param |
| 5203 | * |
| 5204 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5205 | */ |
| 5206 | QDF_STATUS wmi_extract_vdev_roam_param(void *wmi_hdl, void *evt_buf, |
| 5207 | wmi_host_roam_event *param) |
| 5208 | { |
| 5209 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5210 | |
| 5211 | if (wmi_handle->ops->extract_vdev_roam_param) |
| 5212 | return wmi_handle->ops->extract_vdev_roam_param(wmi_handle, |
| 5213 | evt_buf, param); |
| 5214 | |
| 5215 | return QDF_STATUS_E_FAILURE; |
| 5216 | } |
| 5217 | |
| 5218 | /** |
| 5219 | * wmi_extract_vdev_scan_ev_param() - extract vdev scan param from event |
| 5220 | * @wmi_handle: wmi handle |
| 5221 | * @param evt_buf: pointer to event buffer |
| 5222 | * @param param: Pointer to hold vdev scan param |
| 5223 | * |
| 5224 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5225 | */ |
| 5226 | QDF_STATUS wmi_extract_vdev_scan_ev_param(void *wmi_hdl, void *evt_buf, |
| 5227 | wmi_host_scan_event *param) |
| 5228 | { |
| 5229 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5230 | |
| 5231 | if (wmi_handle->ops->extract_vdev_scan_ev_param) |
| 5232 | return wmi_handle->ops->extract_vdev_scan_ev_param(wmi_handle, |
| 5233 | evt_buf, param); |
| 5234 | |
| 5235 | return QDF_STATUS_E_FAILURE; |
| 5236 | } |
| 5237 | |
| 5238 | /** |
| 5239 | * wmi_extract_mu_ev_param() - extract mu param from event |
| 5240 | * @wmi_handle: wmi handle |
| 5241 | * @param evt_buf: pointer to event buffer |
| 5242 | * @param param: Pointer to hold mu report |
| 5243 | * |
| 5244 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5245 | */ |
| 5246 | QDF_STATUS wmi_extract_mu_ev_param(void *wmi_hdl, void *evt_buf, |
| 5247 | wmi_host_mu_report_event *param) |
| 5248 | { |
| 5249 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5250 | |
| 5251 | if (wmi_handle->ops->extract_mu_ev_param) |
| 5252 | return wmi_handle->ops->extract_mu_ev_param(wmi_handle, evt_buf, |
| 5253 | param); |
| 5254 | |
| 5255 | return QDF_STATUS_E_FAILURE; |
| 5256 | } |
| 5257 | |
| 5258 | /** |
| 5259 | * wmi_extract_pdev_tpc_config_ev_param() - extract pdev tpc configuration |
| 5260 | * param from event |
| 5261 | * @wmi_handle: wmi handle |
| 5262 | * @param evt_buf: pointer to event buffer |
| 5263 | * @param param: Pointer to hold tpc configuration |
| 5264 | * |
| 5265 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5266 | */ |
| 5267 | QDF_STATUS wmi_extract_pdev_tpc_config_ev_param(void *wmi_hdl, void *evt_buf, |
| 5268 | wmi_host_pdev_tpc_config_event *param) |
| 5269 | { |
| 5270 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5271 | |
| 5272 | if (wmi->ops->extract_pdev_tpc_config_ev_param) |
| 5273 | return wmi->ops->extract_pdev_tpc_config_ev_param(wmi, |
| 5274 | evt_buf, param); |
| 5275 | |
| 5276 | return QDF_STATUS_E_FAILURE; |
| 5277 | |
| 5278 | } |
| 5279 | |
| 5280 | /** |
| 5281 | * wmi_extract_gpio_input_ev_param() - extract gpio input param from event |
| 5282 | * @wmi_handle: wmi handle |
| 5283 | * @param evt_buf: pointer to event buffer |
| 5284 | * @param gpio_num: Pointer to hold gpio number |
| 5285 | * |
| 5286 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5287 | */ |
| 5288 | QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl, |
| 5289 | void *evt_buf, uint32_t *gpio_num) |
| 5290 | { |
| 5291 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5292 | |
| 5293 | if (wmi_handle->ops->extract_gpio_input_ev_param) |
| 5294 | return wmi_handle->ops->extract_gpio_input_ev_param(wmi_handle, |
| 5295 | evt_buf, gpio_num); |
| 5296 | |
| 5297 | return QDF_STATUS_E_FAILURE; |
| 5298 | } |
| 5299 | |
| 5300 | /** |
| 5301 | * wmi_extract_pdev_reserve_ast_ev_param() - extract reserve ast entry |
| 5302 | * param from event |
| 5303 | * @wmi_handle: wmi handle |
| 5304 | * @param evt_buf: pointer to event buffer |
| 5305 | * @param result: Pointer to hold reserve ast entry param |
| 5306 | * |
| 5307 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5308 | */ |
| 5309 | QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl, |
| 5310 | void *evt_buf, uint32_t *result) |
| 5311 | { |
| 5312 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5313 | |
| 5314 | if (wmi->ops->extract_pdev_reserve_ast_ev_param) |
| 5315 | return wmi->ops->extract_pdev_reserve_ast_ev_param(wmi, |
| 5316 | evt_buf, result); |
| 5317 | |
| 5318 | return QDF_STATUS_E_FAILURE; |
| 5319 | } |
| 5320 | |
| 5321 | /** |
| 5322 | * wmi_extract_nfcal_power_ev_param() - extract noise floor calibration |
| 5323 | * power param from event |
| 5324 | * @wmi_handle: wmi handle |
| 5325 | * @param evt_buf: pointer to event buffer |
| 5326 | * @param param: Pointer to hold nf cal power param |
| 5327 | * |
| 5328 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5329 | */ |
| 5330 | QDF_STATUS wmi_extract_nfcal_power_ev_param(void *wmi_hdl, void *evt_buf, |
| 5331 | wmi_host_pdev_nfcal_power_all_channels_event *param) |
| 5332 | { |
| 5333 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5334 | |
| 5335 | if (wmi_handle->ops->extract_nfcal_power_ev_param) |
| 5336 | return wmi_handle->ops->extract_nfcal_power_ev_param(wmi_handle, |
| 5337 | evt_buf, param); |
| 5338 | |
| 5339 | return QDF_STATUS_E_FAILURE; |
| 5340 | |
| 5341 | } |
| 5342 | |
| 5343 | /** |
| 5344 | * wmi_extract_pdev_tpc_ev_param() - extract tpc param from event |
| 5345 | * @wmi_handle: wmi handle |
| 5346 | * @param evt_buf: pointer to event buffer |
| 5347 | * @param param: Pointer to hold tpc param |
| 5348 | * |
| 5349 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5350 | */ |
| 5351 | QDF_STATUS wmi_extract_pdev_tpc_ev_param(void *wmi_hdl, void *evt_buf, |
| 5352 | wmi_host_pdev_tpc_event *param) |
| 5353 | { |
| 5354 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5355 | |
| 5356 | if (wmi_handle->ops->extract_pdev_tpc_ev_param) |
| 5357 | return wmi_handle->ops->extract_pdev_tpc_ev_param(wmi_handle, |
| 5358 | evt_buf, param); |
| 5359 | |
| 5360 | return QDF_STATUS_E_FAILURE; |
| 5361 | |
| 5362 | } |
| 5363 | |
| 5364 | /** |
| 5365 | * wmi_extract_pdev_generic_buffer_ev_param() - extract pdev generic buffer |
| 5366 | * from event |
| 5367 | * @wmi_handle: wmi handle |
| 5368 | * @param evt_buf: pointer to event buffer |
| 5369 | * @param param: Pointer to generic buffer param |
| 5370 | * |
| 5371 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5372 | */ |
| 5373 | QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(void *wmi_hdl, |
| 5374 | void *evt_buf, wmi_host_pdev_generic_buffer_event *param) |
| 5375 | { |
| 5376 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5377 | |
| 5378 | if (wmi->ops->extract_pdev_generic_buffer_ev_param) |
| 5379 | return wmi->ops->extract_pdev_generic_buffer_ev_param(wmi, |
| 5380 | evt_buf, param); |
| 5381 | |
| 5382 | return QDF_STATUS_E_FAILURE; |
| 5383 | |
| 5384 | } |
| 5385 | |
| 5386 | /** |
| 5387 | * wmi_extract_mgmt_tx_compl_param() - extract mgmt tx completion param |
| 5388 | * from event |
| 5389 | * @wmi_handle: wmi handle |
| 5390 | * @param evt_buf: pointer to event buffer |
| 5391 | * @param param: Pointer to mgmt tx completion param |
| 5392 | * |
| 5393 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5394 | */ |
| 5395 | QDF_STATUS wmi_extract_mgmt_tx_compl_param(void *wmi_hdl, void *evt_buf, |
| 5396 | wmi_host_mgmt_tx_compl_event *param) |
| 5397 | { |
| 5398 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5399 | |
| 5400 | if (wmi_handle->ops->extract_mgmt_tx_compl_param) |
| 5401 | return wmi_handle->ops->extract_mgmt_tx_compl_param(wmi_handle, |
| 5402 | evt_buf, param); |
| 5403 | |
| 5404 | |
| 5405 | return QDF_STATUS_E_FAILURE; |
| 5406 | } |
| 5407 | |
| 5408 | /** |
| 5409 | * wmi_extract_swba_vdev_map() - extract swba vdev map from event |
| 5410 | * @wmi_handle: wmi handle |
| 5411 | * @param evt_buf: pointer to event buffer |
| 5412 | * @param vdev_map: Pointer to hold vdev map |
| 5413 | * |
| 5414 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5415 | */ |
| 5416 | QDF_STATUS wmi_extract_swba_vdev_map(void *wmi_hdl, void *evt_buf, |
| 5417 | uint32_t *vdev_map) |
| 5418 | { |
| 5419 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5420 | |
| 5421 | if (wmi_handle->ops->extract_swba_vdev_map) |
| 5422 | return wmi_handle->ops->extract_swba_vdev_map(wmi_handle, |
| 5423 | evt_buf, vdev_map); |
| 5424 | |
| 5425 | return QDF_STATUS_E_FAILURE; |
| 5426 | } |
| 5427 | |
| 5428 | /** |
| 5429 | * wmi_extract_swba_tim_info() - extract swba tim info from event |
| 5430 | * @wmi_handle: wmi handle |
| 5431 | * @param evt_buf: pointer to event buffer |
| 5432 | * @param idx: Index to bcn info |
| 5433 | * @param tim_info: Pointer to hold tim info |
| 5434 | * |
| 5435 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5436 | */ |
| 5437 | QDF_STATUS wmi_extract_swba_tim_info(void *wmi_hdl, void *evt_buf, |
| 5438 | uint32_t idx, wmi_host_tim_info *tim_info) |
| 5439 | { |
| 5440 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5441 | |
| 5442 | if (wmi_handle->ops->extract_swba_tim_info) |
| 5443 | return wmi_handle->ops->extract_swba_tim_info(wmi_handle, |
| 5444 | evt_buf, idx, tim_info); |
| 5445 | |
| 5446 | return QDF_STATUS_E_FAILURE; |
| 5447 | } |
| 5448 | |
| 5449 | /** |
| 5450 | * wmi_extract_swba_noa_info() - extract swba NoA information from event |
| 5451 | * @wmi_handle: wmi handle |
| 5452 | * @param evt_buf: pointer to event buffer |
| 5453 | * @param idx: Index to bcn info |
| 5454 | * @param p2p_desc: Pointer to hold p2p NoA info |
| 5455 | * |
| 5456 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5457 | */ |
| 5458 | QDF_STATUS wmi_extract_swba_noa_info(void *wmi_hdl, void *evt_buf, |
| 5459 | uint32_t idx, wmi_host_p2p_noa_info *p2p_desc) |
| 5460 | { |
| 5461 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5462 | |
| 5463 | if (wmi_handle->ops->extract_swba_noa_info) |
| 5464 | return wmi_handle->ops->extract_swba_noa_info(wmi_handle, |
| 5465 | evt_buf, idx, p2p_desc); |
| 5466 | |
| 5467 | return QDF_STATUS_E_FAILURE; |
| 5468 | } |
| 5469 | |
| 5470 | /** |
| 5471 | * wmi_extract_peer_sta_ps_statechange_ev() - extract peer sta ps state |
| 5472 | * from event |
| 5473 | * @wmi_handle: wmi handle |
| 5474 | * @param evt_buf: pointer to event buffer |
| 5475 | * @param ev: Pointer to hold peer param and ps state |
| 5476 | * |
| 5477 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5478 | */ |
| 5479 | QDF_STATUS wmi_extract_peer_sta_ps_statechange_ev(void *wmi_hdl, void *evt_buf, |
| 5480 | wmi_host_peer_sta_ps_statechange_event *ev) |
| 5481 | { |
| 5482 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5483 | |
| 5484 | if (wmi->ops->extract_peer_sta_ps_statechange_ev) |
| 5485 | return wmi->ops->extract_peer_sta_ps_statechange_ev(wmi, |
| 5486 | evt_buf, ev); |
| 5487 | |
| 5488 | return QDF_STATUS_E_FAILURE; |
| 5489 | } |
| 5490 | |
| 5491 | /** |
| 5492 | * wmi_extract_peer_sta_kickout_ev() - extract peer sta kickout event |
| 5493 | * @wmi_handle: wmi handle |
| 5494 | * @param evt_buf: pointer to event buffer |
| 5495 | * @param ev: Pointer to hold peer param |
| 5496 | * |
| 5497 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5498 | */ |
| 5499 | QDF_STATUS wmi_extract_peer_sta_kickout_ev(void *wmi_hdl, void *evt_buf, |
| 5500 | wmi_host_peer_sta_kickout_event *ev) |
| 5501 | { |
| 5502 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5503 | |
| 5504 | if (wmi_handle->ops->extract_peer_sta_kickout_ev) |
| 5505 | return wmi_handle->ops->extract_peer_sta_kickout_ev(wmi_handle, |
| 5506 | evt_buf, ev); |
| 5507 | |
| 5508 | return QDF_STATUS_E_FAILURE; |
| 5509 | } |
| 5510 | |
| 5511 | /** |
| 5512 | * wmi_extract_peer_ratecode_list_ev() - extract peer ratecode from event |
| 5513 | * @wmi_handle: wmi handle |
| 5514 | * @param evt_buf: pointer to event buffer |
| 5515 | * @param peer_mac: Pointer to hold peer mac address |
| 5516 | * @param rate_cap: Pointer to hold ratecode |
| 5517 | * |
| 5518 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5519 | */ |
| 5520 | QDF_STATUS wmi_extract_peer_ratecode_list_ev(void *wmi_hdl, void *evt_buf, |
| 5521 | uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap) |
| 5522 | { |
| 5523 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5524 | |
| 5525 | if (wmi->ops->extract_peer_ratecode_list_ev) |
| 5526 | return wmi->ops->extract_peer_ratecode_list_ev(wmi, |
| 5527 | evt_buf, peer_mac, rate_cap); |
| 5528 | |
| 5529 | return QDF_STATUS_E_FAILURE; |
| 5530 | |
| 5531 | } |
| 5532 | |
| 5533 | /** |
| 5534 | * wmi_extract_comb_phyerr() - extract comb phy error from event |
| 5535 | * @wmi_handle: wmi handle |
| 5536 | * @param evt_buf: pointer to event buffer |
| 5537 | * @param datalen: data length of event buffer |
| 5538 | * @param buf_offset: Pointer to hold value of current event buffer offset |
| 5539 | * post extraction |
| 5540 | * @param phyer: Pointer to hold phyerr |
| 5541 | * |
| 5542 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5543 | */ |
| 5544 | QDF_STATUS wmi_extract_comb_phyerr(void *wmi_hdl, void *evt_buf, |
| 5545 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr) |
| 5546 | { |
| 5547 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5548 | |
| 5549 | if (wmi_handle->ops->extract_comb_phyerr) |
| 5550 | return wmi_handle->ops->extract_comb_phyerr(wmi_handle, |
| 5551 | evt_buf, datalen, buf_offset, phyerr); |
| 5552 | |
| 5553 | return QDF_STATUS_E_FAILURE; |
| 5554 | |
| 5555 | } |
| 5556 | |
| 5557 | /** |
| 5558 | * wmi_extract_single_phyerr() - extract single phy error from event |
| 5559 | * @wmi_handle: wmi handle |
| 5560 | * @param evt_buf: pointer to event buffer |
| 5561 | * @param datalen: data length of event buffer |
| 5562 | * @param buf_offset: Pointer to hold value of current event buffer offset |
| 5563 | * post extraction |
| 5564 | * @param phyerr: Pointer to hold phyerr |
| 5565 | * |
| 5566 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5567 | */ |
| 5568 | QDF_STATUS wmi_extract_single_phyerr(void *wmi_hdl, void *evt_buf, |
| 5569 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr) |
| 5570 | { |
| 5571 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5572 | |
| 5573 | if (wmi_handle->ops->extract_single_phyerr) |
| 5574 | return wmi_handle->ops->extract_single_phyerr(wmi_handle, |
| 5575 | evt_buf, datalen, buf_offset, phyerr); |
| 5576 | |
| 5577 | return QDF_STATUS_E_FAILURE; |
| 5578 | |
| 5579 | } |
| 5580 | |
| 5581 | /** |
| 5582 | * wmi_extract_composite_phyerr() - extract composite phy error from event |
| 5583 | * @wmi_handle: wmi handle |
| 5584 | * @param evt_buf: pointer to event buffer |
| 5585 | * @param datalen: Length of event buffer |
| 5586 | * @param phyerr: Pointer to hold phy error |
| 5587 | * |
| 5588 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5589 | */ |
| 5590 | QDF_STATUS wmi_extract_composite_phyerr(void *wmi_hdl, void *evt_buf, |
| 5591 | uint16_t datalen, wmi_host_phyerr_t *phyerr) |
| 5592 | { |
| 5593 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5594 | |
| 5595 | if (wmi_handle->ops->extract_composite_phyerr) |
| 5596 | return wmi_handle->ops->extract_composite_phyerr(wmi_handle, |
| 5597 | evt_buf, datalen, phyerr); |
| 5598 | |
| 5599 | return QDF_STATUS_E_FAILURE; |
| 5600 | |
| 5601 | } |
| 5602 | |
| 5603 | /** |
| 5604 | * wmi_extract_stats_param() - extract all stats count from event |
| 5605 | * @wmi_handle: wmi handle |
| 5606 | * @param evt_buf: pointer to event buffer |
| 5607 | * @param stats_param: Pointer to hold stats count |
| 5608 | * |
| 5609 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5610 | */ |
| 5611 | QDF_STATUS wmi_extract_stats_param(void *wmi_hdl, void *evt_buf, |
| 5612 | wmi_host_stats_event *stats_param) |
| 5613 | { |
| 5614 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5615 | |
| 5616 | if (wmi_handle->ops->extract_all_stats_count) |
| 5617 | return wmi_handle->ops->extract_all_stats_count(wmi_handle, |
| 5618 | evt_buf, stats_param); |
| 5619 | |
| 5620 | return QDF_STATUS_E_FAILURE; |
| 5621 | } |
| 5622 | |
| 5623 | /** |
| 5624 | * wmi_extract_pdev_stats() - extract pdev stats from event |
| 5625 | * @wmi_handle: wmi handle |
| 5626 | * @param evt_buf: pointer to event buffer |
| 5627 | * @param index: Index into pdev stats |
| 5628 | * @param pdev_stats: Pointer to hold pdev stats |
| 5629 | * |
| 5630 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5631 | */ |
| 5632 | QDF_STATUS wmi_extract_pdev_stats(void *wmi_hdl, void *evt_buf, |
| 5633 | uint32_t index, wmi_host_pdev_stats *pdev_stats) |
| 5634 | { |
| 5635 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5636 | |
| 5637 | if (wmi_handle->ops->extract_pdev_stats) |
| 5638 | return wmi_handle->ops->extract_pdev_stats(wmi_handle, |
| 5639 | evt_buf, index, pdev_stats); |
| 5640 | |
| 5641 | return QDF_STATUS_E_FAILURE; |
| 5642 | } |
| 5643 | |
| 5644 | /** |
| 5645 | * wmi_extract_pdev_ext_stats() - extract extended pdev stats from event |
| 5646 | * @wmi_handle: wmi handle |
| 5647 | * @param evt_buf: pointer to event buffer |
| 5648 | * @param index: Index into extended pdev stats |
| 5649 | * @param pdev_ext_stats: Pointer to hold extended pdev stats |
| 5650 | * |
| 5651 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5652 | */ |
| 5653 | QDF_STATUS wmi_extract_pdev_ext_stats(void *wmi_hdl, void *evt_buf, |
| 5654 | uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats) |
| 5655 | { |
| 5656 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5657 | |
| 5658 | if (wmi_handle->ops->extract_pdev_ext_stats) |
| 5659 | return wmi_handle->ops->extract_pdev_ext_stats(wmi_handle, |
| 5660 | evt_buf, index, pdev_ext_stats); |
| 5661 | |
| 5662 | return QDF_STATUS_E_FAILURE; |
| 5663 | } |
| 5664 | |
| 5665 | /** |
| 5666 | * wmi_extract_peer_stats() - extract peer stats from event |
| 5667 | * @wmi_handle: wmi handle |
| 5668 | * @param evt_buf: pointer to event buffer |
| 5669 | * @param index: Index into peer stats |
| 5670 | * @param peer_stats: Pointer to hold peer stats |
| 5671 | * |
| 5672 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5673 | */ |
| 5674 | QDF_STATUS wmi_extract_peer_stats(void *wmi_hdl, void *evt_buf, |
| 5675 | uint32_t index, wmi_host_peer_stats *peer_stats) |
| 5676 | { |
| 5677 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5678 | |
| 5679 | if (wmi_handle->ops->extract_peer_stats) |
| 5680 | return wmi_handle->ops->extract_peer_stats(wmi_handle, |
| 5681 | evt_buf, index, peer_stats); |
| 5682 | |
| 5683 | return QDF_STATUS_E_FAILURE; |
| 5684 | } |
| 5685 | |
| 5686 | /** |
| 5687 | * wmi_extract_vdev_stats() - extract vdev stats from event |
| 5688 | * @wmi_handle: wmi handle |
| 5689 | * @param evt_buf: pointer to event buffer |
| 5690 | * @param index: Index into vdev stats |
| 5691 | * @param vdev_stats: Pointer to hold vdev stats |
| 5692 | * |
| 5693 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5694 | */ |
| 5695 | QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf, |
| 5696 | uint32_t index, wmi_host_vdev_stats *vdev_stats) |
| 5697 | { |
| 5698 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5699 | |
| 5700 | if (wmi_handle->ops->extract_vdev_stats) |
| 5701 | return wmi_handle->ops->extract_vdev_stats(wmi_handle, |
| 5702 | evt_buf, index, vdev_stats); |
| 5703 | |
| 5704 | return QDF_STATUS_E_FAILURE; |
| 5705 | } |
| 5706 | |
| 5707 | /** |
| 5708 | * wmi_extract_rtt_hdr() - extract rtt header from event |
| 5709 | * @wmi_handle: wmi handle |
| 5710 | * @param evt_buf: pointer to event buffer |
| 5711 | * @param ev: Pointer to hold rtt header |
| 5712 | * |
| 5713 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5714 | */ |
| 5715 | QDF_STATUS wmi_extract_rtt_hdr(void *wmi_hdl, void *evt_buf, |
| 5716 | wmi_host_rtt_event_hdr *ev) |
| 5717 | { |
| 5718 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5719 | |
| 5720 | if (wmi_handle->ops->extract_rtt_hdr) |
| 5721 | return wmi_handle->ops->extract_rtt_hdr(wmi_handle, |
| 5722 | evt_buf, ev); |
| 5723 | |
| 5724 | return QDF_STATUS_E_FAILURE; |
| 5725 | } |
| 5726 | |
| 5727 | /** |
| 5728 | * wmi_extract_bcnflt_stats() - extract bcn fault stats from event |
| 5729 | * @wmi_handle: wmi handle |
| 5730 | * @param evt_buf: pointer to event buffer |
| 5731 | * @param index: Index into bcn fault stats |
| 5732 | * @param bcnflt_stats: Pointer to hold bcn fault stats |
| 5733 | * |
| 5734 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5735 | */ |
| 5736 | QDF_STATUS wmi_extract_bcnflt_stats(void *wmi_hdl, void *evt_buf, |
| 5737 | uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats) |
| 5738 | { |
| 5739 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5740 | |
| 5741 | if (wmi_handle->ops->extract_bcnflt_stats) |
| 5742 | return wmi_handle->ops->extract_bcnflt_stats(wmi_handle, |
| 5743 | evt_buf, index, bcnflt_stats); |
| 5744 | |
| 5745 | return QDF_STATUS_E_FAILURE; |
| 5746 | } |
| 5747 | |
| 5748 | /** |
| 5749 | * wmi_extract_rtt_ev() - extract rtt event |
| 5750 | * @wmi_handle: wmi handle |
| 5751 | * @param evt_buf: Pointer to event buffer |
| 5752 | * @param ev: Pointer to hold rtt event |
| 5753 | * @param hdump: Pointer to hold hex dump |
| 5754 | * @param hdump_len: hex dump length |
| 5755 | * |
| 5756 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5757 | */ |
| 5758 | QDF_STATUS wmi_extract_rtt_ev(void *wmi_hdl, void *evt_buf, |
| 5759 | wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len) |
| 5760 | { |
| 5761 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5762 | |
| 5763 | if (wmi_handle->ops->extract_rtt_ev) |
| 5764 | return wmi_handle->ops->extract_rtt_ev(wmi_handle, |
| 5765 | evt_buf, ev, hdump, hdump_len); |
| 5766 | |
| 5767 | return QDF_STATUS_E_FAILURE; |
| 5768 | } |
| 5769 | |
| 5770 | /** |
| 5771 | * wmi_extract_peer_extd_stats() - extract extended peer stats from event |
| 5772 | * @wmi_handle: wmi handle |
| 5773 | * @param evt_buf: pointer to event buffer |
| 5774 | * @param index: Index into extended peer stats |
| 5775 | * @param peer_extd_stats: Pointer to hold extended peer stats |
| 5776 | * |
| 5777 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5778 | */ |
| 5779 | QDF_STATUS wmi_extract_peer_extd_stats(void *wmi_hdl, void *evt_buf, |
| 5780 | uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats) |
| 5781 | { |
| 5782 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5783 | |
| 5784 | if (wmi_handle->ops->extract_peer_extd_stats) |
| 5785 | return wmi_handle->ops->extract_peer_extd_stats(wmi_handle, |
| 5786 | evt_buf, index, peer_extd_stats); |
| 5787 | |
| 5788 | return QDF_STATUS_E_FAILURE; |
| 5789 | } |
| 5790 | |
| 5791 | /** |
| 5792 | * wmi_extract_rtt_error_report_ev() - extract rtt error report from event |
| 5793 | * @wmi_handle: wmi handle |
| 5794 | * @param evt_buf: pointer to event buffer |
| 5795 | * @param wds_ev: Pointer to hold rtt error report |
| 5796 | * |
| 5797 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5798 | */ |
| 5799 | QDF_STATUS wmi_extract_rtt_error_report_ev(void *wmi_hdl, void *evt_buf, |
| 5800 | wmi_host_rtt_error_report_event *ev) |
| 5801 | { |
| 5802 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5803 | |
| 5804 | if (wmi_handle->ops->extract_rtt_error_report_ev) |
| 5805 | return wmi_handle->ops->extract_rtt_error_report_ev(wmi_handle, |
| 5806 | evt_buf, ev); |
| 5807 | |
| 5808 | return QDF_STATUS_E_FAILURE; |
| 5809 | } |
| 5810 | |
| 5811 | /** |
| 5812 | * wmi_extract_chan_stats() - extract chan stats from event |
| 5813 | * @wmi_handle: wmi handle |
| 5814 | * @param evt_buf: pointer to event buffer |
| 5815 | * @param index: Index into chan stats |
| 5816 | * @param chanstats: Pointer to hold chan stats |
| 5817 | * |
| 5818 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5819 | */ |
| 5820 | QDF_STATUS wmi_extract_chan_stats(void *wmi_hdl, void *evt_buf, |
| 5821 | uint32_t index, wmi_host_chan_stats *chan_stats) |
| 5822 | { |
| 5823 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5824 | |
| 5825 | if (wmi_handle->ops->extract_chan_stats) |
| 5826 | return wmi_handle->ops->extract_chan_stats(wmi_handle, |
| 5827 | evt_buf, index, chan_stats); |
| 5828 | |
| 5829 | return QDF_STATUS_E_FAILURE; |
| 5830 | } |
| 5831 | |
| 5832 | /** |
| 5833 | * wmi_extract_thermal_stats() - extract thermal stats from event |
| 5834 | * @wmi_handle: wmi handle |
| 5835 | * @param evt_buf: Pointer to event buffer |
| 5836 | * @param temp: Pointer to hold extracted temperature |
| 5837 | * @param level: Pointer to hold extracted level |
| 5838 | * |
| 5839 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5840 | */ |
| 5841 | QDF_STATUS wmi_extract_thermal_stats(void *wmi_hdl, void *evt_buf, |
| 5842 | uint32_t *temp, uint32_t *level) |
| 5843 | { |
| 5844 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5845 | |
| 5846 | if (wmi_handle->ops->extract_thermal_stats) |
| 5847 | return wmi_handle->ops->extract_thermal_stats(wmi_handle, |
| 5848 | evt_buf, temp, level); |
| 5849 | |
| 5850 | return QDF_STATUS_E_FAILURE; |
| 5851 | } |
| 5852 | |
| 5853 | /** |
| 5854 | * wmi_extract_profile_ctx() - extract profile context from event |
| 5855 | * @wmi_handle: wmi handle |
| 5856 | * @param evt_buf: pointer to event buffer |
| 5857 | * @param profile_ctx: Pointer to hold profile context |
| 5858 | * |
| 5859 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5860 | */ |
| 5861 | QDF_STATUS wmi_extract_profile_ctx(void *wmi_hdl, void *evt_buf, |
| 5862 | wmi_host_wlan_profile_ctx_t *profile_ctx) |
| 5863 | { |
| 5864 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5865 | |
| 5866 | if (wmi_handle->ops->extract_profile_ctx) |
| 5867 | return wmi_handle->ops->extract_profile_ctx(wmi_handle, |
| 5868 | evt_buf, profile_ctx); |
| 5869 | |
| 5870 | return QDF_STATUS_E_FAILURE; |
| 5871 | } |
| 5872 | |
| 5873 | /** |
| 5874 | * wmi_extract_thermal_level_stats() - extract thermal level stats from |
| 5875 | * event |
| 5876 | * @wmi_handle: wmi handle |
| 5877 | * @param evt_buf: pointer to event buffer |
| 5878 | * @param idx: Index to level stats |
| 5879 | * @param levelcount: Pointer to hold levelcount |
| 5880 | * @param dccount: Pointer to hold dccount |
| 5881 | * |
| 5882 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5883 | */ |
| 5884 | QDF_STATUS wmi_extract_thermal_level_stats(void *wmi_hdl, void *evt_buf, |
| 5885 | uint8_t idx, uint32_t *levelcount, uint32_t *dccount) |
| 5886 | { |
| 5887 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5888 | |
| 5889 | if (wmi_handle->ops->extract_thermal_level_stats) |
| 5890 | return wmi_handle->ops->extract_thermal_level_stats(wmi_handle, |
| 5891 | evt_buf, idx, levelcount, dccount); |
| 5892 | |
| 5893 | return QDF_STATUS_E_FAILURE; |
| 5894 | } |
| 5895 | |
| 5896 | /** |
| 5897 | * wmi_extract_profile_data() - extract profile data from event |
| 5898 | * @wmi_handle: wmi handle |
| 5899 | * @param evt_buf: pointer to event buffer |
Govind Singh | fdb1bb3 | 2016-05-06 20:20:25 +0530 | [diff] [blame] | 5900 | * @idx index: index of profile data |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 5901 | * @param profile_data: Pointer to hold profile data |
| 5902 | * |
| 5903 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5904 | */ |
Govind Singh | fdb1bb3 | 2016-05-06 20:20:25 +0530 | [diff] [blame] | 5905 | QDF_STATUS wmi_extract_profile_data(void *wmi_hdl, void *evt_buf, uint8_t idx, |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 5906 | wmi_host_wlan_profile_t *profile_data) |
| 5907 | { |
| 5908 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5909 | |
| 5910 | if (wmi_handle->ops->extract_profile_data) |
| 5911 | return wmi_handle->ops->extract_profile_data(wmi_handle, |
Govind Singh | fdb1bb3 | 2016-05-06 20:20:25 +0530 | [diff] [blame] | 5912 | evt_buf, idx, profile_data); |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 5913 | |
| 5914 | return QDF_STATUS_E_FAILURE; |
| 5915 | } |
| 5916 | |
| 5917 | /** |
| 5918 | * wmi_extract_chan_info_event() - extract chan information from event |
| 5919 | * @wmi_handle: wmi handle |
| 5920 | * @param evt_buf: pointer to event buffer |
| 5921 | * @param chan_info: Pointer to hold chan information |
| 5922 | * |
| 5923 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5924 | */ |
| 5925 | QDF_STATUS wmi_extract_chan_info_event(void *wmi_hdl, void *evt_buf, |
| 5926 | wmi_host_chan_info_event *chan_info) |
| 5927 | { |
| 5928 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5929 | |
| 5930 | if (wmi_handle->ops->extract_chan_info_event) |
| 5931 | return wmi_handle->ops->extract_chan_info_event(wmi_handle, |
| 5932 | evt_buf, chan_info); |
| 5933 | |
| 5934 | return QDF_STATUS_E_FAILURE; |
| 5935 | } |
| 5936 | |
| 5937 | /** |
| 5938 | * wmi_extract_channel_hopping_event() - extract channel hopping param |
| 5939 | * from event |
| 5940 | * @wmi_handle: wmi handle |
| 5941 | * @param evt_buf: pointer to event buffer |
| 5942 | * @param ch_hopping: Pointer to hold channel hopping param |
| 5943 | * |
| 5944 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5945 | */ |
| 5946 | QDF_STATUS wmi_extract_channel_hopping_event(void *wmi_hdl, void *evt_buf, |
| 5947 | wmi_host_pdev_channel_hopping_event *ch_hopping) |
| 5948 | { |
| 5949 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5950 | |
| 5951 | if (wmi->ops->extract_channel_hopping_event) |
| 5952 | return wmi->ops->extract_channel_hopping_event(wmi, |
| 5953 | evt_buf, ch_hopping); |
| 5954 | |
| 5955 | return QDF_STATUS_E_FAILURE; |
| 5956 | } |
| 5957 | |
| 5958 | /** |
| 5959 | * wmi_extract_bss_chan_info_event() - extract bss channel information |
| 5960 | * from event |
| 5961 | * @wmi_handle: wmi handle |
| 5962 | * @param evt_buf: pointer to event buffer |
| 5963 | * @param bss_chan_info: Pointer to hold bss channel information |
| 5964 | * |
| 5965 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5966 | */ |
| 5967 | QDF_STATUS wmi_extract_bss_chan_info_event(void *wmi_hdl, void *evt_buf, |
| 5968 | wmi_host_pdev_bss_chan_info_event *bss_chan_info) |
| 5969 | { |
| 5970 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 5971 | |
| 5972 | if (wmi_handle->ops->extract_bss_chan_info_event) |
| 5973 | return wmi_handle->ops->extract_bss_chan_info_event(wmi_handle, |
| 5974 | evt_buf, bss_chan_info); |
| 5975 | |
| 5976 | return QDF_STATUS_E_FAILURE; |
| 5977 | } |
| 5978 | |
| 5979 | /** |
| 5980 | * wmi_extract_inst_rssi_stats_event() - extract inst rssi stats from event |
| 5981 | * @wmi_handle: wmi handle |
| 5982 | * @param evt_buf: pointer to event buffer |
| 5983 | * @param inst_rssi_resp: Pointer to hold inst rssi response |
| 5984 | * |
| 5985 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 5986 | */ |
| 5987 | QDF_STATUS wmi_extract_inst_rssi_stats_event(void *wmi_hdl, void *evt_buf, |
| 5988 | wmi_host_inst_stats_resp *inst_rssi_resp) |
| 5989 | { |
| 5990 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 5991 | |
| 5992 | if (wmi->ops->extract_inst_rssi_stats_event) |
| 5993 | return wmi->ops->extract_inst_rssi_stats_event(wmi, |
| 5994 | evt_buf, inst_rssi_resp); |
| 5995 | |
| 5996 | return QDF_STATUS_E_FAILURE; |
| 5997 | } |
| 5998 | |
| 5999 | /** |
| 6000 | * wmi_extract_tx_data_traffic_ctrl_ev() - extract tx data traffic control |
| 6001 | * from event |
| 6002 | * @wmi_handle: wmi handle |
| 6003 | * @param evt_buf: pointer to event buffer |
| 6004 | * @param index: Index into chan stats |
| 6005 | * @param ev: Pointer to hold data traffic control |
| 6006 | * |
| 6007 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 6008 | */ |
| 6009 | QDF_STATUS wmi_extract_tx_data_traffic_ctrl_ev(void *wmi_hdl, void *evt_buf, |
| 6010 | wmi_host_tx_data_traffic_ctrl_event *ev) |
| 6011 | { |
| 6012 | wmi_unified_t wmi = (wmi_unified_t) wmi_hdl; |
| 6013 | |
| 6014 | if (wmi->ops->extract_tx_data_traffic_ctrl_ev) |
| 6015 | return wmi->ops->extract_tx_data_traffic_ctrl_ev(wmi, |
| 6016 | evt_buf, ev); |
| 6017 | |
| 6018 | return QDF_STATUS_E_FAILURE; |
| 6019 | } |
| 6020 | |
| 6021 | /** |
| 6022 | * wmi_extract_vdev_extd_stats() - extract extended vdev stats from event |
| 6023 | * @wmi_handle: wmi handle |
| 6024 | * @param evt_buf: pointer to event buffer |
| 6025 | * @param index: Index into extended vdev stats |
| 6026 | * @param vdev_extd_stats: Pointer to hold extended vdev stats |
| 6027 | * |
| 6028 | * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure |
| 6029 | */ |
| 6030 | QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf, |
| 6031 | uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats) |
| 6032 | { |
| 6033 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 6034 | |
| 6035 | if (wmi_handle->ops->extract_vdev_extd_stats) |
| 6036 | return wmi_handle->ops->extract_vdev_extd_stats(wmi_handle, |
| 6037 | evt_buf, index, vdev_extd_stats); |
Gupta, Kapil | 2e68598 | 2016-04-25 19:14:19 +0530 | [diff] [blame] | 6038 | return QDF_STATUS_E_FAILURE; |
| 6039 | } |
| 6040 | |
| 6041 | /** |
| 6042 | * wmi_unified_send_adapt_dwelltime_params_cmd() - send wmi cmd of |
| 6043 | * adaptive dwelltime configuration params |
| 6044 | * @wma_handle: wma handler |
| 6045 | * @dwelltime_params: pointer to dwelltime_params |
| 6046 | * |
| 6047 | * Return: QDF_STATUS_SUCCESS on success and QDF failure reason code for failure |
| 6048 | */ |
| 6049 | QDF_STATUS wmi_unified_send_adapt_dwelltime_params_cmd(void *wmi_hdl, |
| 6050 | struct wmi_adaptive_dwelltime_params *dwelltime_params) |
| 6051 | { |
| 6052 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 6053 | |
| 6054 | if (wmi_handle->ops->send_adapt_dwelltime_params_cmd) |
| 6055 | return wmi_handle->ops-> |
| 6056 | send_adapt_dwelltime_params_cmd(wmi_handle, |
| 6057 | dwelltime_params); |
Govind Singh | e7d9f3e | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 6058 | |
| 6059 | return QDF_STATUS_E_FAILURE; |
| 6060 | } |
Govind Singh | bca3b1b | 2016-05-02 17:59:24 +0530 | [diff] [blame] | 6061 | |
| 6062 | /** |
| 6063 | * wmi_unified_send_power_dbg_cmd() - send power debug commands |
| 6064 | * @wmi_handle: wmi handle |
| 6065 | * @param: wmi power debug parameter |
| 6066 | * |
| 6067 | * Send WMI_POWER_DEBUG_CMDID parameters to fw. |
| 6068 | * |
| 6069 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 6070 | */ |
| 6071 | QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl, |
| 6072 | struct wmi_power_dbg_params *param) |
| 6073 | { |
| 6074 | wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl; |
| 6075 | |
| 6076 | if (wmi_handle->ops->send_power_dbg_cmd) |
| 6077 | return wmi_handle->ops->send_power_dbg_cmd(wmi_handle, |
| 6078 | param); |
| 6079 | |
| 6080 | return QDF_STATUS_E_FAILURE; |
| 6081 | } |