wmi_unified_roam_param.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*
  2. * Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /*
  18. * This file contains the API definitions for the ROAMING WMI APIs.
  19. */
  20. #ifndef _WMI_UNIFIED_ROAM_PARAM_H_
  21. #define _WMI_UNIFIED_ROAM_PARAM_H_
  22. #include <wlan_dlm_public_struct.h>
  23. #include <wlan_cm_bss_score_param.h>
  24. /**
  25. * struct gateway_update_req_param - gateway parameter update request
  26. * @request_id: request id
  27. * @vdev_id: vdev id
  28. * @max_retries: Max ARP/NS retry attempts
  29. * @timeout: Retry interval
  30. * @ipv4_addr_type: on ipv4 network
  31. * @ipv6_addr_type: on ipv6 network
  32. * @gw_mac_addr: gateway mac addr
  33. * @ipv4_addr: ipv4 addr
  34. * @ipv6_addr: ipv6 addr
  35. */
  36. struct gateway_update_req_param {
  37. uint32_t request_id;
  38. uint32_t vdev_id;
  39. uint32_t max_retries;
  40. uint32_t timeout;
  41. uint32_t ipv4_addr_type;
  42. uint32_t ipv6_addr_type;
  43. struct qdf_mac_addr gw_mac_addr;
  44. uint8_t ipv4_addr[QDF_IPV4_ADDR_SIZE];
  45. uint8_t ipv6_addr[QDF_IPV6_ADDR_SIZE];
  46. };
  47. /**
  48. * struct rssi_monitor_param - rssi monitoring
  49. * @request_id: request id
  50. * @vdev_id: vdev id
  51. * @min_rssi: minimum rssi
  52. * @max_rssi: maximum rssi
  53. * @control: flag to indicate start or stop
  54. */
  55. struct rssi_monitor_param {
  56. uint32_t request_id;
  57. uint32_t vdev_id;
  58. int8_t min_rssi;
  59. int8_t max_rssi;
  60. bool control;
  61. };
  62. #define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
  63. /* Occupied channel list remains static */
  64. #define WMI_CHANNEL_LIST_STATIC 1
  65. /* Occupied channel list can be learnt after init */
  66. #define WMI_CHANNEL_LIST_DYNAMIC_INIT 2
  67. /* Occupied channel list can be learnt after flush */
  68. #define WMI_CHANNEL_LIST_DYNAMIC_FLUSH 3
  69. /* Occupied channel list can be learnt after update */
  70. #define WMI_CHANNEL_LIST_DYNAMIC_UPDATE 4
  71. /**
  72. * struct plm_req_params - plm req parameter
  73. * @diag_token: Dialog token
  74. * @meas_token: measurement token
  75. * @num_bursts: total number of bursts
  76. * @burst_int: burst interval in seconds
  77. * @meas_duration:in TU's,STA goes off-ch
  78. * @burst_len: no of times the STA should cycle through PLM ch list
  79. * @desired_tx_pwr: desired tx power
  80. * @mac_addr: MC dest addr
  81. * @plm_num_ch: channel numbers
  82. * @plm_ch_freq_list: channel frequency list
  83. * @vdev_id: vdev id
  84. * @enable: enable/disable
  85. */
  86. struct plm_req_params {
  87. uint16_t diag_token;
  88. uint16_t meas_token;
  89. uint16_t num_bursts;
  90. uint16_t burst_int;
  91. uint16_t meas_duration;
  92. /* no of times the STA should cycle through PLM ch list */
  93. uint8_t burst_len;
  94. int8_t desired_tx_pwr;
  95. struct qdf_mac_addr mac_addr;
  96. /* no of channels */
  97. uint8_t plm_num_ch;
  98. /* channel frequency list */
  99. uint32_t plm_ch_freq_list[WMI_CFG_VALID_CHANNEL_LIST_LEN];
  100. uint8_t vdev_id;
  101. bool enable;
  102. };
  103. /**
  104. * struct wmi_limit_off_chan_param - limit off channel parameters
  105. * @vdev_id: vdev id
  106. * @status: status of the command (enable/disable)
  107. * @max_offchan_time: max off channel time
  108. * @rest_time: home channel time
  109. * @skip_dfs_chans: skip dfs channels during scan
  110. */
  111. struct wmi_limit_off_chan_param {
  112. uint32_t vdev_id;
  113. bool status;
  114. uint32_t max_offchan_time;
  115. uint32_t rest_time;
  116. bool skip_dfs_chans;
  117. };
  118. #define WMI_MAX_HLP_IE_LEN 2048
  119. /**
  120. * struct hlp_params - HLP info params
  121. * @vdev_id: vdev id
  122. * @hlp_ie_len: HLP IE length
  123. * @hlp_ie: HLP IE
  124. */
  125. struct hlp_params {
  126. uint8_t vdev_id;
  127. uint32_t hlp_ie_len;
  128. uint8_t hlp_ie[WMI_MAX_HLP_IE_LEN];
  129. };
  130. /**
  131. * struct wmi_roam_auth_status_params - WPA3 roam auth response status
  132. * parameters
  133. * @vdev_id: Vdev on which roam preauth is happening
  134. * @preauth_status: Status of the Auth response.
  135. * IEEE80211_STATUS_SUCCESS(0) for success. Corresponding
  136. * IEEE80211 failure status code for failure.
  137. *
  138. * @bssid: Candidate BSSID
  139. * @pmkid: PMKID derived for the auth
  140. */
  141. struct wmi_roam_auth_status_params {
  142. uint32_t vdev_id;
  143. uint32_t preauth_status;
  144. struct qdf_mac_addr bssid;
  145. uint8_t pmkid[PMKID_LEN];
  146. };
  147. /**
  148. * struct wmi_invoke_neighbor_report_params - Invoke neighbor report request
  149. * from IW to FW
  150. * @vdev_id: vdev id
  151. * @send_resp_to_host: bool to send response to host or not
  152. * @ssid: ssid given from the IW command
  153. */
  154. struct wmi_invoke_neighbor_report_params {
  155. uint32_t vdev_id;
  156. uint32_t send_resp_to_host;
  157. struct wlan_ssid ssid;
  158. };
  159. /**
  160. * struct set_pcl_cmd_params - Set PCL command params
  161. * @vdev_id: Vdev id
  162. * @weights: PCL weights
  163. */
  164. struct set_pcl_cmd_params {
  165. uint8_t vdev_id;
  166. struct wmi_pcl_chan_weights *weights;
  167. };
  168. #endif /* _WMI_UNIFIED_ROAM_PARAM_H_ */