Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 1 | /* |
Wu Gao | 6294afc | 2019-01-05 00:00:58 +0800 | [diff] [blame] | 2 | * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | /** |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 19 | * DOC: declare UCFG APIs exposed by the mlme component |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #ifndef _WLAN_MLME_UCFG_API_H_ |
| 23 | #define _WLAN_MLME_UCFG_API_H_ |
| 24 | |
| 25 | #include <wlan_mlme_public_struct.h> |
| 26 | #include <wlan_objmgr_psoc_obj.h> |
| 27 | #include <wlan_objmgr_global_obj.h> |
| 28 | #include <wlan_cmn.h> |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 29 | #include <wlan_mlme_api.h> |
gaurank kathpalia | 24ed0f4 | 2018-11-13 15:37:49 +0530 | [diff] [blame] | 30 | #include <wlan_mlme_main.h> |
Bala Venkatesh | 6d53709 | 2018-09-25 10:38:36 +0530 | [diff] [blame] | 31 | #include "wma_tgt_cfg.h" |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 32 | |
| 33 | /** |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 34 | * ucfg_mlme_init() - initialize mlme_ctx context. |
| 35 | * |
| 36 | * This function initializes the mlme context. |
| 37 | * |
| 38 | * Return: QDF_STATUS_SUCCESS - in case of success else return error |
| 39 | */ |
| 40 | QDF_STATUS ucfg_mlme_init(void); |
| 41 | |
| 42 | /** |
| 43 | * ucfg_mlme_deinit() - De initialize mlme_ctx context. |
| 44 | * |
| 45 | * This function De initializes mlme contex. |
| 46 | * |
| 47 | * Return: QDF_STATUS_SUCCESS - in case of success else return error |
| 48 | */ |
| 49 | QDF_STATUS ucfg_mlme_deinit(void); |
| 50 | |
| 51 | /** |
| 52 | * ucfg_mlme_psoc_open() - MLME component Open |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 53 | * @psoc: pointer to psoc object |
| 54 | * |
| 55 | * Open the MLME component and initialize the MLME strucutre |
| 56 | * |
| 57 | * Return: QDF Status |
| 58 | */ |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 59 | QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc); |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 60 | |
| 61 | /** |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 62 | * ucfg_mlme_psoc_close() - MLME component close |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 63 | * @psoc: pointer to psoc object |
| 64 | * |
| 65 | * Close the MLME component and clear the MLME structures |
| 66 | * |
| 67 | * Return: None |
| 68 | */ |
Vignesh Viswanathan | a0921c4 | 2018-09-04 19:03:35 +0530 | [diff] [blame] | 69 | void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc); |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 70 | |
Sandeep Puligilla | b7beb47 | 2018-08-13 22:54:20 -0700 | [diff] [blame] | 71 | #ifdef CONFIG_VDEV_SM |
| 72 | /** |
| 73 | * ucfg_mlme_pdev_open() - MLME component pdev Open |
| 74 | * @pdev: pointer to pdev object |
| 75 | * |
| 76 | * Open the MLME component and initialize the MLME pdev strucutre |
| 77 | * |
| 78 | * Return: QDF Status |
| 79 | */ |
| 80 | QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev); |
| 81 | |
| 82 | /** |
| 83 | * ucfg_mlme_pdev_close() - MLME component pdev close |
| 84 | * @pdev: pointer to pdev object |
| 85 | * |
| 86 | * close the MLME pdev information |
| 87 | * |
| 88 | * Return: QDF Status |
| 89 | */ |
| 90 | QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev); |
| 91 | |
Abhishek Singh | d5cf22d | 2019-01-08 19:51:09 +0530 | [diff] [blame] | 92 | /** |
| 93 | * ucfg_mlme_global_init() - initialize global mlme ops and structure |
| 94 | * |
| 95 | * Return: QDF Status |
| 96 | */ |
| 97 | QDF_STATUS ucfg_mlme_global_init(void); |
| 98 | /** |
| 99 | * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure |
| 100 | * |
| 101 | * Return: QDF Status |
| 102 | */ |
| 103 | QDF_STATUS ucfg_mlme_global_deinit(void); |
Sandeep Puligilla | b7beb47 | 2018-08-13 22:54:20 -0700 | [diff] [blame] | 104 | #else |
| 105 | /** |
| 106 | * ucfg_mlme_pdev_open() - MLME component pdev Open |
| 107 | * @pdev: pointer to pdev object |
| 108 | * |
| 109 | * Open the MLME component and initialize the MLME pdev strucutre |
| 110 | * |
| 111 | * Return: QDF Status |
| 112 | */ |
| 113 | static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev) |
| 114 | { |
| 115 | return QDF_STATUS_SUCCESS; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * ucfg_mlme_pdev_close() - MLME component pdev close |
| 120 | * @pdev: pointer to pdev object |
| 121 | * |
| 122 | * close the MLME pdev information |
| 123 | * |
| 124 | * Return: QDF Status |
| 125 | */ |
| 126 | static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev) |
| 127 | { |
| 128 | return QDF_STATUS_SUCCESS; |
| 129 | } |
Abhishek Singh | d5cf22d | 2019-01-08 19:51:09 +0530 | [diff] [blame] | 130 | |
| 131 | /** |
| 132 | * ucfg_mlme_global_init() - initialize global mlme ops and structure |
| 133 | * |
| 134 | * Return: QDF Status |
| 135 | */ |
| 136 | static inline QDF_STATUS ucfg_mlme_global_init(void) |
| 137 | { |
| 138 | return QDF_STATUS_SUCCESS; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure |
| 143 | * |
| 144 | * Return: QDF Status |
| 145 | */ |
| 146 | static inline QDF_STATUS ucfg_mlme_global_deinit(void) |
| 147 | { |
| 148 | return QDF_STATUS_SUCCESS; |
| 149 | } |
Sandeep Puligilla | b7beb47 | 2018-08-13 22:54:20 -0700 | [diff] [blame] | 150 | #endif |
| 151 | |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 152 | /** |
gaurank kathpalia | 3d2e385 | 2018-10-03 22:03:23 +0530 | [diff] [blame] | 153 | * wlan_mlme_get_power_usage() - Get the power usage info |
| 154 | * @psoc: pointer to psoc object |
| 155 | * |
| 156 | * Return: pointer to character array of power usage |
| 157 | */ |
| 158 | static inline |
| 159 | char *ucfg_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc) |
| 160 | { |
| 161 | return wlan_mlme_get_power_usage(psoc); |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * ucfg_get_tx_power() - Get the max tx power in particular band |
| 166 | * @psoc: pointer to psoc object |
| 167 | * @band: 2ghz/5ghz band |
| 168 | * |
| 169 | * Return: value of tx power in the respective band |
| 170 | */ |
| 171 | static inline |
| 172 | uint8_t ucfg_get_tx_power(struct wlan_objmgr_psoc *psoc, uint8_t band) |
| 173 | { |
| 174 | return wlan_mlme_get_tx_power(psoc, band); |
| 175 | } |
| 176 | |
| 177 | /** |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 178 | * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config |
| 179 | * @psoc: pointer to psoc object |
| 180 | * @value: pointer to the value which will be filled for the caller |
| 181 | * |
| 182 | * Inline UCFG API to be used by HDD/OSIF callers |
| 183 | * |
| 184 | * Return: QDF Status |
| 185 | */ |
| 186 | static inline |
| 187 | QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc, |
| 188 | struct mlme_ht_capabilities_info |
| 189 | *ht_cap_info) |
| 190 | { |
| 191 | return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info); |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config |
| 196 | * @psoc: pointer to psoc object |
| 197 | * @value: Value that needs to be set from the caller |
| 198 | * |
| 199 | * Inline UCFG API to be used by HDD/OSIF callers |
| 200 | * |
| 201 | * Return: QDF Status |
| 202 | */ |
| 203 | static inline |
| 204 | QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc, |
| 205 | struct mlme_ht_capabilities_info |
| 206 | ht_cap_info) |
| 207 | { |
| 208 | return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info); |
| 209 | } |
Pragaspathi Thilagaraj | f4cc58b | 2018-07-31 00:39:05 +0530 | [diff] [blame] | 210 | |
| 211 | /** |
Vignesh Viswanathan | ddc89e5 | 2018-11-02 18:43:42 +0530 | [diff] [blame] | 212 | * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num |
| 213 | * @psoc: pointer to psoc object |
| 214 | * @value: pointer to the value where the max_amsdu num is to be filled |
| 215 | * |
| 216 | * Return: QDF_STATUS |
| 217 | */ |
| 218 | static inline |
| 219 | QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc, |
| 220 | uint8_t *value) |
| 221 | { |
| 222 | return wlan_mlme_get_max_amsdu_num(psoc, value); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num |
| 227 | * @psoc: pointer to psoc object |
| 228 | * @value: value to be set for max_amsdu_num |
| 229 | * |
| 230 | * Return: QDF_STATUS |
| 231 | */ |
| 232 | static inline |
| 233 | QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc, |
| 234 | uint8_t value) |
| 235 | { |
| 236 | return wlan_mlme_set_max_amsdu_num(psoc, value); |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density |
| 241 | * @psoc: pointer to psoc object |
| 242 | * @value: pointer to the value where the ht mpdu density is to be filled |
| 243 | * |
| 244 | * Return: QDF_STATUS |
| 245 | */ |
| 246 | static inline |
| 247 | QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc, |
| 248 | uint8_t *value) |
| 249 | { |
| 250 | return wlan_mlme_get_ht_mpdu_density(psoc, value); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density |
| 255 | * @psoc: pointer to psoc object |
| 256 | * @value: value to be set for ht mpdu density |
| 257 | * |
| 258 | * Return: QDF_STATUS |
| 259 | */ |
| 260 | static inline |
| 261 | QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc, |
| 262 | uint8_t value) |
| 263 | { |
| 264 | return wlan_mlme_set_ht_mpdu_density(psoc, value); |
| 265 | } |
| 266 | |
| 267 | /** |
Vignesh Viswanathan | f97cc11 | 2018-10-03 19:17:07 +0530 | [diff] [blame] | 268 | * ucfg_mlme_get_band_capability() - Get the Band capability config |
| 269 | * @psoc: pointer to psoc object |
| 270 | * @band_capability: Pointer to the variable from caller |
| 271 | * |
| 272 | * Return: QDF Status |
| 273 | */ |
| 274 | static inline |
| 275 | QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc, |
| 276 | uint8_t *band_capability) |
| 277 | { |
| 278 | return wlan_mlme_get_band_capability(psoc, band_capability); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * ucfg_mlme_set_band_capability() - Set the Band capability config |
| 283 | * @psoc: pointer to psoc object |
| 284 | * @band_capability: Value to be set from the caller |
| 285 | * |
| 286 | * Return: QDF Status |
| 287 | */ |
| 288 | static inline |
| 289 | QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc, |
| 290 | uint8_t band_capability) |
| 291 | { |
| 292 | return wlan_mlme_set_band_capability(psoc, band_capability); |
| 293 | } |
| 294 | |
| 295 | /** |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 296 | * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 297 | * @psoc: pointer to psoc object |
| 298 | * @prevent_link_down: Pointer to the variable from caller |
| 299 | * |
| 300 | * Return: QDF Status |
| 301 | */ |
| 302 | static inline |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 303 | QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc, |
| 304 | bool *prevent_link_down) |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 305 | { |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 306 | return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down); |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 307 | } |
| 308 | |
| 309 | /** |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 310 | * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 311 | * @psoc: pointer to psoc object |
| 312 | * @select_5ghz_margin: Pointer to the variable from caller |
| 313 | * |
| 314 | * Return: QDF Status |
| 315 | */ |
| 316 | static inline |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 317 | QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc, |
| 318 | uint8_t *select_5ghz_margin) |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 319 | { |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 320 | return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin); |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 321 | } |
| 322 | |
| 323 | /** |
Karthik Kantamneni | 9180c75 | 2018-11-14 12:14:17 +0530 | [diff] [blame] | 324 | * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config |
| 325 | * @psoc: pointer to psoc object |
| 326 | * @rtt_mac_randomization: Pointer to the variable from caller |
| 327 | * |
| 328 | * Return: QDF Status |
| 329 | */ |
| 330 | static inline |
| 331 | QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc, |
| 332 | bool *rtt_mac_randomization) |
| 333 | { |
| 334 | return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization); |
| 335 | } |
| 336 | |
| 337 | /** |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 338 | * ucfg_mlme_get_crash_inject() - Get the crash inject config |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 339 | * @psoc: pointer to psoc object |
| 340 | * @crash_inject: Pointer to the variable from caller |
| 341 | * |
| 342 | * Return: QDF Status |
| 343 | */ |
| 344 | static inline |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 345 | QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc, |
| 346 | bool *crash_inject) |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 347 | { |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 348 | return wlan_mlme_get_crash_inject(psoc, crash_inject); |
Vignesh Viswanathan | a851d75 | 2018-10-03 19:44:38 +0530 | [diff] [blame] | 349 | } |
| 350 | |
| 351 | /** |
| 352 | * ucfg_mlme_get_lpass_support() - Get the LPASS Support config |
| 353 | * @psoc: pointer to psoc object |
| 354 | * @lpass_support: Pointer to the variable from caller |
| 355 | * |
| 356 | * Return: QDF Status |
| 357 | */ |
| 358 | static inline |
| 359 | QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc, |
| 360 | bool *lpass_support) |
| 361 | { |
| 362 | return wlan_mlme_get_lpass_support(psoc, lpass_support); |
| 363 | } |
| 364 | |
| 365 | /** |
Vignesh Viswanathan | a1f3a1a | 2018-10-04 13:10:46 +0530 | [diff] [blame] | 366 | * ucfg_mlme_get_self_recovery() - Get the self recovery config |
| 367 | * @psoc: pointer to psoc object |
| 368 | * @self_recovery: Pointer to the variable from caller |
| 369 | * |
| 370 | * Return: QDF Status |
| 371 | */ |
| 372 | static inline |
| 373 | QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc, |
| 374 | bool *self_recovery) |
| 375 | { |
| 376 | return wlan_mlme_get_self_recovery(psoc, self_recovery); |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config |
| 381 | * @psoc: pointer to psoc object |
| 382 | * @sub_20_chan_width: Pointer to the variable from caller |
| 383 | * |
| 384 | * Return: QDF Status |
| 385 | */ |
| 386 | static inline |
| 387 | QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc, |
| 388 | uint8_t *sub_20_chan_width) |
| 389 | { |
| 390 | return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width); |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config |
| 395 | * @psoc: pointer to psoc object |
| 396 | * @fw_timeout_crash: Pointer to the variable from caller |
| 397 | * |
| 398 | * Return: QDF Status |
| 399 | */ |
| 400 | static inline |
| 401 | QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc, |
| 402 | bool *fw_timeout_crash) |
| 403 | { |
| 404 | return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash); |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config |
| 409 | * @psoc: pointer to psoc object |
| 410 | * @ito_repeat_count: Pointer to the variable from caller |
| 411 | * |
| 412 | * Return: QDF Status |
| 413 | */ |
| 414 | static inline |
| 415 | QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc, |
| 416 | uint8_t *ito_repeat_count) |
| 417 | { |
| 418 | return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count); |
| 419 | } |
| 420 | |
| 421 | /** |
Harprit Chhabada | 1eeeb8d | 2018-09-14 15:16:56 -0700 | [diff] [blame] | 422 | * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with |
| 423 | * more param |
| 424 | * @psoc: pointer to psoc object |
| 425 | * @value: Value that needs to be set from the caller |
| 426 | * |
| 427 | * Inline UCFG API to be used by HDD/OSIF callers |
| 428 | * |
| 429 | * Return: QDF Status |
| 430 | */ |
| 431 | static inline |
| 432 | QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc, |
| 433 | bool *value) |
| 434 | { |
| 435 | return wlan_mlme_get_acs_with_more_param(psoc, value); |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight |
Harprit Chhabada | 1eeeb8d | 2018-09-14 15:16:56 -0700 | [diff] [blame] | 440 | * @psoc: pointer to psoc object |
| 441 | * @value: Value that needs to be set from the caller |
| 442 | * |
| 443 | * Inline UCFG API to be used by HDD/OSIF callers |
| 444 | * |
| 445 | * Return: QDF Status |
| 446 | */ |
| 447 | static inline |
| 448 | QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc, |
| 449 | uint32_t *value) |
| 450 | { |
| 451 | return wlan_mlme_get_auto_channel_weight(psoc, value); |
| 452 | } |
| 453 | |
| 454 | /** |
| 455 | * ucfg_mlme_get_vendor_acs_support() - Get the flag for |
| 456 | * vendor acs support |
| 457 | * @psoc: pointer to psoc object |
| 458 | * @value: Value that needs to be set from the caller |
| 459 | * |
| 460 | * Inline UCFG API to be used by HDD/OSIF callers |
| 461 | * |
| 462 | * Return: QDF Status |
| 463 | */ |
| 464 | static inline |
| 465 | QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc, |
| 466 | bool *value) |
| 467 | { |
| 468 | return wlan_mlme_get_vendor_acs_support(psoc, value); |
| 469 | } |
| 470 | |
| 471 | /** |
| 472 | * ucfg_mlme_get_external_acs_policy() - Get flag for external control |
| 473 | * acs policy |
| 474 | * @psoc: pointer to psoc object |
| 475 | * @value: Value that needs to be set from the caller |
| 476 | * |
| 477 | * Inline UCFG API to be used by HDD/OSIF callers |
| 478 | * |
| 479 | * Return: QDF Status |
| 480 | */ |
| 481 | static inline QDF_STATUS |
| 482 | ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc, |
| 483 | bool *value) |
| 484 | { |
| 485 | return wlan_mlme_get_external_acs_policy(psoc, value); |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config |
| 490 | * @psoc: pointer to psoc object |
| 491 | * @value: Value that needs to be set from the caller |
| 492 | * |
| 493 | * Inline UCFG API to be used by HDD/OSIF callers |
| 494 | * |
| 495 | * Return: QDF Status |
| 496 | */ |
| 497 | static inline |
| 498 | QDF_STATUS |
| 499 | ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc, |
| 500 | bool *value) |
| 501 | { |
| 502 | return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value); |
| 503 | } |
| 504 | |
| 505 | /** |
Abhinav Kumar | 18b45cd | 2018-09-21 12:35:22 +0530 | [diff] [blame] | 506 | * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO |
| 507 | * @psoc: pointer to psoc object |
| 508 | * @value: Value that needs to be set from the caller |
| 509 | * |
| 510 | * Inline UCFG API to be used by HDD/OSIF callers |
| 511 | * |
| 512 | * Return: QDF Status |
| 513 | */ |
| 514 | static inline QDF_STATUS |
| 515 | ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, |
| 516 | uint8_t *value) |
| 517 | { |
| 518 | return wlan_mlme_get_wmm_dir_ac_vo(psoc, value); |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal |
| 523 | * MSDU size for VO |
| 524 | * @psoc: pointer to psoc object |
| 525 | * @value: Value that needs to be set from the caller |
| 526 | * |
| 527 | * Inline UCFG API to be used by HDD/OSIF callers |
| 528 | * |
| 529 | * Return: QDF Status |
| 530 | */ |
| 531 | static inline QDF_STATUS |
| 532 | ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc, |
| 533 | uint16_t *value) |
| 534 | { |
| 535 | return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value); |
| 536 | } |
| 537 | |
| 538 | /** |
| 539 | * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO |
| 540 | * @psoc: pointer to psoc object |
| 541 | * @value: Value that needs to be set from the caller |
| 542 | * |
| 543 | * Inline UCFG API to be used by HDD/OSIF callers |
| 544 | * |
| 545 | * Return: QDF Status |
| 546 | */ |
| 547 | static inline QDF_STATUS |
| 548 | ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc, |
| 549 | uint32_t *value) |
| 550 | { |
| 551 | return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value); |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY |
| 556 | * rate for VO |
| 557 | * @psoc: pointer to psoc object |
| 558 | * @value: Value that needs to be set from the caller |
| 559 | * |
| 560 | * Inline UCFG API to be used by HDD/OSIF callers |
| 561 | * |
| 562 | * Return: QDF Status |
| 563 | */ |
| 564 | static inline QDF_STATUS |
| 565 | ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc, |
| 566 | uint32_t *value) |
| 567 | { |
| 568 | return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value); |
| 569 | } |
| 570 | |
| 571 | /** |
| 572 | * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth |
| 573 | * allowance for VO |
| 574 | * @psoc: pointer to psoc object |
| 575 | * @value: Value that needs to be set from the caller |
| 576 | * |
| 577 | * Inline UCFG API to be used by HDD/OSIF callers |
| 578 | * |
| 579 | * Return: QDF Status |
| 580 | */ |
| 581 | static inline QDF_STATUS |
| 582 | ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, |
| 583 | uint16_t *value) |
| 584 | { |
| 585 | return wlan_mlme_get_wmm_sba_ac_vo(psoc, value); |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service |
| 590 | * interval for voice |
| 591 | * @psoc: pointer to psoc object |
| 592 | * @value: pointer to the value which will be filled for the caller |
| 593 | * |
| 594 | * Inline UCFG API to be used by HDD/OSIF callers |
| 595 | * |
| 596 | * Return: QDF Status |
| 597 | */ |
| 598 | static inline QDF_STATUS |
| 599 | ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc, |
| 600 | uint32_t *value) |
| 601 | { |
| 602 | return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value); |
| 603 | } |
| 604 | |
| 605 | /** |
| 606 | * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension |
| 607 | * interval for voice |
| 608 | * @psoc: pointer to psoc object |
| 609 | * @value: Value that needs to be set from the caller |
| 610 | * |
| 611 | * Inline UCFG API to be used by HDD/OSIF callers |
| 612 | * |
| 613 | * Return: QDF Status |
| 614 | */ |
| 615 | static inline QDF_STATUS |
| 616 | ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc, |
| 617 | uint32_t *value) |
| 618 | { |
| 619 | return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value); |
| 620 | } |
| 621 | |
| 622 | /** |
Pragaspathi Thilagaraj | 48d273c | 2018-08-31 00:53:02 +0530 | [diff] [blame] | 623 | * |
| 624 | * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity |
| 625 | * override flag is set. |
| 626 | * @psoc: pointer to psoc object |
| 627 | * @sme_config - Sme config struct |
| 628 | * |
| 629 | * Inline UCFG API to be used by HDD/OSIF callers to call |
| 630 | * the mlme function wlan_mlme_get_sap_inactivity_override |
| 631 | * |
| 632 | * Return: QDF Status |
| 633 | */ |
| 634 | static inline |
| 635 | void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc, |
| 636 | bool *value) |
| 637 | { |
| 638 | wlan_mlme_get_sap_inactivity_override(psoc, value); |
| 639 | } |
| 640 | |
| 641 | /** |
Pragaspathi Thilagaraj | 00bd8bc | 2018-08-18 01:23:01 +0530 | [diff] [blame] | 642 | * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value |
| 643 | * |
| 644 | * @psoc: pointer to psoc object |
| 645 | * @value: Value that needs to be set from the caller |
| 646 | * |
| 647 | * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS |
| 648 | */ |
| 649 | static inline |
| 650 | QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc, |
| 651 | uint8_t *value) |
| 652 | { |
| 653 | return wlan_mlme_get_tx_chainmask_1ss(psoc, value); |
| 654 | } |
| 655 | |
| 656 | /** |
| 657 | * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains |
| 658 | * |
| 659 | * @psoc: pointer to psoc object |
| 660 | * @value: Value that needs to be set from the caller |
| 661 | * |
| 662 | * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS |
| 663 | */ |
| 664 | static inline |
| 665 | QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc, |
| 666 | uint16_t *value) |
| 667 | { |
| 668 | return wlan_mlme_get_num_11b_tx_chains(psoc, value); |
| 669 | } |
| 670 | |
| 671 | /** |
| 672 | * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains |
| 673 | * |
| 674 | * @psoc: pointer to psoc object |
| 675 | * @value: Value that needs to be set from the caller |
| 676 | * |
| 677 | * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS |
| 678 | */ |
| 679 | static inline |
| 680 | QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc, |
| 681 | uint16_t *value) |
| 682 | { |
| 683 | return wlan_mlme_get_num_11ag_tx_chains(psoc, value); |
| 684 | } |
| 685 | |
| 686 | /** |
Pragaspathi Thilagaraj | 4b5c060 | 2018-11-14 22:35:23 +0530 | [diff] [blame] | 687 | * ucfg_mlme_get_bt_chain_separation_flag() - bt chain separation enable/disable |
| 688 | * @psoc: pointer to psoc object |
| 689 | * @value: Value that needs to be got for the caller |
| 690 | * |
| 691 | * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS |
| 692 | */ |
| 693 | static inline |
| 694 | QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc, |
| 695 | bool *value) |
| 696 | { |
| 697 | return wlan_mlme_get_bt_chain_separation_flag(psoc, value); |
| 698 | } |
| 699 | |
| 700 | /** |
Pragaspathi Thilagaraj | 00bd8bc | 2018-08-18 01:23:01 +0530 | [diff] [blame] | 701 | * ucfg_mlme_configure_chain_mask() - configure chainmask parameters |
| 702 | * |
| 703 | * @psoc: pointer to psoc object |
| 704 | * @session_id: vdev_id |
| 705 | * |
| 706 | * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS |
| 707 | */ |
| 708 | static inline |
| 709 | QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc, |
| 710 | uint8_t session_id) |
| 711 | { |
| 712 | return wlan_mlme_configure_chain_mask(psoc, session_id); |
| 713 | } |
| 714 | |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 715 | /* |
| 716 | * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period |
| 717 | * @psoc: pointer to psoc object |
| 718 | * @val: Pointer to the value which will be filled for the caller |
| 719 | * |
| 720 | * Return: QDF Status |
| 721 | */ |
| 722 | QDF_STATUS |
| 723 | ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc, |
| 724 | uint32_t *val); |
| 725 | |
Arif Hussain | 88d1fdd | 2018-09-26 16:12:24 -0700 | [diff] [blame] | 726 | /* |
| 727 | * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability |
| 728 | * @psoc: pointer to psoc object |
| 729 | * @val: Pointer to the value which will be filled for the caller |
| 730 | * |
| 731 | * Return: QDF Status |
| 732 | */ |
| 733 | QDF_STATUS |
| 734 | ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc, |
| 735 | bool *val); |
| 736 | |
Arif Hussain | 224d381 | 2018-11-16 17:58:38 -0800 | [diff] [blame] | 737 | /* |
| 738 | * ucfg_mlme_get_dfs_disable_channel_switch() - Get the dfs channel switch |
| 739 | * @psoc: pointer to psoc object |
| 740 | * @dfs_disable_channel_switch: Pointer to the value which will be filled |
| 741 | * |
| 742 | * Return: QDF Status |
| 743 | */ |
| 744 | QDF_STATUS |
| 745 | ucfg_mlme_get_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc, |
| 746 | bool *dfs_disable_channel_switch); |
| 747 | |
| 748 | /* |
| 749 | * ucfg_mlme_set_dfs_disable_channel_switch() - Set the dfs channel switch |
| 750 | * @psoc: pointer to psoc object |
| 751 | * @dfs_disable_channel_switch: Value that needs to be set. |
| 752 | * |
| 753 | * Return: QDF Status |
| 754 | */ |
| 755 | QDF_STATUS |
| 756 | ucfg_mlme_set_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc, |
| 757 | bool dfs_disable_channel_switch); |
| 758 | /* |
| 759 | * ucfg_mlme_get_dfs_ignore_cac() - GSet the dfs ignore cac |
| 760 | * @psoc: pointer to psoc object |
| 761 | * @dfs_ignore_cac: Pointer to the value which will be filled for the caller |
| 762 | * |
| 763 | * Return: QDF Status |
| 764 | */ |
| 765 | QDF_STATUS |
| 766 | ucfg_mlme_get_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc, |
| 767 | bool *dfs_ignore_cac); |
| 768 | |
| 769 | /* |
| 770 | * ucfg_mlme_set_dfs_ignore_cac() - Set the dfs ignore cac |
| 771 | * @psoc: pointer to psoc object |
| 772 | * @dfs_ignore_cac: Value that needs to be set. |
| 773 | * |
| 774 | * Return: QDF Status |
| 775 | */ |
| 776 | QDF_STATUS |
| 777 | ucfg_mlme_set_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc, |
| 778 | bool dfs_ignore_cac); |
| 779 | |
| 780 | /* |
| 781 | * ucfg_mlme_get_sap_tx_leakage_threshold() - Get sap tx leakage threshold |
| 782 | * @psoc: pointer to psoc object |
| 783 | * @sap_tx_leakage_threshold: Pointer to the value which will be filled |
| 784 | * |
| 785 | * Return: QDF Status |
| 786 | */ |
| 787 | QDF_STATUS |
| 788 | ucfg_mlme_get_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc, |
| 789 | uint32_t *sap_tx_leakage_threshold); |
| 790 | |
| 791 | /* |
| 792 | * ucfg_mlme_set_sap_tx_leakage_threshold() - Set sap tx leakage threshold |
| 793 | * @psoc: pointer to psoc object |
| 794 | * @sap_tx_leakage_threshold: Value that needs to be set. |
| 795 | * |
| 796 | * Return: QDF Status |
| 797 | */ |
| 798 | QDF_STATUS |
| 799 | ucfg_mlme_set_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc, |
| 800 | uint32_t sap_tx_leakage_threshold); |
| 801 | |
| 802 | /* |
| 803 | * ucfg_mlme_get_dfs_filter_offload() - Get the dfs filter offload |
| 804 | * @psoc: pointer to psoc object |
| 805 | * @dfs_filter_offload: Pointer to the value which will be filled |
| 806 | * |
| 807 | * Return: QDF Status |
| 808 | */ |
| 809 | QDF_STATUS |
| 810 | ucfg_mlme_get_dfs_filter_offload(struct wlan_objmgr_psoc *psoc, |
| 811 | bool *dfs_filter_offload); |
| 812 | |
| 813 | /* |
| 814 | * ucfg_mlme_set_dfs_filter_offload() - Set the dfs filter offload |
| 815 | * @psoc: pointer to psoc object |
| 816 | * @dfs_filter_offload: Value that needs to be set. |
| 817 | * |
| 818 | * Return: QDF Status |
| 819 | */ |
| 820 | QDF_STATUS |
| 821 | ucfg_mlme_set_dfs_filter_offload(struct wlan_objmgr_psoc *psoc, |
| 822 | bool dfs_filter_offload); |
| 823 | |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 824 | /** |
Arif Hussain | bd5194c | 2018-11-27 19:01:15 -0800 | [diff] [blame] | 825 | * ucfg_mlme_get_fine_time_meas_cap() - Get fine timing measurement capability |
| 826 | * @psoc: pointer to psoc object |
| 827 | * @fine_time_meas_cap: Pointer to the value which will be filled for the caller |
| 828 | * |
| 829 | * Return: QDF Status |
| 830 | */ |
| 831 | QDF_STATUS |
| 832 | ucfg_mlme_get_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc, |
| 833 | uint32_t *fine_time_meas_cap); |
| 834 | |
| 835 | /** |
| 836 | * ucfg_mlme_set_fine_time_meas_cap() - Set fine timing measurement capability |
| 837 | * @psoc: pointer to psoc object |
| 838 | * @fine_time_meas_cap: Value to be set |
| 839 | * |
| 840 | * Return: QDF Status |
| 841 | */ |
| 842 | QDF_STATUS |
| 843 | ucfg_mlme_set_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc, |
| 844 | uint32_t fine_time_meas_cap); |
| 845 | |
| 846 | /** |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 847 | * ucfg_mlme_get_pmkid_modes() - Get PMKID modes |
| 848 | * @psoc: pointer to psoc object |
| 849 | * @val: Pointer to the value which will be filled for the caller |
| 850 | * |
| 851 | * Return: QDF Status |
| 852 | */ |
| 853 | QDF_STATUS |
| 854 | ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc, |
| 855 | uint32_t *val); |
| 856 | |
| 857 | /** |
| 858 | * ucfg_mlme_set_pmkid_modes() - Set PMKID modes |
| 859 | * @psoc: pointer to psoc object |
| 860 | * @val: Pointer to the value which will be filled for the caller |
| 861 | * |
| 862 | * Return: QDF Status |
| 863 | */ |
| 864 | QDF_STATUS |
| 865 | ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc, |
| 866 | uint32_t val); |
| 867 | |
| 868 | /** |
Arif Hussain | 178f35f | 2018-11-13 18:26:18 -0800 | [diff] [blame] | 869 | * ucfg_mlme_get_twt_requestor() - Get twt requestor |
| 870 | * @psoc: pointer to psoc object |
| 871 | * @val: Pointer to the value which will be filled for the caller |
| 872 | * |
| 873 | * Return: QDF Status |
| 874 | */ |
| 875 | QDF_STATUS |
| 876 | ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc, |
| 877 | bool *val); |
| 878 | |
| 879 | /** |
| 880 | * ucfg_mlme_set_twt_requestor() - Set twt requestor |
| 881 | * @psoc: pointer to psoc object |
| 882 | * @val: value that needs to set to this config |
| 883 | * |
| 884 | * Return: QDF Status |
| 885 | */ |
| 886 | QDF_STATUS |
| 887 | ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc, |
| 888 | bool val); |
| 889 | |
| 890 | /** |
| 891 | * ucfg_mlme_get_twt_responder() - Get twt responder |
| 892 | * @psoc: pointer to psoc object |
| 893 | * @val: Pointer to the value which will be filled for the caller |
| 894 | * |
| 895 | * Return: QDF Status |
| 896 | */ |
| 897 | QDF_STATUS |
| 898 | ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc, |
| 899 | bool *val); |
| 900 | |
| 901 | /** |
| 902 | * ucfg_mlme_set_twt_responder() - Set twt responder |
| 903 | * @psoc: pointer to psoc object |
| 904 | * @val: value that needs to set to this config |
| 905 | * |
| 906 | * Return: QDF Status |
| 907 | */ |
| 908 | QDF_STATUS |
| 909 | ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc, |
| 910 | bool val); |
| 911 | |
| 912 | /** |
| 913 | * ucfg_mlme_get_bcast_twt() - Get bcast twt |
| 914 | * @psoc: pointer to psoc object |
| 915 | * @val: Pointer to the value which will be filled for the caller |
| 916 | * |
| 917 | * Return: QDF Status |
| 918 | */ |
| 919 | QDF_STATUS |
| 920 | ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc, |
| 921 | bool *val); |
| 922 | |
| 923 | /** |
| 924 | * ucfg_mlme_set_bcast_twt() - Set bcast twt |
| 925 | * @psoc: pointer to psoc object |
| 926 | * @val: value that needs to set to this config |
| 927 | * |
| 928 | * Return: QDF Status |
| 929 | */ |
| 930 | QDF_STATUS |
| 931 | ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc, |
| 932 | bool val); |
| 933 | |
| 934 | /** |
| 935 | * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout |
| 936 | * @psoc: pointer to psoc object |
| 937 | * @val: Pointer to the value which will be filled for the caller |
| 938 | * |
| 939 | * Return: QDF Status |
| 940 | */ |
| 941 | QDF_STATUS |
| 942 | ucfg_mlme_get_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc, |
| 943 | uint32_t *val); |
| 944 | |
| 945 | /** |
| 946 | * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout |
| 947 | * @psoc: pointer to psoc object |
| 948 | * @val: value that needs to set to this config |
| 949 | * |
| 950 | * Return: QDF Status |
| 951 | */ |
| 952 | QDF_STATUS |
| 953 | ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc, |
| 954 | uint32_t val); |
| 955 | |
| 956 | /** |
| 957 | * ucfg_mlme_get_enable_twt() - Get global twt config support |
| 958 | * @psoc: pointer to psoc object |
| 959 | * @val: Pointer to the value which will be filled for the caller |
| 960 | * |
| 961 | * Return: QDF Status |
| 962 | */ |
| 963 | QDF_STATUS |
| 964 | ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc, |
| 965 | bool *val); |
| 966 | |
| 967 | /** |
| 968 | * ucfg_mlme_set_enable_twt() - Set global twt config support |
| 969 | * @psoc: pointer to psoc object |
| 970 | * @val: value that needs to set to this config |
| 971 | * |
| 972 | * Return: QDF Status |
| 973 | */ |
| 974 | QDF_STATUS |
| 975 | ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc, |
| 976 | bool val); |
| 977 | |
| 978 | /** |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 979 | * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode |
| 980 | * @psoc: pointer to psoc object |
Dustin Brown | 686d303 | 2018-10-17 16:58:50 -0700 | [diff] [blame] | 981 | * @out_mode: Pointer to the mode which will be filled for the caller |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 982 | * |
| 983 | * Return: QDF Status |
| 984 | */ |
| 985 | QDF_STATUS |
| 986 | ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc, |
Dustin Brown | 686d303 | 2018-10-17 16:58:50 -0700 | [diff] [blame] | 987 | enum dot11p_mode *out_mode); |
Wu Gao | 406c53c | 2018-09-10 13:51:37 +0800 | [diff] [blame] | 988 | |
| 989 | /** |
| 990 | * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self |
| 991 | * @psoc: pointer to psoc object |
| 992 | * @val: Pointer to the value which will be filled for the caller |
| 993 | * |
| 994 | * Return: QDF Status |
| 995 | */ |
| 996 | QDF_STATUS |
| 997 | ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc, |
| 998 | bool *val); |
| 999 | |
| 1000 | /** |
| 1001 | * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user |
| 1002 | * @psoc: pointer to psoc object |
| 1003 | * @val: Pointer to the value which will be filled for the caller |
| 1004 | * |
| 1005 | * Return: QDF Status |
| 1006 | */ |
| 1007 | QDF_STATUS |
| 1008 | ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc, |
| 1009 | bool *val); |
| 1010 | |
| 1011 | /** |
| 1012 | * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not |
| 1013 | * @psoc: pointer to psoc object |
| 1014 | * @val: Pointer to the value which will be filled for the caller |
| 1015 | * |
| 1016 | * Return: QDF Status |
| 1017 | */ |
| 1018 | QDF_STATUS |
| 1019 | ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc, |
| 1020 | bool *val); |
| 1021 | |
| 1022 | /** |
| 1023 | * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config |
| 1024 | * @psoc: pointer to psoc object |
| 1025 | * @val: Pointer to the value which will be filled for the caller |
| 1026 | * |
| 1027 | * Return: QDF Status |
| 1028 | */ |
| 1029 | QDF_STATUS |
| 1030 | ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc, |
| 1031 | uint32_t *val); |
Wu Gao | 55f2171 | 2018-09-17 10:57:49 +0800 | [diff] [blame] | 1032 | |
| 1033 | /** |
Wu Gao | fc81ecf | 2018-11-22 11:38:41 +0800 | [diff] [blame] | 1034 | * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not |
| 1035 | * @psoc: pointer to psoc object |
| 1036 | * @val: Pointer to the value which will be filled for the caller |
| 1037 | * |
| 1038 | * Return: QDF Status |
| 1039 | */ |
| 1040 | QDF_STATUS |
| 1041 | ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val); |
| 1042 | |
Wu Gao | 5d23d78 | 2018-11-08 16:09:47 +0800 | [diff] [blame] | 1043 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
Wu Gao | fc81ecf | 2018-11-22 11:38:41 +0800 | [diff] [blame] | 1044 | /** |
Wu Gao | 55f2171 | 2018-09-17 10:57:49 +0800 | [diff] [blame] | 1045 | * ucfg_mlme_get_roaming_offload() - Get roaming offload setting |
| 1046 | * @psoc: pointer to psoc object |
| 1047 | * @val: Pointer to enable/disable roaming offload |
| 1048 | * |
| 1049 | * Return: QDF Status |
| 1050 | */ |
| 1051 | QDF_STATUS |
| 1052 | ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc, |
| 1053 | bool *val); |
| 1054 | |
| 1055 | /** |
| 1056 | * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload |
| 1057 | * @psoc: pointer to psoc object |
| 1058 | * @val: enable/disable roaming offload |
| 1059 | * |
| 1060 | * Return: QDF Status |
| 1061 | */ |
| 1062 | QDF_STATUS |
| 1063 | ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc, |
| 1064 | bool val); |
Jianmin Zhu | 462ab86 | 2019-02-21 11:14:49 +0800 | [diff] [blame] | 1065 | #else |
| 1066 | static inline QDF_STATUS |
| 1067 | ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc, |
| 1068 | bool *val) |
| 1069 | { |
| 1070 | *val = false; |
Wu Gao | 55f2171 | 2018-09-17 10:57:49 +0800 | [diff] [blame] | 1071 | |
Jianmin Zhu | 462ab86 | 2019-02-21 11:14:49 +0800 | [diff] [blame] | 1072 | return QDF_STATUS_SUCCESS; |
| 1073 | } |
| 1074 | |
| 1075 | static inline QDF_STATUS |
| 1076 | ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc, |
| 1077 | bool val) |
| 1078 | { |
| 1079 | return QDF_STATUS_SUCCESS; |
| 1080 | } |
| 1081 | #endif |
Pragaspathi Thilagaraj | eb36728 | 2019-02-19 00:42:28 +0530 | [diff] [blame] | 1082 | |
Wu Gao | 55f2171 | 2018-09-17 10:57:49 +0800 | [diff] [blame] | 1083 | /** |
| 1084 | * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre |
| 1085 | * @psoc: pointer to psoc object |
| 1086 | * @val: first scan bucket threshold |
| 1087 | * |
| 1088 | * Return: QDF Status |
| 1089 | */ |
| 1090 | QDF_STATUS |
| 1091 | ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc, |
| 1092 | uint8_t *val); |
Arif Hussain | 41cbc1e | 2018-11-15 05:54:45 -0800 | [diff] [blame] | 1093 | |
| 1094 | /** |
Pragaspathi Thilagaraj | eb36728 | 2019-02-19 00:42:28 +0530 | [diff] [blame] | 1095 | * ucfg_mlme_set_fw_supported_roaming_akm() - update the supported roaming |
| 1096 | * akm suites advertised by the firmware via wmi service capability |
| 1097 | * @psoc: pointer to psoc object |
| 1098 | * @val: bitmap value based on firmware capabilities |
| 1099 | * |
| 1100 | * Return: QDF Status |
| 1101 | */ |
| 1102 | QDF_STATUS |
| 1103 | ucfg_mlme_set_fw_supported_roaming_akm(struct wlan_objmgr_psoc *psoc, |
| 1104 | uint32_t val); |
| 1105 | |
| 1106 | /** |
Wu Gao | 5d23d78 | 2018-11-08 16:09:47 +0800 | [diff] [blame] | 1107 | * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not |
| 1108 | * @psoc: pointer to psoc object |
| 1109 | * @val: Pointer to the value which will be filled for the caller |
| 1110 | * |
| 1111 | * Return: QDF Status |
| 1112 | */ |
| 1113 | QDF_STATUS |
| 1114 | ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val); |
| 1115 | |
| 1116 | /** |
| 1117 | * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable |
| 1118 | * @psoc: pointer to psoc object |
| 1119 | * @val: enable or disable MAWC |
| 1120 | * |
| 1121 | * Return: QDF Status |
| 1122 | */ |
| 1123 | QDF_STATUS |
| 1124 | ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val); |
| 1125 | |
| 1126 | /** |
| 1127 | * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not |
| 1128 | * @psoc: pointer to psoc object |
| 1129 | * @val: Pointer to the value which will be filled for the caller |
| 1130 | * |
| 1131 | * Return: QDF Status |
| 1132 | */ |
| 1133 | QDF_STATUS |
| 1134 | ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc, |
| 1135 | bool *val); |
| 1136 | |
| 1137 | /** |
| 1138 | * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable |
| 1139 | * @psoc: pointer to psoc object |
| 1140 | * @val: Fast transition enable or disable |
| 1141 | * |
| 1142 | * Return: QDF Status |
| 1143 | */ |
| 1144 | QDF_STATUS |
| 1145 | ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc, |
| 1146 | bool val); |
| 1147 | |
| 1148 | /** |
| 1149 | * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not |
| 1150 | * @psoc: pointer to psoc object |
| 1151 | * @val: Pointer to the value which will be filled for the caller |
| 1152 | * |
| 1153 | * Return: QDF Status |
| 1154 | */ |
| 1155 | QDF_STATUS |
| 1156 | ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc, |
| 1157 | bool *val); |
| 1158 | |
Pragaspathi Thilagaraj | 1f3f99f | 2019-04-24 23:48:47 +0530 | [diff] [blame^] | 1159 | #ifdef WLAN_ADAPTIVE_11R |
| 1160 | /** |
| 1161 | * ucfg_mlme_set_tgt_adaptive_11r_cap() - Set adaptive 11r target service |
| 1162 | * capability |
| 1163 | * @psoc: pointer to psoc object |
| 1164 | * @val: Target capability of adaptive 11r |
| 1165 | * |
| 1166 | * Return: QDF Status |
| 1167 | */ |
| 1168 | QDF_STATUS |
| 1169 | ucfg_mlme_set_tgt_adaptive_11r_cap(struct wlan_objmgr_psoc *psoc, |
| 1170 | bool val); |
| 1171 | #else |
| 1172 | static inline QDF_STATUS |
| 1173 | ucfg_mlme_set_tgt_adaptive_11r_cap(struct wlan_objmgr_psoc *psoc, |
| 1174 | bool val) |
| 1175 | { |
| 1176 | return QDF_STATUS_SUCCESS; |
| 1177 | } |
| 1178 | #endif |
| 1179 | |
Wu Gao | 5d23d78 | 2018-11-08 16:09:47 +0800 | [diff] [blame] | 1180 | /** |
| 1181 | * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable |
| 1182 | * @psoc: pointer to psoc object |
| 1183 | * @val: Roam scan offload enable or disable |
| 1184 | * |
| 1185 | * Return: QDF Status |
| 1186 | */ |
| 1187 | QDF_STATUS |
| 1188 | ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc, |
| 1189 | bool val); |
| 1190 | |
| 1191 | /** |
| 1192 | * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max |
| 1193 | * channel time |
| 1194 | * @psoc: pointer to psoc object |
| 1195 | * @val: Pointer to the value which will be filled for the caller |
| 1196 | * |
| 1197 | * Return: QDF Status |
| 1198 | */ |
| 1199 | QDF_STATUS |
| 1200 | ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc, |
| 1201 | uint16_t *val); |
| 1202 | |
| 1203 | /** |
| 1204 | * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min |
| 1205 | * channel time |
| 1206 | * @psoc: pointer to psoc object |
| 1207 | * @val: Pointer to the value which will be filled for the caller |
| 1208 | * |
| 1209 | * Return: QDF Status |
| 1210 | */ |
| 1211 | QDF_STATUS |
| 1212 | ucfg_mlme_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc, |
| 1213 | uint16_t *val); |
| 1214 | |
| 1215 | /** |
| 1216 | * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop |
| 1217 | * @psoc: pointer to psoc object |
| 1218 | * @val: Pointer to the value which will be filled for the caller |
| 1219 | * |
| 1220 | * Return: QDF Status |
| 1221 | */ |
| 1222 | QDF_STATUS |
| 1223 | ucfg_mlme_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc, |
| 1224 | uint8_t *val); |
| 1225 | |
| 1226 | /** |
| 1227 | * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count |
| 1228 | * @psoc: pointer to psoc object |
| 1229 | * @val: Pointer to the value which will be filled for the caller |
| 1230 | * |
| 1231 | * Return: QDF Status |
| 1232 | */ |
| 1233 | QDF_STATUS |
| 1234 | ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc, |
| 1235 | uint8_t *val); |
| 1236 | /** |
| 1237 | * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count |
| 1238 | * @psoc: pointer to psoc object |
| 1239 | * @val: Pointer to the value which will be filled for the caller |
| 1240 | * |
| 1241 | * Return: QDF Status |
| 1242 | */ |
| 1243 | QDF_STATUS |
| 1244 | ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc, |
| 1245 | uint8_t *val); |
| 1246 | |
| 1247 | /** |
| 1248 | * ucfg_mlme_is_lfr_enabled() - LFR enable or not |
| 1249 | * @psoc: pointer to psoc object |
| 1250 | * @val: Pointer to the value which will be filled for the caller |
| 1251 | * |
| 1252 | * Return: QDF Status |
| 1253 | */ |
| 1254 | QDF_STATUS |
| 1255 | ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val); |
| 1256 | |
| 1257 | /** |
| 1258 | * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR |
| 1259 | * @psoc: pointer to psoc object |
| 1260 | * @val: Enable or disable LFR |
| 1261 | * |
| 1262 | * Return: QDF Status |
| 1263 | */ |
| 1264 | QDF_STATUS |
| 1265 | ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val); |
| 1266 | |
| 1267 | /** |
| 1268 | * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not |
| 1269 | * @psoc: pointer to psoc object |
| 1270 | * @val: Pointer to the value which will be filled for the caller |
| 1271 | * |
| 1272 | * Return: QDF Status |
| 1273 | */ |
| 1274 | QDF_STATUS |
| 1275 | ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val); |
| 1276 | |
| 1277 | /** |
| 1278 | * ucfg_mlme_set_roam_intra_band() - Set roam intra modes |
| 1279 | * @psoc: pointer to psoc object |
| 1280 | * @val: roam intra modes or not |
| 1281 | * |
| 1282 | * Return: QDF Status |
| 1283 | */ |
| 1284 | QDF_STATUS |
| 1285 | ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val); |
| 1286 | |
| 1287 | /** |
| 1288 | * ucfg_mlme_get_home_away_time() - Get home away time |
| 1289 | * @psoc: pointer to psoc object |
| 1290 | * @val: Pointer to the value which will be filled for the caller |
| 1291 | * |
| 1292 | * Return: QDF Status |
| 1293 | */ |
| 1294 | QDF_STATUS |
| 1295 | ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val); |
| 1296 | |
| 1297 | /** |
| 1298 | * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in |
| 1299 | * concurrency |
| 1300 | * @psoc: pointer to psoc object |
| 1301 | * @val: Enable or disable fast roam in concurrency |
| 1302 | * |
| 1303 | * Return: QDF Status |
| 1304 | */ |
| 1305 | QDF_STATUS |
| 1306 | ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc, |
| 1307 | bool val); |
| 1308 | |
| 1309 | /** |
Arif Hussain | 4966f69 | 2018-11-27 16:40:51 -0800 | [diff] [blame] | 1310 | * ucfg_mlme_get_wmi_wq_watchdog_timeout() - Get timeout for wmi watchdog bite |
| 1311 | * @psoc: pointer to psoc object |
| 1312 | * @wmi_wq_watchdog_timeout: buffer to hold value |
| 1313 | * |
| 1314 | * Return: QDF Status |
| 1315 | */ |
| 1316 | QDF_STATUS |
| 1317 | ucfg_mlme_get_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc, |
| 1318 | uint32_t *wmi_wq_watchdog_timeout); |
| 1319 | |
| 1320 | /** |
| 1321 | * ucfg_mlme_set_wmi_wq_watchdog_timeout() - Set timeout for wmi watchdog bite |
| 1322 | * @psoc: pointer to psoc object |
| 1323 | * @wmi_wq_watchdog_timeout: value to be set |
| 1324 | * |
| 1325 | * Return: QDF Status |
| 1326 | */ |
| 1327 | QDF_STATUS |
| 1328 | ucfg_mlme_set_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc, |
| 1329 | uint32_t wmi_wq_watchdog_timeout); |
| 1330 | |
| 1331 | /** |
Arif Hussain | 41cbc1e | 2018-11-15 05:54:45 -0800 | [diff] [blame] | 1332 | * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout |
| 1333 | * @psoc: pointer to psoc object |
| 1334 | * @inactivity_timeout: buffer to hold value |
| 1335 | * |
| 1336 | * Return: QDF Status |
| 1337 | */ |
| 1338 | QDF_STATUS |
| 1339 | ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc, |
| 1340 | uint32_t *inactivity_timeout); |
| 1341 | |
| 1342 | /** |
| 1343 | * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout |
| 1344 | * @psoc: pointer to psoc object |
| 1345 | * @inactivity_timeout: value to be set |
| 1346 | * |
| 1347 | * Return: QDF Status |
| 1348 | */ |
| 1349 | QDF_STATUS |
| 1350 | ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc, |
| 1351 | uint32_t inactivity_timeout); |
| 1352 | |
Bala Venkatesh | 2fde2c6 | 2018-09-11 20:33:24 +0530 | [diff] [blame] | 1353 | /** |
| 1354 | * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval |
| 1355 | * @psoc: pointer to psoc object |
| 1356 | * @value: Value that needs to be set from the caller |
| 1357 | * |
| 1358 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1359 | * |
| 1360 | * Return: QDF Status |
| 1361 | */ |
| 1362 | static inline |
| 1363 | QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc, |
| 1364 | int value) |
| 1365 | { |
| 1366 | return wlan_mlme_set_sap_listen_interval(psoc, value); |
| 1367 | } |
| 1368 | |
| 1369 | /** |
| 1370 | * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit |
| 1371 | * @psoc: pointer to psoc object |
| 1372 | * @value: Value that needs to be set from the caller |
| 1373 | * |
| 1374 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1375 | * |
| 1376 | * Return: QDF Status |
| 1377 | */ |
| 1378 | static inline |
| 1379 | QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc, |
| 1380 | int value) |
| 1381 | { |
| 1382 | return wlan_mlme_set_assoc_sta_limit(psoc, value); |
| 1383 | } |
| 1384 | |
| 1385 | /** |
| 1386 | * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency |
| 1387 | * @psoc: pointer to psoc object |
| 1388 | * @value: Value that needs to be set from the caller |
| 1389 | * |
| 1390 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1391 | * |
| 1392 | * Return: QDF Status |
| 1393 | */ |
| 1394 | static inline |
| 1395 | QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc, |
| 1396 | int value) |
| 1397 | { |
| 1398 | return wlan_mlme_set_rmc_action_period_freq(psoc, value); |
| 1399 | } |
| 1400 | |
| 1401 | /** |
Nachiket Kukade | 6159553 | 2019-01-23 19:09:36 +0530 | [diff] [blame] | 1402 | * ucfg_mlme_get_listen_interval() - Get listen interval |
| 1403 | * @psoc: pointer to psoc object |
| 1404 | * @value: Pointer to variable that needs to be filled by MLME |
| 1405 | * |
| 1406 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1407 | * |
| 1408 | * Return: QDF Status |
| 1409 | */ |
| 1410 | static inline |
| 1411 | QDF_STATUS ucfg_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc, |
| 1412 | int *value) |
| 1413 | { |
| 1414 | return wlan_mlme_get_listen_interval(psoc, value); |
| 1415 | } |
| 1416 | |
| 1417 | |
| 1418 | /** |
Bala Venkatesh | 2fde2c6 | 2018-09-11 20:33:24 +0530 | [diff] [blame] | 1419 | * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info |
| 1420 | * @psoc: pointer to psoc object |
| 1421 | * @value: Value that needs to be set from the caller |
| 1422 | * |
| 1423 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1424 | * |
| 1425 | * Return: QDF Status |
| 1426 | */ |
| 1427 | static inline |
| 1428 | QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc, |
| 1429 | bool *value) |
| 1430 | { |
| 1431 | return wlan_mlme_get_sap_get_peer_info(psoc, value); |
| 1432 | } |
| 1433 | |
| 1434 | /** |
Will Huang | b9cb124 | 2019-04-02 14:52:17 +0800 | [diff] [blame] | 1435 | * ucfg_mlme_set_sap_get_peer_info() - set the sap get peer info |
| 1436 | * @psoc: pointer to psoc object |
| 1437 | * @value: value to overwrite the sap get peer info |
| 1438 | * |
| 1439 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1440 | * |
| 1441 | * Return: QDF Status |
| 1442 | */ |
| 1443 | static inline |
| 1444 | QDF_STATUS ucfg_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc, |
| 1445 | bool value) |
| 1446 | { |
| 1447 | return wlan_mlme_set_sap_get_peer_info(psoc, value); |
| 1448 | } |
| 1449 | |
| 1450 | /** |
Harprit Chhabada | e574255 | 2019-03-21 16:28:48 -0700 | [diff] [blame] | 1451 | * ucfg_mlme_is_sap_bcast_deauth_enabled() - get the sap bcast deauth |
| 1452 | * enabled value |
| 1453 | * @psoc: pointer to psoc object |
| 1454 | * @value: Value that needs to be get from the caller |
| 1455 | * |
| 1456 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1457 | * |
| 1458 | * Return: QDF Status |
| 1459 | */ |
| 1460 | static inline QDF_STATUS |
| 1461 | ucfg_mlme_is_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc, |
| 1462 | bool *value) |
| 1463 | { |
| 1464 | return wlan_mlme_is_sap_bcast_deauth_enabled(psoc, value); |
| 1465 | } |
| 1466 | |
| 1467 | /** |
Bala Venkatesh | 2fde2c6 | 2018-09-11 20:33:24 +0530 | [diff] [blame] | 1468 | * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels |
| 1469 | * @psoc: pointer to psoc object |
| 1470 | * @value: Value that needs to be set from the caller |
| 1471 | * |
| 1472 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1473 | * |
| 1474 | * Return: QDF Status |
| 1475 | */ |
| 1476 | static inline |
| 1477 | QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc, |
| 1478 | bool *value) |
| 1479 | { |
| 1480 | return wlan_mlme_get_sap_allow_all_channels(psoc, value); |
| 1481 | } |
| 1482 | |
| 1483 | /** |
| 1484 | * ucfg_mlme_get_sap_max_peers() - get the sap max peers |
| 1485 | * @psoc: pointer to psoc object |
| 1486 | * @value: Value that needs to be set from the caller |
| 1487 | * |
| 1488 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1489 | * |
| 1490 | * Return: QDF Status |
| 1491 | */ |
| 1492 | static inline |
| 1493 | QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc, |
| 1494 | int *value) |
| 1495 | { |
| 1496 | return wlan_mlme_get_sap_max_peers(psoc, value); |
| 1497 | } |
| 1498 | |
| 1499 | /** |
| 1500 | * ucfg_mlme_set_sap_max_peers() - Set the sap max peers |
| 1501 | * @psoc: pointer to psoc object |
| 1502 | * @value: Value that needs to be set from the caller |
| 1503 | * |
| 1504 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1505 | * |
| 1506 | * Return: QDF Status |
| 1507 | */ |
| 1508 | static inline |
| 1509 | QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value) |
| 1510 | { |
| 1511 | return wlan_mlme_set_sap_max_peers(psoc, value); |
| 1512 | } |
| 1513 | |
| 1514 | /** |
| 1515 | * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers |
| 1516 | * @psoc: pointer to psoc object |
| 1517 | * @value: Value that needs to be set from the caller |
| 1518 | * |
| 1519 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1520 | * |
| 1521 | * Return: QDF Status |
| 1522 | */ |
| 1523 | static inline |
| 1524 | QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc, |
| 1525 | int *value) |
| 1526 | { |
| 1527 | return wlan_mlme_get_sap_max_offload_peers(psoc, value); |
| 1528 | } |
| 1529 | |
| 1530 | /** |
| 1531 | * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload |
| 1532 | * reorder buffs |
| 1533 | * @psoc: pointer to psoc object |
| 1534 | * @value: Value that needs to be set from the caller |
| 1535 | * |
| 1536 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1537 | * |
| 1538 | * Return: QDF Status |
| 1539 | */ |
| 1540 | static inline |
| 1541 | QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc |
| 1542 | *psoc, int *value) |
| 1543 | { |
| 1544 | return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value); |
| 1545 | } |
| 1546 | |
| 1547 | /** |
| 1548 | * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel |
| 1549 | * switch beacon count |
| 1550 | * @psoc: pointer to psoc object |
| 1551 | * @value: Value that needs to be set from the caller |
| 1552 | * |
| 1553 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1554 | * |
| 1555 | * Return: QDF Status |
| 1556 | */ |
| 1557 | static inline |
| 1558 | QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc, |
| 1559 | int *value) |
| 1560 | { |
| 1561 | return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value); |
| 1562 | } |
| 1563 | |
| 1564 | /** |
| 1565 | * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode |
| 1566 | * @psoc: pointer to psoc object |
| 1567 | * @value: Value that needs to be set from the caller |
| 1568 | * |
| 1569 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1570 | * |
| 1571 | * Return: QDF Status |
| 1572 | */ |
| 1573 | static inline |
| 1574 | QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc, |
| 1575 | bool *value) |
| 1576 | { |
| 1577 | return wlan_mlme_get_sap_chn_switch_mode(psoc, value); |
| 1578 | } |
| 1579 | |
| 1580 | /** |
| 1581 | * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value |
| 1582 | * @psoc: pointer to psoc object |
| 1583 | * @value: Value that needs to be set from the caller |
| 1584 | * |
| 1585 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1586 | * |
| 1587 | * Return: QDF Status |
| 1588 | */ |
| 1589 | static inline |
| 1590 | QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc, |
| 1591 | bool *value) |
| 1592 | { |
| 1593 | return wlan_mlme_get_sap_internal_restart(psoc, value); |
| 1594 | } |
| 1595 | |
| 1596 | /** |
Bala Venkatesh | 46e2903 | 2018-11-14 18:24:55 +0530 | [diff] [blame] | 1597 | * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim |
| 1598 | * @psoc: pointer to psoc object |
| 1599 | * @value: Value that needs to be set from the caller |
| 1600 | * |
| 1601 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1602 | * |
| 1603 | * Return: QDF Status |
| 1604 | */ |
| 1605 | static inline |
| 1606 | QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc, |
| 1607 | uint8_t *value) |
| 1608 | { |
| 1609 | return wlan_mlme_get_sap_max_modulated_dtim(psoc, value); |
| 1610 | } |
| 1611 | |
| 1612 | /** |
| 1613 | * ucfg_mlme_get_pref_chan_location() - get sap pref chan location |
| 1614 | * @psoc: pointer to psoc object |
| 1615 | * @value: Value that needs to be set from the caller |
| 1616 | * |
| 1617 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1618 | * |
| 1619 | * Return: QDF Status |
| 1620 | */ |
| 1621 | static inline |
| 1622 | QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc, |
| 1623 | uint8_t *value) |
| 1624 | { |
| 1625 | return wlan_mlme_get_sap_chan_pref_location(psoc, value); |
| 1626 | } |
| 1627 | |
| 1628 | /** |
| 1629 | * ucfg_mlme_get_sap_country_priority() - get sap country code priority |
| 1630 | * @psoc: pointer to psoc object |
| 1631 | * @value: Value that needs to be set from the caller |
| 1632 | * |
| 1633 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1634 | * |
| 1635 | * Return: QDF Status |
| 1636 | */ |
| 1637 | static inline |
| 1638 | QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc, |
| 1639 | bool *value) |
| 1640 | { |
| 1641 | return wlan_mlme_get_sap_country_priority(psoc, value); |
| 1642 | } |
| 1643 | |
| 1644 | /** |
Bala Venkatesh | 2fde2c6 | 2018-09-11 20:33:24 +0530 | [diff] [blame] | 1645 | * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon |
| 1646 | * interval |
| 1647 | * @psoc: pointer to psoc object |
| 1648 | * @value: Value that needs to be set from the caller |
| 1649 | * |
| 1650 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1651 | * |
| 1652 | * Return: QDF Status |
| 1653 | */ |
| 1654 | static inline |
| 1655 | QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc |
| 1656 | *psoc, int *value) |
| 1657 | { |
| 1658 | return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value); |
| 1659 | } |
| 1660 | |
| 1661 | /** |
| 1662 | * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel |
| 1663 | * switch rate enabled. |
| 1664 | * @psoc: pointer to psoc object |
| 1665 | * @value: Value that needs to be set from the caller |
| 1666 | * |
| 1667 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1668 | * |
| 1669 | * Return: QDF Status |
| 1670 | */ |
| 1671 | static inline |
| 1672 | QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc |
| 1673 | *psoc, bool *value) |
| 1674 | { |
| 1675 | return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value); |
| 1676 | } |
| 1677 | |
Karthik Kantamneni | 2231a23 | 2018-09-11 15:45:55 +0530 | [diff] [blame] | 1678 | /** |
Bala Venkatesh | 3d786eb | 2018-11-20 12:59:31 +0530 | [diff] [blame] | 1679 | * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac |
| 1680 | * |
| 1681 | * @psoc: pointer to psoc object |
| 1682 | * @value: Value that needs to be set from the caller |
| 1683 | * |
| 1684 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1685 | * |
| 1686 | * Return: QDF Status |
| 1687 | */ |
| 1688 | static inline |
| 1689 | QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc |
| 1690 | *psoc, bool *value) |
| 1691 | { |
| 1692 | return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value); |
| 1693 | } |
| 1694 | |
| 1695 | /** |
| 1696 | * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac |
| 1697 | * |
| 1698 | * @psoc: pointer to psoc object |
| 1699 | * @value: Value that needs to be set from the caller |
| 1700 | * |
| 1701 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1702 | * |
| 1703 | * Return: QDF Status |
| 1704 | */ |
| 1705 | static inline |
| 1706 | QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc |
| 1707 | *psoc, bool *value) |
| 1708 | { |
| 1709 | return wlan_mlme_get_go_force_11n_for_11ac(psoc, value); |
| 1710 | } |
| 1711 | |
| 1712 | /** |
Sandeep Puligilla | 3461878 | 2019-01-04 17:42:42 -0800 | [diff] [blame] | 1713 | * ucfg_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP |
| 1714 | * |
| 1715 | * @psoc: pointer to psoc object |
| 1716 | * @value: Value that needs to be set from the caller |
| 1717 | * |
| 1718 | * Return: QDF Status |
| 1719 | */ |
| 1720 | static inline |
| 1721 | QDF_STATUS ucfg_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc, |
| 1722 | bool *value) |
| 1723 | { |
| 1724 | return wlan_mlme_is_sap_11ac_override(psoc, value); |
| 1725 | } |
| 1726 | |
| 1727 | /** |
| 1728 | * ucfg_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO |
| 1729 | * |
| 1730 | * @psoc: pointer to psoc object |
| 1731 | * @value: pointer to the value which will be filled for the caller |
| 1732 | * |
| 1733 | * Return: QDF Status |
| 1734 | */ |
| 1735 | static inline |
| 1736 | QDF_STATUS ucfg_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc, |
| 1737 | bool *value) |
| 1738 | { |
| 1739 | return wlan_mlme_is_go_11ac_override(psoc, value); |
| 1740 | } |
| 1741 | |
| 1742 | /** |
| 1743 | * ucfg_mlme_set_sap_11ac_override() - Set override 11ac bandwdith for SAP |
| 1744 | * |
| 1745 | * @psoc: pointer to psoc object |
| 1746 | * @value: Value that needs to be set from the caller |
| 1747 | * |
| 1748 | * Return: QDF Status |
| 1749 | */ |
| 1750 | static inline |
| 1751 | QDF_STATUS ucfg_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc, |
| 1752 | bool value) |
| 1753 | { |
| 1754 | return wlan_mlme_set_sap_11ac_override(psoc, value); |
| 1755 | } |
| 1756 | |
| 1757 | /** |
| 1758 | * ucfg_mlme_set_go_11ac_override() - Set override 11ac bandwdith for P2P GO |
| 1759 | * |
| 1760 | * @psoc: pointer to psoc object |
| 1761 | * @value: pointer to the value which will be filled for the caller |
| 1762 | * |
| 1763 | * Return: QDF Status |
| 1764 | */ |
| 1765 | static inline |
| 1766 | QDF_STATUS ucfg_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc, |
| 1767 | bool value) |
| 1768 | { |
| 1769 | return wlan_mlme_set_go_11ac_override(psoc, value); |
| 1770 | } |
| 1771 | |
| 1772 | /** |
Karthik Kantamneni | 2231a23 | 2018-09-11 15:45:55 +0530 | [diff] [blame] | 1773 | * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable |
| 1774 | * info for STA |
| 1775 | * |
| 1776 | * @psoc: pointer to psoc object |
| 1777 | * @value: pointer to the value which will be filled for the caller |
| 1778 | * |
| 1779 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1780 | * OCE STA feature enable value |
| 1781 | * |
| 1782 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1783 | */ |
| 1784 | static inline |
| 1785 | QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc, |
| 1786 | bool *value) |
| 1787 | { |
| 1788 | return wlan_mlme_get_oce_sta_enabled_info(psoc, value); |
| 1789 | } |
| 1790 | |
| 1791 | /** |
| 1792 | * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable |
| 1793 | * info for SAP |
| 1794 | * |
| 1795 | * @psoc: pointer to psoc object |
| 1796 | * @value: pointer to the value which will be filled for the caller |
| 1797 | * |
| 1798 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1799 | * OCE SAP feature enable value |
| 1800 | * |
| 1801 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1802 | */ |
| 1803 | static inline |
| 1804 | QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc, |
| 1805 | bool *value) |
| 1806 | { |
| 1807 | return wlan_mlme_get_oce_sap_enabled_info(psoc, value); |
| 1808 | } |
| 1809 | |
| 1810 | /** |
Pragaspathi Thilagaraj | f37f393 | 2019-01-11 00:25:43 +0530 | [diff] [blame] | 1811 | * ucfg_mlme_is_ap_prot_enabled() - Check if sap is enabled |
| 1812 | * @psoc: pointer to psoc object |
| 1813 | * |
| 1814 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1815 | * sap protection enabled/disabled |
| 1816 | * |
| 1817 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1818 | */ |
| 1819 | static inline |
| 1820 | bool ucfg_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc) |
| 1821 | { |
| 1822 | return wlan_mlme_is_ap_prot_enabled(psoc); |
| 1823 | } |
| 1824 | |
| 1825 | /** |
Pragaspathi Thilagaraj | 4b5c060 | 2018-11-14 22:35:23 +0530 | [diff] [blame] | 1826 | * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info |
| 1827 | * @psoc: pointer to psoc object |
| 1828 | * @value: pointer to the value which will be filled for the caller |
| 1829 | * |
| 1830 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1831 | * ap protection mode value |
| 1832 | * |
| 1833 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1834 | */ |
| 1835 | static inline |
| 1836 | QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc, |
| 1837 | uint16_t *value) |
| 1838 | { |
| 1839 | return wlan_mlme_get_ap_protection_mode(psoc, value); |
| 1840 | } |
| 1841 | |
| 1842 | /** |
| 1843 | * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable |
| 1844 | * @psoc: pointer to psoc object |
| 1845 | * @value: pointer to the value which will be filled for the caller |
| 1846 | * |
| 1847 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1848 | * obss protection enable value |
| 1849 | * |
| 1850 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1851 | */ |
| 1852 | static inline |
| 1853 | QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc, |
| 1854 | bool *value) |
| 1855 | { |
| 1856 | return wlan_mlme_is_ap_obss_prot_enabled(psoc, value); |
| 1857 | } |
| 1858 | |
| 1859 | /** |
Harprit Chhabada | bec6de4 | 2018-09-10 10:21:15 -0700 | [diff] [blame] | 1860 | * ucfg_mlme_get_rts_threshold() - Get the rts threshold config |
| 1861 | * @psoc: pointer to psoc object |
| 1862 | * @value: pointer to the value which will be filled for the caller |
| 1863 | * |
| 1864 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1865 | * |
| 1866 | * Return: QDF Status |
| 1867 | */ |
| 1868 | static inline |
| 1869 | QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc, |
| 1870 | uint32_t *value) |
| 1871 | { |
| 1872 | return wlan_mlme_get_rts_threshold(psoc, value); |
| 1873 | } |
| 1874 | |
| 1875 | /** |
| 1876 | * ucfg_mlme_set_rts_threshold() - Set the rts threshold config |
| 1877 | * @psoc: pointer to psoc object |
| 1878 | * @value: pointer to the value which will be filled for the caller |
| 1879 | * |
| 1880 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1881 | * |
| 1882 | * Return: QDF Status |
| 1883 | */ |
| 1884 | static inline |
| 1885 | QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc, |
| 1886 | uint32_t value) |
| 1887 | { |
| 1888 | return wlan_mlme_set_rts_threshold(psoc, value); |
| 1889 | } |
| 1890 | |
| 1891 | /** |
| 1892 | * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold |
| 1893 | * config |
| 1894 | * @psoc: pointer to psoc object |
| 1895 | * @value: Value that needs to be set from the caller |
| 1896 | * |
| 1897 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1898 | * |
| 1899 | * Return: QDF Status |
| 1900 | */ |
| 1901 | static inline |
| 1902 | QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc, |
| 1903 | uint32_t *value) |
| 1904 | { |
| 1905 | return wlan_mlme_get_frag_threshold(psoc, value); |
| 1906 | } |
| 1907 | |
| 1908 | /** |
| 1909 | * ucfg_mlme_set_frag_threshold() - set the frag threshold config |
| 1910 | * @psoc: pointer to psoc object |
| 1911 | * @value: pointer to the value which will be filled for the caller |
| 1912 | * |
| 1913 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1914 | * |
| 1915 | * Return: QDF Status |
| 1916 | */ |
| 1917 | static inline |
| 1918 | QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc, |
| 1919 | uint32_t value) |
| 1920 | { |
| 1921 | return wlan_mlme_set_frag_threshold(psoc, value); |
| 1922 | } |
| 1923 | |
| 1924 | /** |
Karthik Kantamneni | 2231a23 | 2018-09-11 15:45:55 +0530 | [diff] [blame] | 1925 | * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info |
| 1926 | * |
| 1927 | * @psoc: pointer to psoc object |
| 1928 | * @value: pointer to the value which will be filled for the caller |
| 1929 | * |
| 1930 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 1931 | * fils enable value |
| 1932 | * |
| 1933 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1934 | */ |
| 1935 | static inline |
| 1936 | QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc, |
| 1937 | bool *value) |
| 1938 | { |
| 1939 | return wlan_mlme_get_fils_enabled_info(psoc, value); |
| 1940 | } |
| 1941 | |
| 1942 | /** |
| 1943 | * ucfg_mlme_set_fils_enabled_info() - Set fils enable info |
| 1944 | * |
| 1945 | * @psoc: pointer to psoc object |
| 1946 | * @value: value that needs to be set from the caller |
| 1947 | * |
| 1948 | * Inline UCFG API to be used by HDD/OSIF callers to set the |
| 1949 | * fils enable value |
| 1950 | * |
| 1951 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1952 | */ |
| 1953 | static inline |
| 1954 | QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc, |
| 1955 | bool value) |
| 1956 | { |
| 1957 | return wlan_mlme_set_fils_enabled_info(psoc, value); |
| 1958 | } |
| 1959 | |
| 1960 | /** |
| 1961 | * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info |
Karthik Kantamneni | 2231a23 | 2018-09-11 15:45:55 +0530 | [diff] [blame] | 1962 | * @psoc: pointer to psoc object |
| 1963 | * @value: value that needs to be set from the caller |
| 1964 | * |
| 1965 | * Inline UCFG API to be used by HDD/OSIF callers to set the |
| 1966 | * enable bcast probe resp info |
| 1967 | * |
| 1968 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1969 | */ |
| 1970 | static inline |
| 1971 | QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc, |
| 1972 | bool value) |
| 1973 | { |
| 1974 | return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value); |
| 1975 | } |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 1976 | |
| 1977 | /** |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 1978 | * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 1979 | * @psoc: psoc context |
| 1980 | * @value: data to be set |
| 1981 | * |
| 1982 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1983 | * |
| 1984 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 1985 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 1986 | static inline QDF_STATUS |
| 1987 | ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 1988 | { |
| 1989 | return wlan_mlme_cfg_set_vht_chan_width(psoc, value); |
| 1990 | } |
| 1991 | |
| 1992 | /** |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 1993 | * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into |
| 1994 | * cfg item |
| 1995 | * @psoc: psoc context |
| 1996 | * @value: data to be set |
| 1997 | * |
| 1998 | * Inline UCFG API to be used by HDD/OSIF callers |
| 1999 | * |
| 2000 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2001 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2002 | static inline QDF_STATUS |
| 2003 | ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2004 | { |
| 2005 | return wlan_mlme_cfg_get_vht_chan_width(psoc, value); |
| 2006 | } |
| 2007 | |
| 2008 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2009 | * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into |
| 2010 | * cfg item |
| 2011 | * @psoc: psoc context |
| 2012 | * @value: data to be set |
| 2013 | * |
| 2014 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2015 | * |
| 2016 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2017 | */ |
| 2018 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2019 | ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc, bool value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2020 | { |
| 2021 | return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value); |
| 2022 | } |
| 2023 | |
| 2024 | /** |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 2025 | * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2026 | * @psoc: psoc context |
| 2027 | * @value: data to be set |
| 2028 | * |
| 2029 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2030 | * ignore_peer_ht_opmode flag value |
| 2031 | * |
| 2032 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2033 | */ |
| 2034 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2035 | ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2036 | { |
| 2037 | return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value); |
| 2038 | } |
| 2039 | |
| 2040 | /** |
| 2041 | * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into |
| 2042 | * cfg item |
| 2043 | * @psoc: psoc context |
| 2044 | * @value: data to be set |
| 2045 | * |
| 2046 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2047 | * ignore_peer_ht_opmode flag value |
| 2048 | * |
| 2049 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2050 | */ |
| 2051 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2052 | ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2053 | { |
| 2054 | return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value); |
| 2055 | } |
| 2056 | |
| 2057 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2058 | * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from |
| 2059 | * cfg item |
| 2060 | * @psoc: psoc context |
| 2061 | * @value: pointer to get required data |
| 2062 | * |
| 2063 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2064 | * ignore_peer_ht_opmode flag value |
| 2065 | * |
| 2066 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2067 | */ |
| 2068 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2069 | ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2070 | { |
| 2071 | return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value); |
| 2072 | } |
| 2073 | |
| 2074 | /** |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 2075 | * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2076 | * cfg item |
| 2077 | * @psoc: psoc context |
| 2078 | * @value: pointer to get required data |
| 2079 | * |
| 2080 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2081 | * ignore_peer_ht_opmode flag value |
| 2082 | * |
| 2083 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2084 | */ |
| 2085 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2086 | ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2087 | { |
| 2088 | return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value); |
| 2089 | } |
| 2090 | |
| 2091 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2092 | * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna |
| 2093 | * support cap into cfg item |
| 2094 | * @psoc: psoc context |
| 2095 | * @value: data to be set |
| 2096 | * |
| 2097 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2098 | * |
| 2099 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2100 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2101 | static inline |
| 2102 | QDF_STATUS ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc, |
| 2103 | uint8_t value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2104 | { |
| 2105 | return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value); |
| 2106 | } |
| 2107 | |
| 2108 | /** |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2109 | * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna |
| 2110 | * support cap into cfg item |
| 2111 | * @psoc: psoc context |
| 2112 | * @value: data to be set |
| 2113 | * |
| 2114 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2115 | * |
| 2116 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2117 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2118 | static inline |
| 2119 | QDF_STATUS ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc, |
| 2120 | uint8_t *value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2121 | { |
| 2122 | return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value); |
| 2123 | } |
| 2124 | |
| 2125 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2126 | * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from |
| 2127 | * cfg item |
| 2128 | * @psoc: psoc context |
| 2129 | * @value: pointer to get required data |
| 2130 | * |
| 2131 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2132 | * ignore_peer_ht_opmode flag value |
| 2133 | * |
| 2134 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2135 | */ |
| 2136 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2137 | ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2138 | { |
| 2139 | return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value); |
| 2140 | } |
| 2141 | |
| 2142 | /** |
| 2143 | * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into |
| 2144 | * cfg item |
| 2145 | * @psoc: psoc context |
| 2146 | * @value: data to be set |
| 2147 | * |
| 2148 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2149 | * |
| 2150 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2151 | */ |
| 2152 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2153 | ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2154 | { |
| 2155 | return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value); |
| 2156 | } |
| 2157 | |
| 2158 | /** |
| 2159 | * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from |
| 2160 | * cfg item |
| 2161 | * @psoc: psoc context |
| 2162 | * @value: pointer to get required data |
| 2163 | * |
| 2164 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2165 | * ignore_peer_ht_opmode flag value |
| 2166 | * |
| 2167 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2168 | */ |
| 2169 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2170 | ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2171 | { |
| 2172 | return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value); |
| 2173 | } |
| 2174 | |
| 2175 | /** |
| 2176 | * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into |
| 2177 | * cfg item |
| 2178 | * @psoc: psoc context |
| 2179 | * @value: data to be set |
| 2180 | * |
| 2181 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2182 | * |
| 2183 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2184 | */ |
| 2185 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2186 | ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value) |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2187 | { |
| 2188 | return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value); |
| 2189 | } |
| 2190 | |
| 2191 | /** |
| 2192 | * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data |
| 2193 | * rate into cfg item |
| 2194 | * @psoc: psoc context |
| 2195 | * @value: data to be set |
| 2196 | * |
| 2197 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2198 | * |
| 2199 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2200 | */ |
| 2201 | static inline QDF_STATUS |
| 2202 | ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc, |
| 2203 | uint32_t value) |
| 2204 | { |
| 2205 | return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value); |
| 2206 | } |
| 2207 | |
| 2208 | /** |
| 2209 | * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into |
| 2210 | * cfg item |
| 2211 | * @psoc: psoc context |
| 2212 | * @value: data to be set |
| 2213 | * |
| 2214 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2215 | * |
| 2216 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2217 | */ |
| 2218 | static inline QDF_STATUS |
| 2219 | ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc, |
| 2220 | uint32_t value) |
| 2221 | { |
| 2222 | return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value); |
| 2223 | } |
| 2224 | |
| 2225 | /** |
| 2226 | * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from |
| 2227 | * cfg item |
| 2228 | * @psoc: psoc context |
| 2229 | * @value: data to be set |
| 2230 | * |
| 2231 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2232 | * ignore_peer_ht_opmode flag value |
| 2233 | * |
| 2234 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2235 | */ |
| 2236 | static inline QDF_STATUS |
| 2237 | ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc, |
| 2238 | uint32_t *value) |
| 2239 | { |
| 2240 | return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value); |
| 2241 | } |
| 2242 | |
| 2243 | /** |
| 2244 | * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into |
| 2245 | * cfg item |
| 2246 | * @psoc: psoc context |
| 2247 | * @value: data to be set |
| 2248 | * |
| 2249 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2250 | * ignore_peer_ht_opmode flag value |
| 2251 | * |
| 2252 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2253 | */ |
| 2254 | static inline QDF_STATUS |
| 2255 | ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc, |
| 2256 | uint32_t value) |
| 2257 | { |
| 2258 | return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value); |
| 2259 | } |
| 2260 | |
| 2261 | /** |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2262 | * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ |
| 2263 | * for 11ac |
| 2264 | * @psoc: psoc context |
| 2265 | * @value: data to be set |
| 2266 | * |
| 2267 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2268 | * ignore_peer_ht_opmode flag value |
| 2269 | * |
| 2270 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2271 | */ |
| 2272 | static inline QDF_STATUS |
| 2273 | ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2274 | { |
| 2275 | return wlan_mlme_get_vht_enable_tx_bf(psoc, value); |
| 2276 | } |
| 2277 | |
| 2278 | /** |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 2279 | * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2280 | * for 11ac |
| 2281 | * @psoc: psoc context |
| 2282 | * @value: data to be set |
| 2283 | * |
| 2284 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2285 | * ignore_peer_ht_opmode flag value |
| 2286 | * |
| 2287 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2288 | */ |
| 2289 | static inline QDF_STATUS |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 2290 | ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2291 | { |
Abhinav Kumar | e057b41 | 2018-10-09 17:28:16 +0530 | [diff] [blame] | 2292 | return wlan_mlme_get_vht_tx_su_beamformer(psoc, value); |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2293 | } |
| 2294 | |
| 2295 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2296 | * ucfg_mlme_get_vht_channel_width() - gets Channel width capability |
| 2297 | * for 11ac |
| 2298 | * @psoc: psoc context |
| 2299 | * @value: data to be set |
| 2300 | * |
| 2301 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2302 | * ignore_peer_ht_opmode flag value |
| 2303 | * |
| 2304 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2305 | */ |
| 2306 | static inline QDF_STATUS |
| 2307 | ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2308 | { |
| 2309 | return wlan_mlme_get_vht_channel_width(psoc, value); |
| 2310 | } |
| 2311 | |
| 2312 | /** |
| 2313 | * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode |
| 2314 | * for 11ac |
| 2315 | * @psoc: psoc context |
| 2316 | * @value: data to be set |
| 2317 | * |
| 2318 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2319 | * ignore_peer_ht_opmode flag value |
| 2320 | * |
| 2321 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2322 | */ |
| 2323 | static inline QDF_STATUS |
| 2324 | ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2325 | { |
| 2326 | return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value); |
| 2327 | } |
| 2328 | |
| 2329 | /** |
| 2330 | * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode |
| 2331 | * for 11ac |
| 2332 | * @psoc: psoc context |
| 2333 | * @value: data to be set |
| 2334 | * |
| 2335 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2336 | * ignore_peer_ht_opmode flag value |
| 2337 | * |
| 2338 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2339 | */ |
| 2340 | static inline QDF_STATUS |
| 2341 | ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2342 | { |
| 2343 | return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value); |
| 2344 | } |
| 2345 | |
| 2346 | /** |
| 2347 | * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode |
| 2348 | * for 11ac |
| 2349 | * @psoc: psoc context |
| 2350 | * @value: data to be set |
| 2351 | * |
| 2352 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2353 | * ignore_peer_ht_opmode flag value |
| 2354 | * |
| 2355 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2356 | */ |
| 2357 | static inline QDF_STATUS |
| 2358 | ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2359 | { |
| 2360 | return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value); |
| 2361 | } |
| 2362 | |
| 2363 | /** |
| 2364 | * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode |
| 2365 | * for 11ac |
| 2366 | * @psoc: psoc context |
| 2367 | * @value: data to be set |
| 2368 | * |
| 2369 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2370 | * ignore_peer_ht_opmode flag value |
| 2371 | * |
| 2372 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2373 | */ |
| 2374 | static inline QDF_STATUS |
| 2375 | ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2376 | { |
| 2377 | return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value); |
| 2378 | } |
| 2379 | |
| 2380 | /** |
gaurank kathpalia | b414bce | 2018-11-09 18:44:46 +0530 | [diff] [blame] | 2381 | * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev |
| 2382 | * @vdev: pointer to the vdev obj |
| 2383 | * |
| 2384 | * This API will get the ini config of the vdev related to |
| 2385 | * the nss, chains params |
| 2386 | * |
| 2387 | * Return: pointer to the nss, chain param ini cfg structure |
| 2388 | */ |
| 2389 | static inline struct wlan_mlme_nss_chains * |
| 2390 | ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev) |
| 2391 | { |
| 2392 | return mlme_get_ini_vdev_config(vdev); |
| 2393 | } |
| 2394 | |
| 2395 | /** |
| 2396 | * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev |
| 2397 | * @vdev: pointer to the vdev obj |
| 2398 | * |
| 2399 | * This API will get the dynamic config of the vdev related to nss, |
| 2400 | * chains params |
| 2401 | * |
| 2402 | * Return: pointer to the nss, chain param dynamic cfg structure |
| 2403 | */ |
| 2404 | static inline struct wlan_mlme_nss_chains * |
| 2405 | ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev) |
| 2406 | { |
| 2407 | return mlme_get_dynamic_vdev_config(vdev); |
| 2408 | } |
| 2409 | |
| 2410 | /** |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2411 | * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation |
| 2412 | * @psoc: psoc context |
| 2413 | * @value: data to be set |
| 2414 | * |
| 2415 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2416 | * ignore_peer_ht_opmode flag value |
| 2417 | * |
| 2418 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2419 | */ |
| 2420 | static inline QDF_STATUS |
| 2421 | ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2422 | { |
| 2423 | return wlan_mlme_get_vht20_mcs9(psoc, value); |
| 2424 | } |
| 2425 | |
| 2426 | /** |
| 2427 | * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2 |
| 2428 | * @psoc: psoc context |
| 2429 | * @value: data to be set |
| 2430 | * |
| 2431 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2432 | * ignore_peer_ht_opmode flag value |
| 2433 | * |
| 2434 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2435 | */ |
| 2436 | static inline QDF_STATUS |
| 2437 | ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2438 | { |
| 2439 | return wlan_mlme_get_vht_enable2x2(psoc, value); |
| 2440 | } |
| 2441 | |
| 2442 | /** |
| 2443 | * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2 |
| 2444 | * @psoc: psoc context |
| 2445 | * @value: data to be set |
| 2446 | * |
| 2447 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2448 | * ignore_peer_ht_opmode flag value |
| 2449 | * |
| 2450 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2451 | */ |
| 2452 | static inline QDF_STATUS |
| 2453 | ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value) |
| 2454 | { |
| 2455 | return wlan_mlme_set_vht_enable2x2(psoc, value); |
| 2456 | } |
| 2457 | |
| 2458 | /** |
| 2459 | * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature |
| 2460 | * @psoc: psoc context |
| 2461 | * @value: data to be set |
| 2462 | * |
| 2463 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2464 | * ignore_peer_ht_opmode flag value |
| 2465 | * |
| 2466 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2467 | */ |
| 2468 | static inline QDF_STATUS |
| 2469 | ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2470 | { |
| 2471 | return wlan_mlme_get_vht_enable_paid(psoc, value); |
| 2472 | } |
| 2473 | |
| 2474 | /** |
| 2475 | * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature |
| 2476 | * @psoc: psoc context |
| 2477 | * @value: data to be set |
| 2478 | * |
| 2479 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2480 | * ignore_peer_ht_opmode flag value |
| 2481 | * |
| 2482 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2483 | */ |
| 2484 | static inline QDF_STATUS |
| 2485 | ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2486 | { |
| 2487 | return wlan_mlme_get_vht_enable_gid(psoc, value); |
| 2488 | } |
| 2489 | |
| 2490 | /** |
Jianmin Zhu | 2f9e753 | 2019-01-21 15:39:50 +0800 | [diff] [blame] | 2491 | * ucfg_mlme_get_vht_for_24ghz() - Get mlme cfg of vht for 24ghz |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2492 | * @psoc: psoc context |
Jianmin Zhu | 2f9e753 | 2019-01-21 15:39:50 +0800 | [diff] [blame] | 2493 | * @value: data to get |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2494 | * |
| 2495 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2496 | */ |
| 2497 | static inline QDF_STATUS |
| 2498 | ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2499 | { |
| 2500 | return wlan_mlme_get_vht_for_24ghz(psoc, value); |
| 2501 | } |
| 2502 | |
| 2503 | /** |
Jianmin Zhu | c8bfffb | 2019-01-15 12:40:03 +0800 | [diff] [blame] | 2504 | * ucfg_mlme_set_vht_for_24ghz() - Enables/disables vht for 24ghz |
| 2505 | * @psoc: psoc context |
| 2506 | * @value: data to be set |
| 2507 | * |
Jianmin Zhu | c8bfffb | 2019-01-15 12:40:03 +0800 | [diff] [blame] | 2508 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2509 | */ |
| 2510 | static inline QDF_STATUS |
| 2511 | ucfg_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value) |
| 2512 | { |
| 2513 | return wlan_mlme_set_vht_for_24ghz(psoc, value); |
| 2514 | } |
| 2515 | |
| 2516 | /** |
Jianmin Zhu | 2f9e753 | 2019-01-21 15:39:50 +0800 | [diff] [blame] | 2517 | * ucfg_mlme_get_vendor_vht_for_24ghz() - Get mlme cfg of vendor vht for 24ghz |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2518 | * @psoc: psoc context |
| 2519 | * @value: data to be set |
| 2520 | * |
Abhinav Kumar | 988be08 | 2018-09-09 12:41:28 +0530 | [diff] [blame] | 2521 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2522 | */ |
| 2523 | static inline QDF_STATUS |
| 2524 | ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2525 | { |
| 2526 | return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value); |
| 2527 | } |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2528 | |
| 2529 | /** |
| 2530 | * ucfg_mlme_update_vht_cap() - Update vht capabilities |
| 2531 | * @psoc: psoc context |
| 2532 | * @value: data to be set |
| 2533 | * |
| 2534 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2535 | * ignore_peer_ht_opmode flag value |
| 2536 | * |
| 2537 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2538 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2539 | static inline |
| 2540 | QDF_STATUS ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, |
| 2541 | struct wma_tgt_vht_cap *cfg) |
Abhinav Kumar | b074f2f | 2018-09-15 15:32:11 +0530 | [diff] [blame] | 2542 | { |
| 2543 | return mlme_update_vht_cap(psoc, cfg); |
| 2544 | } |
| 2545 | |
| 2546 | /** |
| 2547 | * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial |
| 2548 | * streams supported for vht |
| 2549 | * @psoc: psoc context |
| 2550 | * @value: data to be set |
| 2551 | * |
| 2552 | * Inline UCFG API to be used by HDD/OSIF callers to get the |
| 2553 | * ignore_peer_ht_opmode flag value |
| 2554 | * |
| 2555 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 2556 | */ |
| 2557 | static inline QDF_STATUS |
| 2558 | ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc) |
| 2559 | { |
| 2560 | return mlme_update_nss_vht_cap(psoc); |
| 2561 | } |
| 2562 | |
Karthik Kantamneni | e3bbd7f | 2018-09-19 20:27:32 +0530 | [diff] [blame] | 2563 | /** |
Abhinav Kumar | d4d6eb7 | 2018-12-04 20:30:37 +0530 | [diff] [blame] | 2564 | * ucfg_mlme_is_11h_enabled() - Get 11h flag |
| 2565 | * @psoc: pointer to psoc object |
| 2566 | * @value: Value that needs to be set from the caller |
| 2567 | * |
| 2568 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2569 | * |
| 2570 | * Return: QDF Status |
| 2571 | */ |
| 2572 | static inline QDF_STATUS |
| 2573 | ucfg_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2574 | { |
| 2575 | return wlan_mlme_is_11h_enabled(psoc, value); |
| 2576 | } |
| 2577 | |
| 2578 | /** |
| 2579 | * ucfg_mlme_set_11h_enabled() - Set 11h flag |
| 2580 | * @psoc: pointer to psoc object |
| 2581 | * @value: Value that needs to be set from the caller |
| 2582 | * |
| 2583 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2584 | * |
| 2585 | * Return: QDF Status |
| 2586 | */ |
| 2587 | static inline QDF_STATUS |
| 2588 | ucfg_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value) |
| 2589 | { |
| 2590 | return wlan_mlme_set_11h_enabled(psoc, value); |
| 2591 | } |
| 2592 | |
| 2593 | /** |
| 2594 | * ucfg_mlme_is_11d_enabled() - Get 11d flag |
| 2595 | * @psoc: pointer to psoc object |
| 2596 | * @value: Value that needs to be set from the caller |
| 2597 | * |
| 2598 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2599 | * |
| 2600 | * Return: QDF Status |
| 2601 | */ |
| 2602 | static inline QDF_STATUS |
| 2603 | ucfg_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 2604 | { |
| 2605 | return wlan_mlme_is_11d_enabled(psoc, value); |
| 2606 | } |
| 2607 | |
| 2608 | /** |
| 2609 | * ucfg_mlme_set_11d_enabled() - Set 11d flag |
| 2610 | * @psoc: pointer to psoc object |
| 2611 | * @value: Value that needs to be set from the caller |
| 2612 | * |
| 2613 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2614 | * |
| 2615 | * Return: QDF Status |
| 2616 | */ |
| 2617 | static inline QDF_STATUS |
| 2618 | ucfg_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value) |
| 2619 | { |
| 2620 | return wlan_mlme_set_11d_enabled(psoc, value); |
| 2621 | } |
| 2622 | |
| 2623 | /** |
Pragaspathi Thilagaraj | a889375 | 2019-02-06 19:58:59 +0530 | [diff] [blame] | 2624 | * ucfg_mlme_is_change_channel_bandwidth_enabled() - ucfg api to get the |
| 2625 | * enable_change_channel_bandwidth flag |
| 2626 | * @psoc: psoc context |
| 2627 | * |
| 2628 | * Return: true if enabled |
| 2629 | */ |
| 2630 | static inline bool |
| 2631 | ucfg_mlme_is_change_channel_bandwidth_enabled(struct wlan_objmgr_psoc *psoc) |
| 2632 | { |
| 2633 | return wlan_mlme_is_change_channel_bandwidth_enabled(psoc); |
| 2634 | } |
| 2635 | |
| 2636 | /** |
Karthik Kantamneni | e3bbd7f | 2018-09-19 20:27:32 +0530 | [diff] [blame] | 2637 | * ucfg_mlme_get_opr_rate_set() - Get operational rate set |
| 2638 | * @psoc: pointer to psoc object |
| 2639 | * @buf: buffer to get rates set |
| 2640 | * @len: length of the buffer |
| 2641 | * Return: QDF Status |
| 2642 | */ |
| 2643 | QDF_STATUS |
| 2644 | ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf, |
| 2645 | qdf_size_t *len); |
| 2646 | |
| 2647 | /** |
| 2648 | * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set |
| 2649 | * @psoc: pointer to psoc object |
| 2650 | * @buf: buffer to get rates set |
| 2651 | * @len: length of the buffer |
| 2652 | * Return: QDF Status |
| 2653 | */ |
| 2654 | QDF_STATUS |
| 2655 | ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf, |
| 2656 | qdf_size_t *len); |
| 2657 | |
| 2658 | /** |
| 2659 | * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set |
| 2660 | * @psoc: pointer to psoc object |
| 2661 | * @buf: caller buffer to copy mcs set info |
| 2662 | * @len: length of the buffer |
| 2663 | * Return: QDF Status |
| 2664 | */ |
| 2665 | QDF_STATUS |
| 2666 | ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf, |
| 2667 | qdf_size_t *len); |
| 2668 | |
| 2669 | /** |
| 2670 | * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set |
| 2671 | * @psoc: pointer to psoc object |
| 2672 | * @buf: caller buffer having mcs set info |
| 2673 | * @len: length of the buffer |
| 2674 | * Return: QDF Status |
| 2675 | */ |
| 2676 | QDF_STATUS |
| 2677 | ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf, |
| 2678 | qdf_size_t len); |
| 2679 | |
| 2680 | /** |
| 2681 | * ucfg_mlme_get_current_mcs_set() - Get current MCS set |
| 2682 | * @psoc: pointer to psoc object |
| 2683 | * @buf: caller buffer to copy mcs set info |
| 2684 | * @len: length of the buffer |
| 2685 | * Return: QDF Status |
| 2686 | */ |
| 2687 | QDF_STATUS |
| 2688 | ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf, |
| 2689 | qdf_size_t *len); |
Wu Gao | 5d23d78 | 2018-11-08 16:09:47 +0800 | [diff] [blame] | 2690 | |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2691 | /** |
Sourav Mohapatra | 0dfe555 | 2018-11-16 11:29:54 +0530 | [diff] [blame] | 2692 | * ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method |
| 2693 | * @psoc: pointer to psoc object |
| 2694 | * @val: Value to pass to the caller |
| 2695 | * |
| 2696 | * Return: QDF Status |
| 2697 | */ |
| 2698 | QDF_STATUS |
| 2699 | ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc, |
| 2700 | enum station_keepalive_method *val); |
| 2701 | |
| 2702 | /** |
Arif Hussain | cca6043 | 2018-12-03 19:45:12 -0800 | [diff] [blame] | 2703 | * ucfg_mlme_stats_get_periodic_display_time() - get display time |
| 2704 | * @psoc: pointer to psoc object |
| 2705 | * @periodic_display_time: buffer to hold value |
| 2706 | * |
| 2707 | * Return: QDF Status |
| 2708 | */ |
| 2709 | QDF_STATUS |
| 2710 | ucfg_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc, |
| 2711 | uint32_t *periodic_display_time); |
| 2712 | |
| 2713 | /** |
| 2714 | * ucfg_mlme_stats_get_cfg_values() - get stats cfg values |
| 2715 | * @psoc: pointer to psoc object |
| 2716 | * @link_speed_rssi_high: link speed high limit |
| 2717 | * @link_speed_rssi_mid: link speed high mid |
| 2718 | * @link_speed_rssi_low: link speed high low |
| 2719 | * @link_speed_rssi_report: link speed report limit |
| 2720 | * |
| 2721 | * Return: QDF Status |
| 2722 | */ |
| 2723 | QDF_STATUS |
| 2724 | ucfg_mlme_stats_get_cfg_values(struct wlan_objmgr_psoc *psoc, |
| 2725 | int *link_speed_rssi_high, |
| 2726 | int *link_speed_rssi_mid, |
| 2727 | int *link_speed_rssi_low, |
| 2728 | uint32_t *link_speed_rssi_report); |
| 2729 | |
| 2730 | /** |
| 2731 | * ucfg_mlme_stats_is_link_speed_report_actual() - is link speed report set |
| 2732 | * actual |
| 2733 | * @psoc: pointer to psoc object |
| 2734 | * |
| 2735 | * Return: True is report set to actual |
| 2736 | */ |
| 2737 | bool |
| 2738 | ucfg_mlme_stats_is_link_speed_report_actual(struct wlan_objmgr_psoc *psoc); |
| 2739 | |
| 2740 | /** |
| 2741 | * ucfg_mlme_stats_is_link_speed_report_max() - is link speed report set |
| 2742 | * max |
| 2743 | * @psoc: pointer to psoc object |
| 2744 | * |
| 2745 | * Return: True is report set to max |
| 2746 | */ |
| 2747 | bool |
| 2748 | ucfg_mlme_stats_is_link_speed_report_max(struct wlan_objmgr_psoc *psoc); |
| 2749 | |
| 2750 | /** |
| 2751 | * ucfg_mlme_stats_is_link_speed_report_max_scaled() - is link speed report set |
| 2752 | * max scaled |
| 2753 | * @psoc: pointer to psoc object |
| 2754 | * |
| 2755 | * Return: True is report set to max scaled |
| 2756 | */ |
| 2757 | bool |
| 2758 | ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc); |
| 2759 | |
| 2760 | /** |
Manikandan Mohan | 2bd0977 | 2018-11-28 18:27:32 -0800 | [diff] [blame] | 2761 | * ucfg_mlme_get_ibss_cfg() - Get IBSS config params data structure |
| 2762 | * @psoc: pointer to psoc object |
| 2763 | * @auto_bssid: Pointer to return the IBSS config data structure |
| 2764 | * |
| 2765 | * Return: QDF Status |
| 2766 | */ |
| 2767 | QDF_STATUS ucfg_mlme_get_ibss_cfg(struct wlan_objmgr_psoc *psoc, |
| 2768 | struct wlan_mlme_ibss_cfg *ibss_cfg); |
| 2769 | |
| 2770 | /** |
| 2771 | * ucfg_mlme_set_ibss_auto_bssid() - Set IBSS Auto BSSID config |
| 2772 | * @psoc: pointer to psoc object |
| 2773 | * @auto_bssid: IBSS Auto BSSID config value |
| 2774 | * |
| 2775 | * Return: QDF Status |
| 2776 | */ |
| 2777 | QDF_STATUS ucfg_mlme_set_ibss_auto_bssid(struct wlan_objmgr_psoc *psoc, |
| 2778 | uint32_t auto_bssid); |
| 2779 | |
| 2780 | /** |
| 2781 | * ucfg_mlme_ibss_power_save_setup() - Set IBSS power save params |
| 2782 | * @psoc: pointer to psoc object |
| 2783 | * @vdev_id: IBSS Vdev ID |
| 2784 | * |
| 2785 | * Return: QDF Status |
| 2786 | */ |
| 2787 | static inline |
| 2788 | QDF_STATUS ucfg_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc, |
| 2789 | uint32_t vdev_id) |
| 2790 | { |
| 2791 | return wlan_mlme_ibss_power_save_setup(psoc, vdev_id); |
| 2792 | } |
| 2793 | |
| 2794 | /** |
Abhinav Kumar | c8c2150 | 2018-12-05 15:17:39 +0530 | [diff] [blame] | 2795 | * ucfg_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms) |
| 2796 | * of UAPSD auto trigger. |
| 2797 | * @psoc: pointer to psoc object |
| 2798 | * @value: Value that needs to be set from the caller |
| 2799 | * |
| 2800 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2801 | * |
| 2802 | * Return: None |
| 2803 | */ |
| 2804 | static inline |
| 2805 | void ucfg_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc, |
| 2806 | uint32_t *value) |
| 2807 | { |
| 2808 | wlan_mlme_get_tl_delayed_trgr_frm_int(psoc, value); |
| 2809 | } |
| 2810 | |
| 2811 | /** |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2812 | * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction |
| 2813 | * for VI |
| 2814 | * @psoc: pointer to psoc object |
| 2815 | * @value: Value that needs to be set from the caller |
| 2816 | * |
| 2817 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2818 | * |
| 2819 | * Return: QDF Status |
| 2820 | */ |
| 2821 | static inline QDF_STATUS |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2822 | ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2823 | { |
| 2824 | return wlan_mlme_get_wmm_dir_ac_vi(psoc, value); |
| 2825 | } |
| 2826 | |
| 2827 | /** |
| 2828 | * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal |
| 2829 | * MSDU size for VI |
| 2830 | * @psoc: pointer to psoc object |
| 2831 | * @value: Value that needs to be set from the caller |
| 2832 | * |
| 2833 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2834 | * |
| 2835 | * Return: QDF Status |
| 2836 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2837 | static inline |
| 2838 | QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc, |
| 2839 | uint16_t *value) |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2840 | { |
| 2841 | return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value); |
| 2842 | } |
| 2843 | |
| 2844 | /** |
| 2845 | * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data |
| 2846 | * rate for VI |
| 2847 | * @psoc: pointer to psoc object |
| 2848 | * @value: Value that needs to be set from the caller |
| 2849 | * |
| 2850 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2851 | * |
| 2852 | * Return: QDF Status |
| 2853 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2854 | static inline |
| 2855 | QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc, |
| 2856 | uint32_t *value) |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2857 | { |
| 2858 | return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value); |
| 2859 | } |
| 2860 | |
| 2861 | /** |
| 2862 | * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY |
| 2863 | * rate for VI |
| 2864 | * @psoc: pointer to psoc object |
| 2865 | * @value: Value that needs to be set from the caller |
| 2866 | * |
| 2867 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2868 | * |
| 2869 | * Return: QDF Status |
| 2870 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2871 | static inline |
| 2872 | QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc, |
| 2873 | uint32_t *value) |
Abhinav Kumar | 4c8e026 | 2018-10-06 16:50:27 +0530 | [diff] [blame] | 2874 | { |
| 2875 | return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value); |
| 2876 | } |
| 2877 | |
| 2878 | /** |
| 2879 | * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth |
| 2880 | * allowance for VI |
| 2881 | * @psoc: pointer to psoc object |
| 2882 | * @value: Value that needs to be set from the caller |
| 2883 | * |
| 2884 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2885 | * |
| 2886 | * Return: QDF Status |
| 2887 | */ |
| 2888 | static inline QDF_STATUS |
| 2889 | ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value) |
| 2890 | { |
| 2891 | return wlan_mlme_get_wmm_sba_ac_vi(psoc, value); |
| 2892 | } |
| 2893 | |
| 2894 | /** |
| 2895 | * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service |
| 2896 | * interval for video |
| 2897 | * @psoc: pointer to psoc object |
| 2898 | * @value: pointer to the value which will be filled for the caller |
| 2899 | * |
| 2900 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2901 | * |
| 2902 | * Return: QDF Status |
| 2903 | */ |
| 2904 | static inline QDF_STATUS |
| 2905 | ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc, |
| 2906 | uint32_t *value) |
| 2907 | { |
| 2908 | return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value); |
| 2909 | } |
| 2910 | |
| 2911 | /** |
| 2912 | * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension |
| 2913 | * interval for video |
| 2914 | * @psoc: pointer to psoc object |
| 2915 | * @value: Value that needs to be set from the caller |
| 2916 | * |
| 2917 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2918 | * |
| 2919 | * Return: QDF Status |
| 2920 | */ |
| 2921 | static inline QDF_STATUS |
| 2922 | ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc, |
| 2923 | uint32_t *value) |
| 2924 | { |
| 2925 | return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value); |
| 2926 | } |
| 2927 | |
Abhinav Kumar | e94f248 | 2018-08-19 12:37:36 +0530 | [diff] [blame] | 2928 | /** |
| 2929 | * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction |
| 2930 | * for BE |
| 2931 | * @psoc: pointer to psoc object |
| 2932 | * @value: Value that needs to be set from the caller |
| 2933 | * |
| 2934 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2935 | * |
| 2936 | * Return: QDF Status |
| 2937 | */ |
| 2938 | static inline QDF_STATUS |
| 2939 | ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 2940 | { |
| 2941 | return wlan_mlme_get_wmm_dir_ac_be(psoc, value); |
| 2942 | } |
| 2943 | |
| 2944 | /** |
| 2945 | * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal |
| 2946 | * MSDU size for BE |
| 2947 | * @psoc: pointer to psoc object |
| 2948 | * @value: Value that needs to be set from the caller |
| 2949 | * |
| 2950 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2951 | * |
| 2952 | * Return: QDF Status |
| 2953 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2954 | static inline |
| 2955 | QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc, |
| 2956 | uint16_t *value) |
Abhinav Kumar | e94f248 | 2018-08-19 12:37:36 +0530 | [diff] [blame] | 2957 | { |
| 2958 | return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value); |
| 2959 | } |
| 2960 | |
| 2961 | /** |
| 2962 | * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data |
| 2963 | * rate for BE |
| 2964 | * @psoc: pointer to psoc object |
| 2965 | * @value: Value that needs to be set from the caller |
| 2966 | * |
| 2967 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2968 | * |
| 2969 | * Return: QDF Status |
| 2970 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2971 | static inline |
| 2972 | QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc, |
| 2973 | uint32_t *value) |
Abhinav Kumar | e94f248 | 2018-08-19 12:37:36 +0530 | [diff] [blame] | 2974 | { |
| 2975 | return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value); |
| 2976 | } |
| 2977 | |
| 2978 | /** |
| 2979 | * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY |
| 2980 | * rate for BE |
| 2981 | * @psoc: pointer to psoc object |
| 2982 | * @value: Value that needs to be set from the caller |
| 2983 | * |
| 2984 | * Inline UCFG API to be used by HDD/OSIF callers |
| 2985 | * |
| 2986 | * Return: QDF Status |
| 2987 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 2988 | static inline |
| 2989 | QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc, |
| 2990 | uint32_t *value) |
Abhinav Kumar | e94f248 | 2018-08-19 12:37:36 +0530 | [diff] [blame] | 2991 | { |
| 2992 | return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value); |
| 2993 | } |
| 2994 | |
| 2995 | /** |
| 2996 | * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth |
| 2997 | * allowance for BE |
| 2998 | * @psoc: pointer to psoc object |
| 2999 | * @value: Value that needs to be set from the caller |
| 3000 | * |
| 3001 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3002 | * |
| 3003 | * Return: QDF Status |
| 3004 | */ |
| 3005 | static inline QDF_STATUS |
| 3006 | ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value) |
| 3007 | { |
| 3008 | return wlan_mlme_get_wmm_sba_ac_be(psoc, value); |
| 3009 | } |
| 3010 | |
| 3011 | /** |
| 3012 | * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service |
| 3013 | * interval for BE |
| 3014 | * @psoc: pointer to psoc object |
| 3015 | * @value: pointer to the value which will be filled for the caller |
| 3016 | * |
| 3017 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3018 | * |
| 3019 | * Return: QDF Status |
| 3020 | */ |
| 3021 | static inline QDF_STATUS |
| 3022 | ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc, |
| 3023 | uint32_t *value) |
| 3024 | { |
| 3025 | return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value); |
| 3026 | } |
| 3027 | |
| 3028 | /** |
| 3029 | * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension |
| 3030 | * interval for BE |
| 3031 | * @psoc: pointer to psoc object |
| 3032 | * @value: Value that needs to be set from the caller |
| 3033 | * |
| 3034 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3035 | * |
| 3036 | * Return: QDF Status |
| 3037 | */ |
| 3038 | static inline QDF_STATUS |
| 3039 | ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc, |
| 3040 | uint32_t *value) |
| 3041 | { |
| 3042 | return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value); |
| 3043 | } |
| 3044 | |
Abhinav Kumar | 2af8c12 | 2018-08-19 13:49:52 +0530 | [diff] [blame] | 3045 | /** |
| 3046 | * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction |
| 3047 | * for BK |
| 3048 | * @psoc: pointer to psoc object |
| 3049 | * @value: Value that needs to be set from the caller |
| 3050 | * |
| 3051 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3052 | * |
| 3053 | * Return: QDF Status |
| 3054 | */ |
| 3055 | static inline QDF_STATUS |
| 3056 | ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 3057 | { |
| 3058 | return wlan_mlme_get_wmm_dir_ac_bk(psoc, value); |
| 3059 | } |
| 3060 | |
| 3061 | /** |
| 3062 | * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal |
| 3063 | * MSDU size for BE |
| 3064 | * @psoc: pointer to psoc object |
| 3065 | * @value: Value that needs to be set from the caller |
| 3066 | * |
| 3067 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3068 | * |
| 3069 | * Return: QDF Status |
| 3070 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3071 | static inline |
| 3072 | QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc, |
| 3073 | uint16_t *value) |
Abhinav Kumar | 2af8c12 | 2018-08-19 13:49:52 +0530 | [diff] [blame] | 3074 | { |
| 3075 | return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value); |
| 3076 | } |
| 3077 | |
| 3078 | /** |
| 3079 | * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data |
| 3080 | * rate for BK |
| 3081 | * @psoc: pointer to psoc object |
| 3082 | * @value: Value that needs to be set from the caller |
| 3083 | * |
| 3084 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3085 | * |
| 3086 | * Return: QDF Status |
| 3087 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3088 | static inline |
| 3089 | QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc, |
| 3090 | uint32_t *value) |
Abhinav Kumar | 2af8c12 | 2018-08-19 13:49:52 +0530 | [diff] [blame] | 3091 | { |
| 3092 | return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value); |
| 3093 | } |
| 3094 | |
| 3095 | /** |
| 3096 | * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY |
| 3097 | * rate for BE |
| 3098 | * @psoc: pointer to psoc object |
| 3099 | * @value: Value that needs to be set from the caller |
| 3100 | * |
| 3101 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3102 | * |
| 3103 | * Return: QDF Status |
| 3104 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3105 | static inline |
| 3106 | QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc, |
| 3107 | uint32_t *value) |
Abhinav Kumar | 2af8c12 | 2018-08-19 13:49:52 +0530 | [diff] [blame] | 3108 | { |
| 3109 | return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value); |
| 3110 | } |
| 3111 | |
| 3112 | /** |
| 3113 | * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth |
| 3114 | * allowance for BE |
| 3115 | * @psoc: pointer to psoc object |
| 3116 | * @value: Value that needs to be set from the caller |
| 3117 | * |
| 3118 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3119 | * |
| 3120 | * Return: QDF Status |
| 3121 | */ |
| 3122 | static inline QDF_STATUS |
| 3123 | ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value) |
| 3124 | { |
| 3125 | return wlan_mlme_get_wmm_sba_ac_bk(psoc, value); |
| 3126 | } |
| 3127 | |
| 3128 | /** |
| 3129 | * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service |
| 3130 | * interval for BK |
| 3131 | * @psoc: pointer to psoc object |
| 3132 | * @value: pointer to the value which will be filled for the caller |
| 3133 | * |
| 3134 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3135 | * |
| 3136 | * Return: QDF Status |
| 3137 | */ |
| 3138 | static inline QDF_STATUS |
| 3139 | ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc, |
| 3140 | uint32_t *value) |
| 3141 | { |
| 3142 | return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value); |
| 3143 | } |
| 3144 | |
| 3145 | /** |
| 3146 | * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension |
| 3147 | * interval for BK |
| 3148 | * @psoc: pointer to psoc object |
| 3149 | * @value: Value that needs to be set from the caller |
| 3150 | * |
| 3151 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3152 | * |
| 3153 | * Return: QDF Status |
| 3154 | */ |
| 3155 | static inline QDF_STATUS |
| 3156 | ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc, |
| 3157 | uint32_t *value) |
| 3158 | { |
| 3159 | return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value); |
| 3160 | } |
| 3161 | |
Abhinav Kumar | 7d6f1ac | 2018-09-01 18:33:56 +0530 | [diff] [blame] | 3162 | /** |
| 3163 | * ucfg_mlme_get_wmm_mode() - Enable WMM feature |
| 3164 | * @psoc: pointer to psoc object |
| 3165 | * @value: Value that needs to be set from the caller |
| 3166 | * |
| 3167 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3168 | * |
| 3169 | * Return: QDF Status |
| 3170 | */ |
| 3171 | static inline QDF_STATUS |
| 3172 | ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 3173 | { |
| 3174 | return wlan_mlme_get_wmm_mode(psoc, value); |
| 3175 | } |
| 3176 | |
Bala Venkatesh | 6d53709 | 2018-09-25 10:38:36 +0530 | [diff] [blame] | 3177 | #ifdef WLAN_FEATURE_11AX |
| 3178 | /** |
| 3179 | * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component |
| 3180 | * |
| 3181 | * @psoc: pointer to psoc object |
| 3182 | * @cfg: pointer to config params from target |
| 3183 | * |
| 3184 | * Inline UCFG API to be used by HDD/OSIF callers to update |
| 3185 | * he caps in mlme. |
| 3186 | * |
| 3187 | * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE |
| 3188 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3189 | static inline QDF_STATUS |
| 3190 | ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc, |
| 3191 | struct wma_tgt_cfg *cfg) |
Bala Venkatesh | 6d53709 | 2018-09-25 10:38:36 +0530 | [diff] [blame] | 3192 | { |
| 3193 | return mlme_update_tgt_he_caps_in_cfg(psoc, cfg); |
| 3194 | } |
| 3195 | |
| 3196 | /** |
| 3197 | * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio |
| 3198 | * @psoc: pointer to psoc object |
| 3199 | * @value: Value that needs to be set from the caller |
| 3200 | * |
| 3201 | * Return: QDF Status |
| 3202 | */ |
| 3203 | static inline |
| 3204 | QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc, |
| 3205 | uint32_t *value) |
| 3206 | { |
| 3207 | return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value); |
| 3208 | } |
| 3209 | |
| 3210 | /** |
| 3211 | * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio |
| 3212 | * @psoc: pointer to psoc object |
| 3213 | * @value: Value that needs to be set from the caller |
| 3214 | * |
| 3215 | * Return: QDF Status |
| 3216 | */ |
| 3217 | static inline |
| 3218 | QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc, |
| 3219 | uint32_t value) |
| 3220 | { |
| 3221 | return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value); |
| 3222 | } |
| 3223 | |
| 3224 | /** |
| 3225 | * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo |
| 3226 | * @psoc: pointer to psoc object |
| 3227 | * @value: Value that needs to be set from the caller |
| 3228 | * |
| 3229 | * Return: QDF Status |
| 3230 | */ |
| 3231 | static inline |
| 3232 | QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc, |
| 3233 | uint8_t *value) |
| 3234 | { |
| 3235 | return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value); |
| 3236 | } |
| 3237 | |
| 3238 | /** |
| 3239 | * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm |
| 3240 | * @psoc: pointer to psoc object |
| 3241 | * @value: Value that needs to be set from the caller |
| 3242 | * |
| 3243 | * Return: QDF Status |
| 3244 | */ |
| 3245 | static inline |
| 3246 | QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc, |
| 3247 | uint8_t *value) |
| 3248 | { |
| 3249 | return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value); |
| 3250 | } |
| 3251 | #endif |
| 3252 | |
Abhinav Kumar | 7d6f1ac | 2018-09-01 18:33:56 +0530 | [diff] [blame] | 3253 | /** |
| 3254 | * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature |
| 3255 | * @psoc: pointer to psoc object |
| 3256 | * @value: Value that needs to be set from the caller |
| 3257 | * |
| 3258 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3259 | * |
| 3260 | * Return: QDF Status |
| 3261 | */ |
| 3262 | static inline QDF_STATUS |
| 3263 | ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 3264 | { |
| 3265 | return wlan_mlme_get_80211e_is_enabled(psoc, value); |
| 3266 | } |
| 3267 | |
| 3268 | /** |
| 3269 | * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs |
| 3270 | * @psoc: pointer to psoc object |
| 3271 | * @value: Value that needs to be set from the caller |
| 3272 | * |
| 3273 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3274 | * |
| 3275 | * Return: QDF Status |
| 3276 | */ |
| 3277 | static inline QDF_STATUS |
| 3278 | ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value) |
| 3279 | { |
| 3280 | return wlan_mlme_get_wmm_uapsd_mask(psoc, value); |
| 3281 | } |
| 3282 | |
| 3283 | /** |
| 3284 | * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS |
| 3285 | * @psoc: pointer to psoc object |
| 3286 | * @value: Value that needs to be set from the caller |
| 3287 | * |
| 3288 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3289 | * |
| 3290 | * Return: QDF Status |
| 3291 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3292 | static inline |
| 3293 | QDF_STATUS ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc, |
| 3294 | bool *value) |
Abhinav Kumar | 7d6f1ac | 2018-09-01 18:33:56 +0530 | [diff] [blame] | 3295 | { |
| 3296 | return wlan_mlme_get_implicit_qos_is_enabled(psoc, value); |
| 3297 | } |
| 3298 | |
Abhinav Kumar | ab57671 | 2018-11-05 14:32:49 +0530 | [diff] [blame] | 3299 | #ifdef FEATURE_WLAN_ESE |
| 3300 | /** |
| 3301 | * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval |
| 3302 | * @psoc: pointer to psoc object |
| 3303 | * @value: Value that needs to be get from the caller |
| 3304 | * |
| 3305 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3306 | * |
| 3307 | * Return: None |
| 3308 | */ |
| 3309 | static inline void |
| 3310 | ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc, |
| 3311 | uint32_t *value) |
| 3312 | { |
| 3313 | wlan_mlme_get_inactivity_interval(psoc, value); |
| 3314 | } |
Wu Gao | 5d23d78 | 2018-11-08 16:09:47 +0800 | [diff] [blame] | 3315 | |
| 3316 | /** |
| 3317 | * ucfg_mlme_is_ese_enabled() - ese feature enable or not |
| 3318 | * @psoc: pointer to psoc object |
| 3319 | * @val: Pointer to the value which will be filled for the caller |
| 3320 | * |
| 3321 | * Return: QDF Status |
| 3322 | */ |
| 3323 | QDF_STATUS |
| 3324 | ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val); |
| 3325 | #endif /* FEATURE_WLAN_ESE */ |
Abhinav Kumar | ab57671 | 2018-11-05 14:32:49 +0530 | [diff] [blame] | 3326 | |
| 3327 | /** |
| 3328 | * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag |
| 3329 | * @psoc: pointer to psoc object |
| 3330 | * @value: Value that needs to be get from the caller |
| 3331 | * |
| 3332 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3333 | * |
| 3334 | * Return: None |
| 3335 | */ |
Abhinav Kumar | c105938 | 2018-12-04 14:40:07 +0530 | [diff] [blame] | 3336 | static inline |
| 3337 | void ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc, |
| 3338 | bool *value) |
Abhinav Kumar | ab57671 | 2018-11-05 14:32:49 +0530 | [diff] [blame] | 3339 | { |
| 3340 | wlan_mlme_get_is_ts_burst_size_enable(psoc, value); |
| 3341 | } |
| 3342 | |
| 3343 | /** |
| 3344 | * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy |
| 3345 | * @psoc: pointer to psoc object |
| 3346 | * @value: Value that needs to be get from the caller |
| 3347 | * |
| 3348 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3349 | * |
| 3350 | * Return: None |
| 3351 | */ |
| 3352 | static inline void |
| 3353 | ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc, |
| 3354 | enum mlme_ts_info_ack_policy *value) |
| 3355 | { |
| 3356 | wlan_mlme_get_ts_info_ack_policy(psoc, value); |
| 3357 | } |
| 3358 | |
| 3359 | /** |
| 3360 | * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC |
| 3361 | * @psoc: pointer to psoc object |
| 3362 | * @value: Value that needs to be get from the caller |
| 3363 | * |
Pragaspathi Thilagaraj | 4b5c060 | 2018-11-14 22:35:23 +0530 | [diff] [blame] | 3364 | * |
Abhinav Kumar | ab57671 | 2018-11-05 14:32:49 +0530 | [diff] [blame] | 3365 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3366 | * |
| 3367 | * Return: QDF Status |
| 3368 | */ |
| 3369 | static inline QDF_STATUS |
| 3370 | ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value) |
| 3371 | { |
| 3372 | return wlan_mlme_get_ts_acm_value_for_ac(psoc, value); |
| 3373 | } |
| 3374 | |
Pragaspathi Thilagaraj | 4b5c060 | 2018-11-14 22:35:23 +0530 | [diff] [blame] | 3375 | /* |
| 3376 | * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status. |
| 3377 | * @psoc: pointer to psoc object |
| 3378 | * @value: sap uapsd enabled flag value requested from the caller |
| 3379 | * |
| 3380 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3381 | * |
| 3382 | * Return: QDF Status |
| 3383 | */ |
| 3384 | static inline QDF_STATUS |
| 3385 | ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 3386 | { |
| 3387 | return wlan_mlme_is_sap_uapsd_enabled(psoc, value); |
| 3388 | } |
| 3389 | |
| 3390 | /* |
| 3391 | * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status. |
| 3392 | * @psoc: pointer to psoc object |
| 3393 | * @value: Value that needs to be set from the caller |
| 3394 | * |
| 3395 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3396 | * |
| 3397 | * Return: QDF Status |
| 3398 | */ |
| 3399 | static inline QDF_STATUS |
| 3400 | ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value) |
| 3401 | { |
| 3402 | return wlan_mlme_set_sap_uapsd_flag(psoc, value); |
| 3403 | } |
| 3404 | |
Sourav Mohapatra | 0dfe555 | 2018-11-16 11:29:54 +0530 | [diff] [blame] | 3405 | /** |
| 3406 | * ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map |
| 3407 | * @psoc: pointer to psoc object |
| 3408 | * @value: Value that needs to be set from the caller |
| 3409 | * |
| 3410 | * UCFG API to be used by HDD/OSIF callers |
| 3411 | * |
| 3412 | * Return: QDF Status |
| 3413 | */ |
| 3414 | QDF_STATUS |
| 3415 | ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc, |
| 3416 | bool *value); |
| 3417 | |
| 3418 | /** |
| 3419 | * ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid |
| 3420 | * @psoc: pointer to psoc object |
| 3421 | * @value: Value that needs to be set from the caller |
| 3422 | * |
| 3423 | * UCFG API to be used by HDD/OSIF callers |
| 3424 | * |
| 3425 | * Return: QDF Status |
| 3426 | */ |
| 3427 | QDF_STATUS |
| 3428 | ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc, |
| 3429 | bool *value); |
| 3430 | |
Krunal Soni | d2c33e1 | 2018-12-06 15:02:37 -0800 | [diff] [blame] | 3431 | /** |
| 3432 | * ucfg_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time |
| 3433 | * |
| 3434 | * @psoc: pointer to psoc object |
| 3435 | * @value: value which needs to filled by API |
| 3436 | * |
| 3437 | * This API gives rest time to be used when STA and MIRACAST MCC conc happens |
| 3438 | * |
| 3439 | * Return: QDF_STATUS |
| 3440 | */ |
| 3441 | static inline QDF_STATUS |
| 3442 | ucfg_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc, |
| 3443 | uint32_t *value) |
| 3444 | { |
| 3445 | return wlan_mlme_get_sta_miracast_mcc_rest_time(psoc, value); |
| 3446 | } |
| 3447 | |
| 3448 | /** |
| 3449 | * ucfg_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided |
| 3450 | * |
| 3451 | * @psoc: pointer to psoc object |
| 3452 | * @value: value which needs to filled by API |
| 3453 | * |
| 3454 | * This API fetches the user setting to determine if SAP MCC with other persona |
| 3455 | * to be avoided. |
| 3456 | * |
| 3457 | * Return: QDF_STATUS |
| 3458 | */ |
| 3459 | static inline QDF_STATUS |
| 3460 | ucfg_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc, |
| 3461 | uint8_t *value) |
| 3462 | { |
| 3463 | return wlan_mlme_get_sap_mcc_chnl_avoid(psoc, value); |
| 3464 | } |
| 3465 | |
| 3466 | /** |
| 3467 | * ucfg_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC |
| 3468 | * |
| 3469 | * @psoc: pointer to psoc object |
| 3470 | * @value: value which needs to filled by API |
| 3471 | * |
| 3472 | * To get INI value which helps to determe whether to enable/disable use of |
| 3473 | * broadcast probe response to increase the detectability of SAP in MCC mode. |
| 3474 | * |
| 3475 | * |
| 3476 | * Return: QDF_STATUS |
| 3477 | */ |
| 3478 | static inline QDF_STATUS |
| 3479 | ucfg_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc, |
| 3480 | uint8_t *value) |
| 3481 | { |
| 3482 | return wlan_mlme_get_mcc_bcast_prob_resp(psoc, value); |
| 3483 | } |
| 3484 | |
| 3485 | /** |
| 3486 | * ucfg_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC. |
| 3487 | * |
| 3488 | * @psoc: pointer to psoc object |
| 3489 | * @value: value which needs to filled by API |
| 3490 | * |
| 3491 | * To get INI value which helps to determine whether to enable/disable |
| 3492 | * use of long duration RTS-CTS protection when SAP goes off |
| 3493 | * channel in MCC mode. |
| 3494 | * |
| 3495 | * Return: QDF_STATUS |
| 3496 | */ |
| 3497 | static inline QDF_STATUS |
| 3498 | ucfg_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc, |
| 3499 | uint8_t *value) |
| 3500 | { |
| 3501 | return wlan_mlme_get_mcc_rts_cts_prot(psoc, value); |
| 3502 | } |
| 3503 | |
| 3504 | /** |
| 3505 | * ucfg_mlme_get_mcc_feature() - To find out to enable/disable MCC feature |
| 3506 | * |
| 3507 | * @psoc: pointer to psoc object |
| 3508 | * @value: value which needs to filled by API |
| 3509 | * |
| 3510 | * To get INI value which helps to determine whether to enable MCC feature |
| 3511 | * |
| 3512 | * Return: QDF_STATUS |
| 3513 | */ |
| 3514 | static inline QDF_STATUS |
| 3515 | ucfg_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc, |
| 3516 | uint8_t *value) |
| 3517 | { |
| 3518 | return wlan_mlme_get_mcc_feature(psoc, value); |
| 3519 | } |
Yeshwanth Sriram Guntuka | 334aa8d | 2018-08-20 16:49:15 +0530 | [diff] [blame] | 3520 | |
| 3521 | /** |
| 3522 | * ucfg_wlan_mlme_get_rrm_enabled() - Get the rrm enabled |
| 3523 | * @psoc: pointer to psoc object |
| 3524 | * @value: Value that needs to be get from the caller |
| 3525 | * |
| 3526 | * Return: QDF Status |
| 3527 | */ |
| 3528 | static inline |
| 3529 | QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc, |
| 3530 | bool *value) |
| 3531 | { |
| 3532 | return wlan_mlme_get_rrm_enabled(psoc, value); |
| 3533 | } |
Sourav Mohapatra | c457ae6 | 2018-12-06 15:19:41 +0530 | [diff] [blame] | 3534 | |
| 3535 | /** |
| 3536 | * ucfg_mlme_get_latency_enable() - Get the latency_enable |
| 3537 | * @psoc: pointer to psoc object |
| 3538 | * @value: Value that needs to be get from the caller |
| 3539 | * |
| 3540 | * Return: QDF Status |
| 3541 | */ |
| 3542 | QDF_STATUS |
| 3543 | ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value); |
| 3544 | |
Pragaspathi Thilagaraj | 784c492 | 2018-12-02 22:47:29 +0530 | [diff] [blame] | 3545 | /** |
| 3546 | * ucfg_mlme_get_dtim_selection_diversity() - get dtim selection diversity |
| 3547 | * bitmap |
| 3548 | * @psoc: pointer to psoc object |
| 3549 | * @dtim_selection_div: value that is requested by the caller |
| 3550 | * |
| 3551 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3552 | * |
| 3553 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3554 | */ |
| 3555 | static inline QDF_STATUS |
| 3556 | ucfg_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc, |
| 3557 | uint32_t *dtim_selection_div) |
| 3558 | { |
| 3559 | return wlan_mlme_get_dtim_selection_diversity(psoc, dtim_selection_div); |
| 3560 | } |
| 3561 | |
| 3562 | /** |
| 3563 | * ucfg_mlme_get_bmps_min_listen_interval() - get beacon mode powersave |
| 3564 | * minimum listen interval value |
| 3565 | * @psoc: pointer to psoc object |
| 3566 | * @value: value that is requested by the caller |
| 3567 | * |
| 3568 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3569 | * |
| 3570 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3571 | */ |
| 3572 | static inline QDF_STATUS |
| 3573 | ucfg_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc, |
| 3574 | uint32_t *value) |
| 3575 | { |
| 3576 | return wlan_mlme_get_bmps_min_listen_interval(psoc, value); |
| 3577 | } |
| 3578 | |
| 3579 | /** |
| 3580 | * ucfg_mlme_get_bmps_max_listen_interval() - get beacon mode powersave |
| 3581 | * maximum listen interval value |
| 3582 | * @psoc: pointer to psoc object |
| 3583 | * @value: value that is requested by the caller |
| 3584 | * |
| 3585 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3586 | * |
| 3587 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3588 | */ |
| 3589 | static inline QDF_STATUS |
| 3590 | ucfg_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc, |
| 3591 | uint32_t *value) |
| 3592 | { |
| 3593 | return wlan_mlme_get_bmps_max_listen_interval(psoc, value); |
| 3594 | } |
| 3595 | |
| 3596 | /** |
| 3597 | * ucfg_mlme_get_auto_bmps_timer_value() - get bmps timer value |
| 3598 | * minimum listen interval value |
| 3599 | * @psoc: pointer to psoc object |
| 3600 | * @value: value that is requested by the caller |
| 3601 | * |
| 3602 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3603 | * |
| 3604 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3605 | */ |
| 3606 | static inline QDF_STATUS |
| 3607 | ucfg_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc, |
| 3608 | uint32_t *value) |
| 3609 | { |
| 3610 | return wlan_mlme_get_auto_bmps_timer_value(psoc, value); |
| 3611 | } |
| 3612 | |
| 3613 | /** |
| 3614 | * ucfg_mlme_is_bmps_enabled() - check if beacon mode powersave is |
| 3615 | * enabled/disabled |
| 3616 | * @psoc: pointer to psoc object |
| 3617 | * @value: value that is requested by the caller |
| 3618 | * |
| 3619 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3620 | * |
| 3621 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3622 | */ |
| 3623 | static inline QDF_STATUS |
| 3624 | ucfg_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 3625 | { |
| 3626 | return wlan_mlme_is_bmps_enabled(psoc, value); |
| 3627 | } |
| 3628 | |
| 3629 | /** |
| 3630 | * ucfg_mlme_is_imps_enabled() - check if idle mode powersave is |
| 3631 | * enabled/disabled |
| 3632 | * @psoc: pointer to psoc object |
| 3633 | * @value: value that is requested by the caller |
| 3634 | * |
| 3635 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3636 | * |
| 3637 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3638 | */ |
| 3639 | static inline QDF_STATUS |
| 3640 | ucfg_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc, bool *value) |
| 3641 | { |
| 3642 | return wlan_mlme_is_imps_enabled(psoc, value); |
| 3643 | } |
| 3644 | |
| 3645 | /** |
| 3646 | * ucfg_mlme_override_bmps_imps() - disable imps/bmps as part of |
| 3647 | * override to disable all ps features |
| 3648 | * @psoc: pointer to psoc object |
| 3649 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3650 | * |
| 3651 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3652 | */ |
| 3653 | static inline QDF_STATUS |
| 3654 | ucfg_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc) |
| 3655 | { |
| 3656 | return wlan_mlme_override_bmps_imps(psoc); |
| 3657 | } |
| 3658 | |
lifeng | db340e7 | 2018-11-20 00:50:20 +0800 | [diff] [blame] | 3659 | #ifdef MWS_COEX |
| 3660 | /** |
| 3661 | * ucfg_mlme_get_mws_coex_4g_quick_tdm() - Get mws coex 4g quick tdm |
| 3662 | * @psoc: pointer to psoc object |
| 3663 | * @val: Pointer to the value which will be filled for the caller |
| 3664 | * |
| 3665 | * Return: QDF Status |
| 3666 | */ |
| 3667 | QDF_STATUS |
| 3668 | ucfg_mlme_get_mws_coex_4g_quick_tdm(struct wlan_objmgr_psoc *psoc, |
| 3669 | uint32_t *val); |
| 3670 | |
| 3671 | /** |
| 3672 | * ucfg_mlme_get_mws_coex_5g_nr_pwr_limit() - Get mws coex 5g nr pwr limit |
| 3673 | * @psoc: pointer to psoc object |
| 3674 | * @val: Pointer to the value which will be filled for the caller |
| 3675 | * |
| 3676 | * Return: QDF Status |
| 3677 | */ |
| 3678 | QDF_STATUS |
| 3679 | ucfg_mlme_get_mws_coex_5g_nr_pwr_limit(struct wlan_objmgr_psoc *psoc, |
| 3680 | uint32_t *val); |
| 3681 | #endif |
| 3682 | |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3683 | /** |
| 3684 | * ucfg_mlme_get_etsi13_srd_chan_in_master_mode - get etsi13 srd chan |
| 3685 | * in master mode |
Wu Gao | 2255ea2 | 2019-01-04 15:44:35 +0800 | [diff] [blame] | 3686 | * @psoc: pointer to psoc object |
| 3687 | * @value: pointer to the value which will be filled for the caller |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3688 | * |
| 3689 | * Return: QDF Status |
| 3690 | */ |
| 3691 | QDF_STATUS |
| 3692 | ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc, |
| 3693 | bool *value); |
| 3694 | |
| 3695 | /** |
gaurank kathpalia | ba22ef2 | 2019-02-05 17:04:08 +0530 | [diff] [blame] | 3696 | * ucfg_mlme_get_11d_in_world_mode - get whether 11d is enabled in world mode |
| 3697 | * in master mode |
| 3698 | * @psoc: pointer to psoc object |
| 3699 | * @value: pointer to the value which will be filled for the caller |
| 3700 | * |
| 3701 | * Return: QDF Status |
| 3702 | */ |
| 3703 | QDF_STATUS |
| 3704 | ucfg_mlme_get_11d_in_world_mode(struct wlan_objmgr_psoc *psoc, |
| 3705 | bool *value); |
| 3706 | |
| 3707 | /** |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3708 | * ucfg_mlme_restart_beaconing_on_ch_avoid() - get restart beaconing on ch avoid |
Wu Gao | 2255ea2 | 2019-01-04 15:44:35 +0800 | [diff] [blame] | 3709 | * @psoc: pointer to psoc object |
| 3710 | * @value: pointer to the value which will be filled for the caller |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3711 | * |
| 3712 | * Return: QDF Status |
| 3713 | */ |
| 3714 | QDF_STATUS |
| 3715 | ucfg_mlme_get_restart_beaconing_on_ch_avoid(struct wlan_objmgr_psoc *psoc, |
| 3716 | uint32_t *value); |
| 3717 | |
| 3718 | /** |
| 3719 | * ucfg_mlme_get_indoor_channel_support() - get indoor channel support |
Wu Gao | 2255ea2 | 2019-01-04 15:44:35 +0800 | [diff] [blame] | 3720 | * @psoc: pointer to psoc object |
| 3721 | * @value: pointer to the value which will be filled for the caller |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3722 | * |
| 3723 | * Return: QDF Status |
| 3724 | */ |
| 3725 | QDF_STATUS |
| 3726 | ucfg_mlme_get_indoor_channel_support(struct wlan_objmgr_psoc *psoc, |
| 3727 | bool *value); |
| 3728 | |
| 3729 | /** |
| 3730 | * ucfg_mlme_get_scan_11d_interval() - get scan 11d interval |
| 3731 | * @psoc: pointer to psoc object |
Wu Gao | 2255ea2 | 2019-01-04 15:44:35 +0800 | [diff] [blame] | 3732 | * @value: Pointer to the value which will be filled for the caller |
lifeng | 0b46ae5 | 2018-12-13 09:42:27 +0800 | [diff] [blame] | 3733 | * |
| 3734 | * Return: QDF Status |
| 3735 | */ |
| 3736 | QDF_STATUS |
| 3737 | ucfg_mlme_get_scan_11d_interval(struct wlan_objmgr_psoc *psoc, |
| 3738 | uint32_t *value); |
| 3739 | |
Wu Gao | f3cbeaf | 2019-01-15 18:26:25 +0800 | [diff] [blame] | 3740 | /** |
| 3741 | * ucfg_mlme_get_valid_channel_list() - get valid channel list |
| 3742 | * @psoc: pointer to psoc object |
| 3743 | * @channel_list: pointer to return channel list |
| 3744 | * @channel_list_num: pointer to return channel list number |
| 3745 | * |
| 3746 | * Return: QDF Status |
| 3747 | */ |
| 3748 | QDF_STATUS |
| 3749 | ucfg_mlme_get_valid_channel_list(struct wlan_objmgr_psoc *psoc, |
| 3750 | uint8_t *channel_list, |
| 3751 | uint32_t *channel_list_num); |
| 3752 | |
Wu Gao | 6294afc | 2019-01-05 00:00:58 +0800 | [diff] [blame] | 3753 | #ifdef FEATURE_LFR_SUBNET_DETECTION |
| 3754 | /** |
| 3755 | * ucfg_mlme_is_subnet_detection_enabled() - check if sub net detection is |
| 3756 | * enabled/disabled |
| 3757 | * @psoc: pointer to psoc object |
| 3758 | * @value: value that is requested by the caller |
| 3759 | * |
| 3760 | * Inline UCFG API to be used by HDD/OSIF callers |
| 3761 | * |
| 3762 | * Return: QDF_STATUS_SUCCESS - in case of success |
| 3763 | */ |
| 3764 | QDF_STATUS |
| 3765 | ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val); |
| 3766 | #else |
| 3767 | static QDF_STATUS |
| 3768 | ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val) |
| 3769 | { |
| 3770 | *val = false; |
| 3771 | |
| 3772 | return QDF_STATUS_SUCCESS; |
| 3773 | } |
| 3774 | #endif /* FEATURE_LFR_SUBNET_DETECTION */ |
Wu Gao | 2255ea2 | 2019-01-04 15:44:35 +0800 | [diff] [blame] | 3775 | |
| 3776 | /** |
| 3777 | * ucfg_mlme_set_current_tx_power_level() - set current tx power level |
| 3778 | * @psoc: pointer to psoc object |
| 3779 | * @value: data to be set |
| 3780 | * |
| 3781 | * Return: QDF Status |
| 3782 | */ |
| 3783 | QDF_STATUS |
| 3784 | ucfg_mlme_set_current_tx_power_level(struct wlan_objmgr_psoc *psoc, |
| 3785 | uint8_t value); |
| 3786 | |
| 3787 | /** |
| 3788 | * ucfg_mlme_get_current_tx_power_level() - get current tx power level |
| 3789 | * @psoc: pointer to psoc object |
| 3790 | * @value: pointer to the value which will be filled for the caller |
| 3791 | * |
| 3792 | * Return: QDF Status |
| 3793 | */ |
| 3794 | QDF_STATUS |
| 3795 | ucfg_mlme_get_current_tx_power_level(struct wlan_objmgr_psoc *psoc, |
| 3796 | uint8_t *value); |
| 3797 | |
| 3798 | /** |
| 3799 | * ucfg_mlme_set_obss_detection_offload_enabled() - Enable obss offload |
| 3800 | * @psoc: pointer to psoc object |
| 3801 | * @value: enable or disable |
| 3802 | * |
| 3803 | * Return: QDF Status |
| 3804 | */ |
| 3805 | QDF_STATUS |
| 3806 | ucfg_mlme_set_obss_detection_offload_enabled(struct wlan_objmgr_psoc *psoc, |
| 3807 | uint8_t value); |
| 3808 | |
| 3809 | /** |
| 3810 | * ucfg_mlme_set_obss_color_collision_offload_enabled() - Enable obss color |
| 3811 | * collision offload |
| 3812 | * @psoc: pointer to psoc object |
| 3813 | * @value: enable or disable |
| 3814 | * |
| 3815 | * Return: QDF Status |
| 3816 | */ |
| 3817 | QDF_STATUS |
| 3818 | ucfg_mlme_set_obss_color_collision_offload_enabled( |
| 3819 | struct wlan_objmgr_psoc *psoc, uint8_t value); |
Wu Gao | ed616a1 | 2019-01-16 15:19:21 +0800 | [diff] [blame] | 3820 | |
| 3821 | /** |
| 3822 | * ucfg_mlme_get_channel_bonding_24ghz() - get channel bonding mode of 24ghz |
| 3823 | * @psoc: pointer to psoc object |
| 3824 | * @value: pointer to the value which will be filled for the caller |
| 3825 | * |
| 3826 | * Return: QDF Status |
| 3827 | */ |
| 3828 | QDF_STATUS |
| 3829 | ucfg_mlme_get_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc, |
| 3830 | uint32_t *value); |
| 3831 | |
| 3832 | /** |
| 3833 | * ucfg_mlme_set_channel_bonding_24ghz() - set channel bonding mode for 24ghz |
| 3834 | * @psoc: pointer to psoc object |
| 3835 | * @value: channel bonding mode |
| 3836 | * |
| 3837 | * Return: QDF Status |
| 3838 | */ |
| 3839 | QDF_STATUS |
| 3840 | ucfg_mlme_set_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc, |
| 3841 | uint32_t value); |
| 3842 | /** |
| 3843 | * ucfg_mlme_get_channel_bonding_5ghz() - get channel bonding mode of 5ghz |
| 3844 | * @psoc: pointer to psoc object |
| 3845 | * @value: pointer to the value which will be filled for the caller |
| 3846 | * |
| 3847 | * Return: QDF Status |
| 3848 | */ |
| 3849 | QDF_STATUS |
| 3850 | ucfg_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc, |
| 3851 | uint32_t *value); |
| 3852 | |
| 3853 | /** |
| 3854 | * ucfg_mlme_set_channel_bonding_5ghz() - set channel bonding mode for 5ghz |
| 3855 | * @psoc: pointer to psoc object |
| 3856 | * @value: channel bonding mode |
| 3857 | * |
| 3858 | * Return: QDF Status |
| 3859 | */ |
| 3860 | QDF_STATUS |
| 3861 | ucfg_mlme_set_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc, |
| 3862 | uint32_t value); |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame] | 3863 | #endif /* _WLAN_MLME_UCFG_API_H_ */ |