1 /* 2 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. 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 19 #ifndef _WLAN_MGMT_TXRX_UTILS_API_H_ 20 #define _WLAN_MGMT_TXRX_UTILS_API_H_ 21 22 /** 23 * DOC: wlan_mgmt_txrx_utils_api.h 24 * 25 * management tx/rx layer public API and structures 26 * for umac converged components. 27 * 28 */ 29 30 #include "wlan_objmgr_cmn.h" 31 #include "qdf_nbuf.h" 32 33 #ifdef CONFIG_MCL 34 #define MGMT_DESC_POOL_MAX 64 35 #else 36 #define MGMT_DESC_POOL_MAX 512 37 #endif 38 39 #define mgmt_txrx_alert(params...) \ 40 QDF_TRACE_FATAL(QDF_MODULE_ID_MGMT_TXRX, params) 41 #define mgmt_txrx_err(params...) \ 42 QDF_TRACE_ERROR(QDF_MODULE_ID_MGMT_TXRX, params) 43 #define mgmt_txrx_warn(params...) \ 44 QDF_TRACE_WARN(QDF_MODULE_ID_MGMT_TXRX, params) 45 #define mgmt_txrx_notice(params...) \ 46 QDF_TRACE_INFO(QDF_MODULE_ID_MGMT_TXRX, params) 47 #define mgmt_txrx_info(params...) \ 48 QDF_TRACE_INFO(QDF_MODULE_ID_MGMT_TXRX, params) 49 #define mgmt_txrx_debug(params...) \ 50 QDF_TRACE_DEBUG(QDF_MODULE_ID_MGMT_TXRX, params) 51 #define mgmt_txrx_err_rl(params...) \ 52 QDF_TRACE_ERROR_RL(QDF_MODULE_ID_MGMT_TXRX, params) 53 54 #define mgmttxrx_nofl_alert(params...) \ 55 QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params) 56 #define mgmttxrx_nofl_err(params...) \ 57 QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params) 58 #define mgmttxrx_nofl_warn(params...) \ 59 QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params) 60 #define mgmttxrx_nofl_info(params...) \ 61 QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params) 62 #define mgmttxrx_nofl_debug(params...) \ 63 QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params) 64 65 /** 66 * enum mgmt_subtype - enum of mgmt. subtypes 67 * @MGMT_SUBTYPE_ASSOC_REQ: association request frame 68 * @MGMT_SUBTYPE_ASSOC_RESP: association response frame 69 * @MGMT_SUBTYPE_REASSOC_REQ: reassociation request frame 70 * @MGMT_SUBTYPE_REASSOC_RESP: reassociation response frame 71 * @MGMT_SUBTYPE_PROBE_REQ: probe request frame 72 * @MGMT_SUBTYPE_PROBE_RESP: probe response frame 73 * @MGMT_SUBTYPE_BEACON: beacon frame 74 * @MGMT_SUBTYPE_ATIM: ATIM frame 75 * @MGMT_SUBTYPE_DISASSOC: disassociation frame 76 * @MGMT_SUBTYPE_AUTH: authentication frame 77 * @MGMT_SUBTYPE_DEAUTH: deauthentication frame 78 * @MGMT_SUBTYPE_ACTION: action frame 79 * @MGMT_SUBTYPE_ACTION_NO_ACK: action no ack frame 80 */ 81 enum mgmt_subtype { 82 MGMT_SUBTYPE_ASSOC_REQ = 0x00, 83 MGMT_SUBTYPE_ASSOC_RESP = 0x10, 84 MGMT_SUBTYPE_REASSOC_REQ = 0x20, 85 MGMT_SUBTYPE_REASSOC_RESP = 0x30, 86 MGMT_SUBTYPE_PROBE_REQ = 0x40, 87 MGMT_SUBTYPE_PROBE_RESP = 0x50, 88 MGMT_SUBTYPE_BEACON = 0x80, 89 MGMT_SUBTYPE_ATIM = 0x90, 90 MGMT_SUBTYPE_DISASSOC = 0xa0, 91 MGMT_SUBTYPE_AUTH = 0xb0, 92 MGMT_SUBTYPE_DEAUTH = 0xc0, 93 MGMT_SUBTYPE_ACTION = 0xd0, 94 MGMT_SUBTYPE_ACTION_NO_ACK = 0xe0, 95 }; 96 97 /** 98 * enum mgmt_action_category - mgmt. action categories 99 * @ACTION_CATEGORY_SPECTRUM_MGMT: spectrum mgmt. action category 100 * @ACTION_CATEGORY_QOS: qos action category 101 * @ACTION_CATEGORY_DLS: dls action category 102 * @ACTION_CATEGORY_BACK: block ack action category 103 * @ACTION_CATEGORY_PUBLIC: public action category 104 * @ACTION_CATEGORY_RRM: rrm action category 105 * @ACTION_FAST_BSS_TRNST: trnst action category 106 * @ACTION_CATEGORY_HT: ht actipon category 107 * @ACTION_CATEGORY_SA_QUERY: sa query action category 108 * @ACTION_CATEGORY_PROTECTED_DUAL_OF_PUBLIC_ACTION: protected 109 * public action category 110 * @ACTION_CATEGORY_WNM: wnm action category 111 * @ACTION_CATEGORY_WNM_UNPROTECTED: wnm protected action category 112 * @ACTION_CATEGORY_TDLS: tdls action category 113 * @ACTION_CATEGORY_MESH_ACTION: mesh action category 114 * @ACTION_CATEGORY_MULTIHOP_ACTION: multihop action category 115 * @ACTION_CATEGORY_SELF_PROTECTED: self protected action category 116 * @ACTION_CATEGORY_DMG: unprotected dmg action category 117 * @ACTION_CATEGORY_WMM: wmm action category 118 * @ACTION_CATEGORY_FST: fst action category 119 * @ACTION_CATEGORY_UNPROT_DMG: dmg action category 120 * @ACTION_CATEGORY_VHT: vht action category 121 * @ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED: vendor specific protected 122 * action category 123 * @ACTION_CATEGORY_VENDOR_SPECIFIC: vendor specific action category 124 */ 125 enum mgmt_action_category { 126 ACTION_CATEGORY_SPECTRUM_MGMT = 0, 127 ACTION_CATEGORY_QOS = 1, 128 ACTION_CATEGORY_DLS = 2, 129 ACTION_CATEGORY_BACK = 3, 130 ACTION_CATEGORY_PUBLIC = 4, 131 ACTION_CATEGORY_RRM = 5, 132 ACTION_FAST_BSS_TRNST = 6, 133 ACTION_CATEGORY_HT = 7, 134 ACTION_CATEGORY_SA_QUERY = 8, 135 ACTION_CATEGORY_PROTECTED_DUAL_OF_PUBLIC_ACTION = 9, 136 ACTION_CATEGORY_WNM = 10, 137 ACTION_CATEGORY_WNM_UNPROTECTED = 11, 138 ACTION_CATEGORY_TDLS = 12, 139 ACTION_CATEGORY_MESH_ACTION = 13, 140 ACTION_CATEGORY_MULTIHOP_ACTION = 14, 141 ACTION_CATEGORY_SELF_PROTECTED = 15, 142 ACTION_CATEGORY_DMG = 16, 143 ACTION_CATEGORY_WMM = 17, 144 ACTION_CATEGORY_FST = 18, 145 ACTION_CATEGORY_UNPROT_DMG = 20, 146 ACTION_CATEGORY_VHT = 21, 147 ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED = 126, 148 ACTION_CATEGORY_VENDOR_SPECIFIC = 127, 149 }; 150 151 /** 152 * enum spectrum_mgmt_actioncode - spectrum mgmt. action frms 153 * @ACTION_SPCT_MSR_REQ: spectrum measurement request frame 154 * @ACTION_SPCT_MSR_RPRT: spectrum measurement report frame 155 * @ACTION_SPCT_TPC_REQ: spectrum tpc request frame 156 * @ACTION_SPCT_TPC_RPRT: spectrum tpc report frame 157 * @ACTION_SPCT_CHL_SWITCH: spectrum channel switch frame 158 */ 159 enum spectrum_mgmt_actioncode { 160 ACTION_SPCT_MSR_REQ, 161 ACTION_SPCT_MSR_RPRT, 162 ACTION_SPCT_TPC_REQ, 163 ACTION_SPCT_TPC_RPRT, 164 ACTION_SPCT_CHL_SWITCH, 165 }; 166 167 /** 168 * enum qos_actioncode - qos action frames 169 * @QOS_ADD_TS_REQ: qos add ts request frame 170 * @QOS_ADD_TS_RSP: qos add ts response frame 171 * @QOS_DEL_TS_REQ: qos del ts request frame 172 * @QOS_SCHEDULE: qos schecule frame 173 * @QOS_MAP_CONFIGURE: qos map configure frame 174 */ 175 enum qos_actioncode { 176 QOS_ADD_TS_REQ, 177 QOS_ADD_TS_RSP, 178 QOS_DEL_TS_REQ, 179 QOS_SCHEDULE, 180 QOS_MAP_CONFIGURE, 181 }; 182 183 /** 184 * enum dls_actioncode - dls action frames 185 * @DLS_REQUEST: dls request frame 186 * @DLS_RESPONSE: dls response frame 187 * @DLS_TEARDOWN: dls teardown frame 188 */ 189 enum dls_actioncode { 190 DLS_REQUEST, 191 DLS_RESPONSE, 192 DLS_TEARDOWN, 193 }; 194 195 /** 196 * enum block_ack_actioncode - block ack action frames 197 * @ADDBA_REQUEST: add block ack request frame 198 * @ADDBA_RESPONSE: add block ack response frame 199 * @DELBA: delete block ack frame 200 */ 201 enum block_ack_actioncode { 202 ADDBA_REQUEST, 203 ADDBA_RESPONSE, 204 DELBA, 205 }; 206 207 /** 208 * enum pub_actioncode - public action frames 209 * @PUB_ACTION_2040_BSS_COEXISTENCE: public 20-40 bss coex action frame 210 * @PUB_ACTION_EXT_CHANNEL_SWITCH_ID: public ext channel switch id action frame 211 * @PUB_ACTION_VENDOR_SPECIFIC: vendor specific public action frame 212 * @PUB_ACTION_GAS_INITIAL_REQUEST: GAS initial request action frame 213 * @PUB_ACTION_GAS_INITIAL_RESPONSE: GAS initial response action frame 214 * @PUB_ACTION_GAS_COMEBACK_REQUEST: GAS comeback request action frame 215 * @PUB_ACTION_GAS_COMEBACK_RESPONSE: GAS comeback respose action frame 216 * @PUB_ACTION_TDLS_DISCRESP: tdls discovery response public action frame 217 */ 218 enum pub_actioncode { 219 PUB_ACTION_2040_BSS_COEXISTENCE = 0, 220 PUB_ACTION_EXT_CHANNEL_SWITCH_ID = 4, 221 PUB_ACTION_VENDOR_SPECIFIC = 9, 222 PUB_ACTION_GAS_INITIAL_REQUEST = 10, 223 PUB_ACTION_GAS_INITIAL_RESPONSE = 11, 224 PUB_ACTION_GAS_COMEBACK_REQUEST = 12, 225 PUB_ACTION_GAS_COMEBACK_RESPONSE = 13, 226 PUB_ACTION_TDLS_DISCRESP = 14, 227 }; 228 229 /** 230 * enum rrm_actioncode - rrm action frames 231 * @RRM_RADIO_MEASURE_REQ: rrm radio meas. request frame 232 * @RRM_RADIO_MEASURE_RPT: rrm radio meas. report frame 233 * @RRM_LINK_MEASUREMENT_REQ: rrm link meas. request frmae 234 * @RRM_LINK_MEASUREMENT_RPT: rrm link meas. report frame 235 * @RRM_NEIGHBOR_REQ: rrm neighbor request frame 236 * @RRM_NEIGHBOR_RPT: rrm neighbor report frame 237 */ 238 enum rrm_actioncode { 239 RRM_RADIO_MEASURE_REQ, 240 RRM_RADIO_MEASURE_RPT, 241 RRM_LINK_MEASUREMENT_REQ, 242 RRM_LINK_MEASUREMENT_RPT, 243 RRM_NEIGHBOR_REQ, 244 RRM_NEIGHBOR_RPT, 245 }; 246 247 /** 248 * enum ht_actioncode - ht action frames 249 * @HT_ACTION_NOTIFY_CHANWIDTH: ht notify bw action frame 250 * @HT_ACTION_SMPS: ht smps action frame 251 * @HT_ACTION_PSMP: ht psmp action frame 252 * @HT_ACTION_PCO_PHASE: ht pco phase action frame 253 * @HT_ACTION_CSI: ht csi action frame 254 * @HT_ACTION_NONCOMPRESSED_BF: ht noncompressed bf action frame 255 * @HT_ACTION_COMPRESSED_BF: ht compressed bf action frame 256 * @HT_ACTION_ASEL_IDX_FEEDBACK: ht asel idx feedback action frame 257 */ 258 enum ht_actioncode { 259 HT_ACTION_NOTIFY_CHANWIDTH, 260 HT_ACTION_SMPS, 261 HT_ACTION_PSMP, 262 HT_ACTION_PCO_PHASE, 263 HT_ACTION_CSI, 264 HT_ACTION_NONCOMPRESSED_BF, 265 HT_ACTION_COMPRESSED_BF, 266 HT_ACTION_ASEL_IDX_FEEDBACK, 267 }; 268 269 /** 270 * enum sa_query_action - sa query action frames 271 * @SA_QUERY_REQUEST: sa query request frame 272 * @SA_QUERY_RESPONSE: sa query response frame 273 */ 274 enum sa_query_action { 275 SA_QUERY_REQUEST, 276 SA_QUERY_RESPONSE, 277 }; 278 279 /** 280 * enum protected_dual_actioncode - protected dual action frames 281 * @PDPA_GAS_INIT_REQ: pdpa gas init request frame 282 * @PDPA_GAS_INIT_RSP: pdpa gas init response frame 283 * @PDPA_GAS_COMEBACK_REQ: pdpa gas comeback request frame 284 * @PDPA_GAS_COMEBACK_RSP: pdpa gas comeback response frame 285 */ 286 enum protected_dual_actioncode { 287 PDPA_GAS_INIT_REQ = 10, 288 PDPA_GAS_INIT_RSP = 11, 289 PDPA_GAS_COMEBACK_REQ = 12, 290 PDPA_GAS_COMEBACK_RSP = 13, 291 }; 292 293 /** 294 * enum wnm_actioncode - wnm action frames 295 * @WNM_BSS_TM_QUERY: wnm bss tm query frame 296 * @WNM_BSS_TM_REQUEST: wnm bss tm request frame 297 * @WNM_BSS_TM_RESPONSE: wnm bss tm response frame 298 * @WNM_FMS_REQ: wnm fms request frame 299 * @WNM_FMS_RESP: wnm fms response frame 300 * @WNM_TFS_REQ: wnm tfs request frame 301 * @WNM_TFS_RESP: wnm tfs response frame 302 * @WNM_TFS_NOTIFY: wnm tfs notify frame 303 * @WNM_SLEEP_REQ: wnm sleep request frame 304 * @WNM_SLEEP_RESP: wnm sleep response frame 305 * @WNM_TIM_REQ: wnm Tim broadcast request frame 306 * @WNM_TIM_RESP: wnm Tim broadcast response frame 307 * @WNM_NOTIF_REQUEST: wnm notify request frame 308 * @WNM_NOTIF_RESPONSE: wnm notify response frame 309 */ 310 enum wnm_actioncode { 311 WNM_BSS_TM_QUERY = 6, 312 WNM_BSS_TM_REQUEST = 7, 313 WNM_BSS_TM_RESPONSE = 8, 314 WNM_FMS_REQ = 9, 315 WNM_FMS_RESP = 10, 316 WNM_TFS_REQ = 13, 317 WNM_TFS_RESP = 14, 318 WNM_TFS_NOTIFY = 15, 319 WNM_SLEEP_REQ = 16, 320 WNM_SLEEP_RESP = 17, 321 WNM_TIM_REQ = 18, 322 WNM_TIM_RESP = 19, 323 WNM_NOTIF_REQUEST = 26, 324 WNM_NOTIF_RESPONSE = 27, 325 }; 326 327 /** 328 * enum tdls_actioncode - tdls action frames 329 * @TDLS_SETUP_REQUEST: tdls setup request frame 330 * @TDLS_SETUP_RESPONSE: tdls setup response frame 331 * @TDLS_SETUP_CONFIRM: tdls setup confirm frame 332 * @TDLS_TEARDOWN: tdls teardown frame 333 * @TDLS_PEER_TRAFFIC_INDICATION: tdls peer traffic indication frame 334 * @TDLS_CHANNEL_SWITCH_REQUEST: tdls channel switch req. frame 335 * @TDLS_CHANNEL_SWITCH_RESPONSE: tdls channel switch response frame 336 * @TDLS_PEER_PSM_REQUEST: tdls peer psm request frame 337 * @TDLS_PEER_PSM_RESPONSE: tdls peer psm response frame 338 * @TDLS_PEER_TRAFFIC_RESPONSE: tdls peer traffic response frame 339 * @TDLS_DISCOVERY_REQUEST: tdls discovery request frame 340 */ 341 enum tdls_actioncode { 342 TDLS_SETUP_REQUEST = 0, 343 TDLS_SETUP_RESPONSE = 1, 344 TDLS_SETUP_CONFIRM = 2, 345 TDLS_TEARDOWN = 3, 346 TDLS_PEER_TRAFFIC_INDICATION = 4, 347 TDLS_CHANNEL_SWITCH_REQUEST = 5, 348 TDLS_CHANNEL_SWITCH_RESPONSE = 6, 349 TDLS_PEER_PSM_REQUEST = 7, 350 TDLS_PEER_PSM_RESPONSE = 8, 351 TDLS_PEER_TRAFFIC_RESPONSE = 9, 352 TDLS_DISCOVERY_REQUEST = 10, 353 TDLS_DISCOVERY_RESPONSE = 14, 354 }; 355 356 /** 357 * enum mesh_actioncode - mesh action frames 358 * @MESH_ACTION_LINK_METRIC_REPORT: mesh link metric report action frame 359 * @MESH_ACTION_HWMP_PATH_SELECTION: mesh hwmp path selection action frame 360 * @MESH_ACTION_GATE_ANNOUNCEMENT: mesh gate announcement action frame 361 * @MESH_ACTION_CONGESTION_CONTROL_NOTIFICATION: mesh congestion control frame 362 * @MESH_ACTION_MCCA_SETUP_REQUEST: mesh mcca setup request action frame 363 * @MESH_ACTION_MCCA_SETUP_REPLY: mesh mcca setup reply action frame 364 * @MESH_ACTION_MCCA_ADVERTISEMENT_REQUEST: mesh mcca advertisement req. frame 365 * @MESH_ACTION_MCCA_ADVERTISEMENT: mesh mcca advertisement action frame 366 * @MESH_ACTION_MCCA_TEARDOWN: mesh mcca teardown action frame 367 * @MESH_ACTION_TBTT_ADJUSTMENT_REQUEST: mesh tbtt adjustment req. frame 368 * @MESH_ACTION_TBTT_ADJUSTMENT_RESPONSE: mesh tbtt adjustment rsp. frame 369 */ 370 enum mesh_actioncode { 371 MESH_ACTION_LINK_METRIC_REPORT, 372 MESH_ACTION_HWMP_PATH_SELECTION, 373 MESH_ACTION_GATE_ANNOUNCEMENT, 374 MESH_ACTION_CONGESTION_CONTROL_NOTIFICATION, 375 MESH_ACTION_MCCA_SETUP_REQUEST, 376 MESH_ACTION_MCCA_SETUP_REPLY, 377 MESH_ACTION_MCCA_ADVERTISEMENT_REQUEST, 378 MESH_ACTION_MCCA_ADVERTISEMENT, 379 MESH_ACTION_MCCA_TEARDOWN, 380 MESH_ACTION_TBTT_ADJUSTMENT_REQUEST, 381 MESH_ACTION_TBTT_ADJUSTMENT_RESPONSE, 382 }; 383 384 /** 385 * enum self_protected_actioncode - self protected action frames 386 * @SP_RESERVED: self protected reserved 387 * @SP_MESH_PEERING_OPEN: self protected mesh peering open frame 388 * @SP_MESH_PEERING_CONFIRM: self protected mesh peering confirm frame 389 * @SP_MESH_PEERING_CLOSE: self protected mesh peering close frame 390 * @SP_MGK_INFORM: self protected mgk inform frame 391 * @SP_MGK_ACK: self protected mgk ack frame 392 */ 393 enum self_protected_actioncode { 394 SP_RESERVED, 395 SP_MESH_PEERING_OPEN, 396 SP_MESH_PEERING_CONFIRM, 397 SP_MESH_PEERING_CLOSE, 398 SP_MGK_INFORM, 399 SP_MGK_ACK, 400 }; 401 402 /** 403 * enum wmm_actioncode - wmm action frames 404 * @WMM_QOS_SETUP_REQ: wmm qos setup request frame 405 * @WMM_QOS_SETUP_RESP: q wmm qos setup response frame 406 * @WMM_QOS_TEARDOWN: wmm qos teardown frame 407 */ 408 enum wmm_actioncode { 409 WMM_QOS_SETUP_REQ, 410 WMM_QOS_SETUP_RESP, 411 WMM_QOS_TEARDOWN, 412 }; 413 414 /** 415 * enum vht_actioncode - vht action frames 416 * @VHT_ACTION_COMPRESSED_BF: vht compressed bf action frame 417 * @VHT_ACTION_GID_NOTIF: vht gid notification action frame 418 * @VHT_ACTION_OPMODE_NOTIF: vht opmode notification action frame 419 */ 420 enum vht_actioncode { 421 VHT_ACTION_COMPRESSED_BF, 422 VHT_ACTION_GID_NOTIF, 423 VHT_ACTION_OPMODE_NOTIF, 424 }; 425 426 /** 427 * struct action_frm_hdr - action frame header 428 * @action_category: action category 429 * @action_code: action code 430 */ 431 struct action_frm_hdr { 432 uint8_t action_category; 433 uint8_t action_code; 434 }; 435 436 /** 437 * enum mgmt_frame_type - enum of mgmt. frames 438 * @MGMT_FRM_UNSPECIFIED: unspecified 439 * @MGMT_ASSOC_REQ: association request frame 440 * @MGMT_ASSOC_RESP: association response frame 441 * @MGMT_REASSOC_REQ: reassociation request frame 442 * @MGMT_REASSOC_RESP: reassociation response frame 443 * @MGMT_PROBE_REQ: probe request frame 444 * @MGMT_PROBE_RESP: probe response frame 445 * @MGMT_BEACON: beacon frame 446 * @MGMT_ATIM: ATIM frame 447 * @MGMT_DISASSOC: disassociation frame 448 * @MGMT_AUTH: authentication frame 449 * @MGMT_DEAUTH: deauthentication frame 450 * @MGMT_ACTION_MEAS_REQUEST: measure channels request action frame 451 * @MGMT_ACTION_MEAS_REPORT: measure channels response action frame 452 * @MGMT_ACTION_TPC_REQUEST: transmit power control request action frame 453 * @MGMT_ACTION_TPC_REPORT: transmit power control response action frame 454 * @MGMT_ACTION_CHAN_SWITCH: 802.11 channel switch announcement frame 455 * @MGMT_ACTION_QOS_ADD_TS_REQ: qos add ts request frame 456 * @MGMT_ACTION_QOS_ADD_TS_RSP: qos add ts response frame 457 * @MGMT_ACTION_QOS_DEL_TS_REQ: qos del ts request frame 458 * @MGMT_ACTION_QOS_SCHEDULE: qos schedule frame 459 * @MGMT_ACTION_QOS_MAP_CONFIGURE: qos map configure frame 460 * @MGMT_ACTION_DLS_REQUEST: DLS request action frame 461 * @MGMT_ACTION_DLS_RESPONSE: DLS response action frame 462 * @MGMT_ACTION_DLS_TEARDOWN: DLS taerdown action frame 463 * @MGMT_ACTION_BA_ADDBA_REQUEST: ADDBA request action frame 464 * @MGMT_ACTION_BA_ADDBA_RESPONSE: ADDBA response action frame 465 * @MGMT_ACTION_BA_DELBA: DELBA action frame 466 * @MGMT_ACTION_2040_BSS_COEXISTENCE: 20-40 bss coex action frame 467 * @MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC: category vendor spcific action frame 468 * @MGMT_ACTION_EXT_CHANNEL_SWITCH_ID: ext channel switch id action frame 469 * @MGMT_ACTION_VENDOR_SPECIFIC: vendor specific action frame 470 * @MGMT_ACTION_TDLS_DISCRESP: TDLS discovery response frame 471 * @MGMT_ACTION_RRM_RADIO_MEASURE_REQ: rrm radio meas. req. action frame 472 * @MGMT_ACTION_RRM_RADIO_MEASURE_RPT: rrm radio meas. report action frame 473 * @MGMT_ACTION_RRM_LINK_MEASUREMENT_REQ: rrm link meas. req. action frame 474 * @MGMT_ACTION_RRM_LINK_MEASUREMENT_RPT: rrm link meas. report action frame 475 * @MGMT_ACTION_RRM_NEIGHBOR_REQ: rrm neighbor request action frame 476 * @MGMT_ACTION_RRM_NEIGHBOR_RPT: rrm neighbor response action frame 477 * @MGMT_ACTION_HT_NOTIFY_CHANWIDTH: notify channel width action frame 478 * @MGMT_ACTION_HT_SMPS: spatial multiplexing power save action frame 479 * @MGMT_ACTION_HT_PSMP: psmp action frame 480 * @MGMT_ACTION_HT_PCO_PHASE: pco phase action frame 481 * @MGMT_ACTION_HT_CSI: CSI action frame 482 * @MGMT_ACTION_HT_NONCOMPRESSED_BF: non-compressed beamforming action frame 483 * @MGMT_ACTION_HT_COMPRESSED_BF: compressed beamforming action frame 484 * @MGMT_ACTION_HT_ASEL_IDX_FEEDBACK: asel idx feedback action frame 485 * @MGMT_ACTION_SA_QUERY_REQUEST: SA query request frame 486 * @MGMT_ACTION_SA_QUERY_RESPONSE: SA query response frame 487 * @MGMT_ACTION_PDPA_GAS_INIT_REQ: pdpa gas init request action frame 488 * @MGMT_ACTION_PDPA_GAS_INIT_RSP: pdpa gas init response frame 489 * @MGMT_ACTION_PDPA_GAS_COMEBACK_REQ: pdpa gas comeback req. action frame 490 * @MGMT_ACTION_PDPA_GAS_COMEBACK_RSP: pdpa gas comeback rsp. action frame 491 * @MGMT_ACTION_WNM_BSS_TM_QUERY: wnm bss tm query action frame 492 * @MGMT_ACTION_WNM_BSS_TM_REQUEST: wnm bss tm request action frame 493 * @MGMT_ACTION_WNM_BSS_TM_RESPONSE: wnm bss tm response action frame 494 * @MGMT_ACTION_WNM_NOTIF_REQUEST: wnm notification request action frame 495 * @MGMT_ACTION_WNM_NOTIF_RESPONSE: wnm notification response action frame 496 * @MGMT_ACTION_WNM_FMS_REQ: wnm fms request frame 497 * @MGMT_ACTION_WNM_FMS_RESP: wnm fms response frame 498 * @MGMT_ACTION_WNM_TFS_REQ: wnm tfs request frame 499 * @MGMT_ACTION_WNM_TFS_RESP: wnm tfs response frame 500 * @MGMT_ACTION_WNM_TFS_NOTIFY: wnm tfs notify frame 501 * @MGMT_ACTION_WNM_SLEEP_REQ: wnm sleep request frame 502 * @MGMT_ACTION_WNM_SLEEP_RESP: wnm sleep response frame 503 * @MGMT_ACTION_WNM_TIM_REQ: wnm Tim broadcast request frame 504 * @MGMT_ACTION_WNM_TIM_RESP: wnm Tim broadcast response frame 505 * @MGMT_ACTION_TDLS_SETUP_REQ: tdls setup request action frame 506 * @MGMT_ACTION_TDLS_SETUP_RSP: tdls setup response frame 507 * @MGMT_ACTION_TDLS_SETUP_CNF: tdls setup confirm frame 508 * @MGMT_ACTION_TDLS_TEARDOWN: tdls teardown frame 509 * @MGMT_ACTION_TDLS_PEER_TRAFFIC_IND: tdls peer traffic indication frame 510 * @MGMT_ACTION_TDLS_CH_SWITCH_REQ: tdls channel switch req. frame 511 * @MGMT_ACTION_TDLS_CH_SWITCH_RSP: tdls channel switch response frame 512 * @MGMT_ACTION_TDLS_PEER_PSM_REQUEST: tdls peer psm request frame 513 * @MGMT_ACTION_TDLS_PEER_PSM_RESPONSE: tdls peer psm response frame 514 * @MGMT_ACTION_TDLS_PEER_TRAFFIC_RSP: tdls peer traffic response frame 515 * @MGMT_ACTION_TDLS_DIS_REQ: tdls discovery request frame 516 * @MGMT_ACTION_MESH_LINK_METRIC_REPORT: mesh link metric report action frame 517 * @MGMT_ACTION_MESH_HWMP_PATH_SELECTION: mesh hwmp path selection action frame 518 * @MGMT_ACTION_MESH_GATE_ANNOUNCEMENT: mesh gate announcement action frame 519 * @MGMT_ACTION_MESH_CONGESTION_CONTROL_NOTIFICATION: mesh congestion control 520 * @MGMT_ACTION_MESH_MCCA_SETUP_REQUEST: mesh mcca setup request action frame 521 * @MGMT_ACTION_MESH_MCCA_SETUP_REPLY: mesh mcca setup reply action frame 522 * @MGMT_ACTION_MESH_MCCA_ADVERTISEMENT_REQUEST: mesh mcca advertisement req. 523 * @MGMT_ACTION_MESH_MCCA_ADVERTISEMENT: mesh mcca advertisement action frame 524 * @MGMT_ACTION_MESH_MCCA_TEARDOWN: mesh mcca teardown action fram 525 * @MGMT_ACTION_MESH_TBTT_ADJUSTMENT_REQUEST: mesh tbtt adjustment req. frame 526 * @MGMT_ACTION_MESH_TBTT_ADJUSTMENT_RESPONSE: mesh tbtt adjustment rsp. frame 527 * @MGMT_ACTION_SP_MESH_PEERING_OPEN: self protected mesh peering open frame 528 * @MGMT_ACTION_SP_MESH_PEERING_CONFIRM: self protected mesh peering confirm 529 * @MGMT_ACTION_SP_MESH_PEERING_CLOSE: self protected mesh peering close frame 530 * @MGMT_ACTION_SP_MGK_INFORM: self protected mgk inform frame 531 * @MGMT_ACTION_SP_MGK_ACK: self protected mgk ack frame 532 * @MGMT_ACTION_WMM_QOS_SETUP_REQ: WMM qos setup request action frame 533 * @MGMT_ACTION_WMM_QOS_SETUP_RESP: WMM qos setup response action frame 534 * @MGMT_ACTION_WMM_QOS_TEARDOWN: WMM qos teardown action frame 535 * @MGMT_ACTION_VHT_COMPRESSED_BF: vht compressed bf action frame 536 * @MGMT_ACTION_VHT_GID_NOTIF: vht gid notification action frame 537 * @MGMT_ACTION_VHT_OPMODE_NOTIF: vht opmode notification action frame 538 * @MGMT_FRAME_TYPE_ALL: mgmt frame type for all type of frames 539 * @MGMT_MAX_FRAME_TYPE: max. mgmt frame types 540 * @MGMT_ACTION_GAS_INITIAL_REQUEST: GAS Initial request action frame 541 * @MGMT_ACTION_GAS_INITIAL_RESPONSE: GAS Initial response action frame 542 * @MGMT_ACTION_GAS_COMEBACK_REQUEST: GAS Comeback request action frame 543 * @MGMT_ACTION_GAS_COMEBACK_RESPONSE: GAS Comeback response action frame 544 */ 545 enum mgmt_frame_type { 546 MGMT_FRM_UNSPECIFIED = -1, 547 MGMT_ASSOC_REQ, 548 MGMT_ASSOC_RESP, 549 MGMT_REASSOC_REQ, 550 MGMT_REASSOC_RESP, 551 MGMT_PROBE_REQ, 552 MGMT_PROBE_RESP, 553 MGMT_BEACON, 554 MGMT_ATIM, 555 MGMT_DISASSOC, 556 MGMT_AUTH, 557 MGMT_DEAUTH, 558 MGMT_ACTION_MEAS_REQUEST, 559 MGMT_ACTION_MEAS_REPORT, 560 MGMT_ACTION_TPC_REQUEST, 561 MGMT_ACTION_TPC_REPORT, 562 MGMT_ACTION_CHAN_SWITCH, 563 MGMT_ACTION_QOS_ADD_TS_REQ, 564 MGMT_ACTION_QOS_ADD_TS_RSP, 565 MGMT_ACTION_QOS_DEL_TS_REQ, 566 MGMT_ACTION_QOS_SCHEDULE, 567 MGMT_ACTION_QOS_MAP_CONFIGURE, 568 MGMT_ACTION_DLS_REQUEST, 569 MGMT_ACTION_DLS_RESPONSE, 570 MGMT_ACTION_DLS_TEARDOWN, 571 MGMT_ACTION_BA_ADDBA_REQUEST, 572 MGMT_ACTION_BA_ADDBA_RESPONSE, 573 MGMT_ACTION_BA_DELBA, 574 MGMT_ACTION_2040_BSS_COEXISTENCE, 575 MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC, 576 MGMT_ACTION_EXT_CHANNEL_SWITCH_ID, 577 MGMT_ACTION_VENDOR_SPECIFIC, 578 MGMT_ACTION_TDLS_DISCRESP, 579 MGMT_ACTION_RRM_RADIO_MEASURE_REQ, 580 MGMT_ACTION_RRM_RADIO_MEASURE_RPT, 581 MGMT_ACTION_RRM_LINK_MEASUREMENT_REQ, 582 MGMT_ACTION_RRM_LINK_MEASUREMENT_RPT, 583 MGMT_ACTION_RRM_NEIGHBOR_REQ, 584 MGMT_ACTION_RRM_NEIGHBOR_RPT, 585 MGMT_ACTION_HT_NOTIFY_CHANWIDTH, 586 MGMT_ACTION_HT_SMPS, 587 MGMT_ACTION_HT_PSMP, 588 MGMT_ACTION_HT_PCO_PHASE, 589 MGMT_ACTION_HT_CSI, 590 MGMT_ACTION_HT_NONCOMPRESSED_BF, 591 MGMT_ACTION_HT_COMPRESSED_BF, 592 MGMT_ACTION_HT_ASEL_IDX_FEEDBACK, 593 MGMT_ACTION_SA_QUERY_REQUEST, 594 MGMT_ACTION_SA_QUERY_RESPONSE, 595 MGMT_ACTION_PDPA_GAS_INIT_REQ, 596 MGMT_ACTION_PDPA_GAS_INIT_RSP, 597 MGMT_ACTION_PDPA_GAS_COMEBACK_REQ, 598 MGMT_ACTION_PDPA_GAS_COMEBACK_RSP, 599 MGMT_ACTION_WNM_BSS_TM_QUERY, 600 MGMT_ACTION_WNM_BSS_TM_REQUEST, 601 MGMT_ACTION_WNM_BSS_TM_RESPONSE, 602 MGMT_ACTION_WNM_NOTIF_REQUEST, 603 MGMT_ACTION_WNM_NOTIF_RESPONSE, 604 MGMT_ACTION_WNM_FMS_REQ, 605 MGMT_ACTION_WNM_FMS_RESP, 606 MGMT_ACTION_WNM_TFS_REQ, 607 MGMT_ACTION_WNM_TFS_RESP, 608 MGMT_ACTION_WNM_TFS_NOTIFY, 609 MGMT_ACTION_WNM_SLEEP_REQ, 610 MGMT_ACTION_WNM_SLEEP_RESP, 611 MGMT_ACTION_WNM_TIM_REQ, 612 MGMT_ACTION_WNM_TIM_RESP, 613 MGMT_ACTION_TDLS_SETUP_REQ, 614 MGMT_ACTION_TDLS_SETUP_RSP, 615 MGMT_ACTION_TDLS_SETUP_CNF, 616 MGMT_ACTION_TDLS_TEARDOWN, 617 MGMT_ACTION_TDLS_PEER_TRAFFIC_IND, 618 MGMT_ACTION_TDLS_CH_SWITCH_REQ, 619 MGMT_ACTION_TDLS_CH_SWITCH_RSP, 620 MGMT_ACTION_TDLS_PEER_PSM_REQUEST, 621 MGMT_ACTION_TDLS_PEER_PSM_RESPONSE, 622 MGMT_ACTION_TDLS_PEER_TRAFFIC_RSP, 623 MGMT_ACTION_TDLS_DIS_REQ, 624 MGMT_ACTION_MESH_LINK_METRIC_REPORT, 625 MGMT_ACTION_MESH_HWMP_PATH_SELECTION, 626 MGMT_ACTION_MESH_GATE_ANNOUNCEMENT, 627 MGMT_ACTION_MESH_CONGESTION_CONTROL_NOTIFICATION, 628 MGMT_ACTION_MESH_MCCA_SETUP_REQUEST, 629 MGMT_ACTION_MESH_MCCA_SETUP_REPLY, 630 MGMT_ACTION_MESH_MCCA_ADVERTISEMENT_REQUEST, 631 MGMT_ACTION_MESH_MCCA_ADVERTISEMENT, 632 MGMT_ACTION_MESH_MCCA_TEARDOWN, 633 MGMT_ACTION_MESH_TBTT_ADJUSTMENT_REQUEST, 634 MGMT_ACTION_MESH_TBTT_ADJUSTMENT_RESPONSE, 635 MGMT_ACTION_SP_MESH_PEERING_OPEN, 636 MGMT_ACTION_SP_MESH_PEERING_CONFIRM, 637 MGMT_ACTION_SP_MESH_PEERING_CLOSE, 638 MGMT_ACTION_SP_MGK_INFORM, 639 MGMT_ACTION_SP_MGK_ACK, 640 MGMT_ACTION_WMM_QOS_SETUP_REQ, 641 MGMT_ACTION_WMM_QOS_SETUP_RESP, 642 MGMT_ACTION_WMM_QOS_TEARDOWN, 643 MGMT_ACTION_VHT_COMPRESSED_BF, 644 MGMT_ACTION_VHT_GID_NOTIF, 645 MGMT_ACTION_VHT_OPMODE_NOTIF, 646 MGMT_ACTION_GAS_INITIAL_REQUEST, 647 MGMT_ACTION_GAS_INITIAL_RESPONSE, 648 MGMT_ACTION_GAS_COMEBACK_REQUEST, 649 MGMT_ACTION_GAS_COMEBACK_RESPONSE, 650 MGMT_FRAME_TYPE_ALL, 651 MGMT_MAX_FRAME_TYPE, 652 }; 653 654 #define WLAN_MGMT_TXRX_HOST_MAX_ANTENNA 4 655 #define WLAN_INVALID_PER_CHAIN_RSSI 0xFF 656 #define WLAN_INVALID_PER_CHAIN_SNR 0x80 657 #define WLAN_NOISE_FLOOR_DBM_DEFAULT -96 658 /** 659 * struct mgmt_rx_event_params - host mgmt header params 660 * @channel: channel on which this frame is received 661 * @snr: snr information used to call rssi 662 * @rssi_ctl[WLAN_MGMT_TXRX_HOST_MAX_ANTENNA]: RSSI of PRI 20MHz for each chain 663 * @rate: Rate kbps 664 * @phy_mode: rx phy mode 665 * @buf_len: length of the frame 666 * @status: rx status 667 * @flags: information about the management frame e.g. can give a 668 * scan source for a scan result mgmt frame 669 * @rssi: combined RSSI, i.e. the sum of the snr + noise floor (dBm units) 670 * @tsf_delta: tsf delta 671 * @pdev_id: pdev id 672 * @rx_params: pointer to other rx params 673 * (win specific, will be removed in phase 4) 674 */ 675 struct mgmt_rx_event_params { 676 uint32_t channel; 677 uint32_t snr; 678 uint8_t rssi_ctl[WLAN_MGMT_TXRX_HOST_MAX_ANTENNA]; 679 uint32_t rate; 680 enum wlan_phymode phy_mode; 681 uint32_t buf_len; 682 QDF_STATUS status; 683 uint32_t flags; 684 int32_t rssi; 685 uint32_t tsf_delta; 686 uint8_t pdev_id; 687 void *rx_params; 688 }; 689 690 /** 691 * mgmt_tx_download_comp_cb - function pointer for tx download completions. 692 * @context: caller component specific context 693 * @buf: buffer 694 * @free: to free/not free the buffer 695 * 696 * This is the function pointer to be called on tx download completion 697 * if download complete is required. 698 * 699 * Return: QDF_STATUS_SUCCESS - in case of success 700 */ 701 typedef QDF_STATUS (*mgmt_tx_download_comp_cb)(void *context, 702 qdf_nbuf_t buf, bool free); 703 704 /** 705 * mgmt_ota_comp_cb - function pointer for tx ota completions. 706 * @context: caller component specific context 707 * @buf: buffer 708 * @status: tx completion status 709 * @tx_compl_params: tx completion params 710 * 711 * This is the function pointer to be called on tx ota completion. 712 * 713 * Return: QDF_STATUS_SUCCESS - in case of success 714 */ 715 typedef QDF_STATUS (*mgmt_ota_comp_cb)(void *context, qdf_nbuf_t buf, 716 uint32_t status, void *tx_compl_params); 717 718 /** 719 * mgmt_frame_rx_callback - function pointer for receiving mgmt rx frames 720 * @psoc: psoc context 721 * @peer: peer 722 * @buf: buffer 723 * @mgmt_rx_params: rx params 724 * @frm_type: mgmt rx frame type 725 * 726 * This is the function pointer to be called on receiving mgmt rx frames. 727 * 728 * Return: QDF_STATUS_SUCCESS - in case of success 729 */ 730 typedef QDF_STATUS (*mgmt_frame_rx_callback)( 731 struct wlan_objmgr_psoc *psoc, 732 struct wlan_objmgr_peer *peer, 733 qdf_nbuf_t buf, 734 struct mgmt_rx_event_params *mgmt_rx_params, 735 enum mgmt_frame_type frm_type); 736 737 /** 738 * mgmt_frame_fill_peer_cb - Function pointer to fill peer in the buf 739 * @peer: peer 740 * @buf: buffer 741 * 742 * This is the function pointer to be called during drain to fill the 743 * peer into the buf's cb structure. 744 * 745 * Return: QDF_STATUS_SUCCESS - in case of success 746 */ 747 typedef QDF_STATUS (*mgmt_frame_fill_peer_cb)( 748 struct wlan_objmgr_peer *peer, 749 qdf_nbuf_t buf); 750 751 /** 752 * struct mgmt_txrx_mgmt_frame_cb_info - frm and corresponding rx cb info 753 * @frm_type: mgmt frm type 754 * @mgmt_rx_cb: corresponding rx callback 755 */ 756 struct mgmt_txrx_mgmt_frame_cb_info { 757 enum mgmt_frame_type frm_type; 758 mgmt_frame_rx_callback mgmt_rx_cb; 759 }; 760 761 762 /** 763 * wlan_mgmt_txrx_init() - initialize mgmt txrx context. 764 * 765 * This function initializes the mgmt txrx context, 766 * mgmt descriptor pool, etc. 767 * 768 * Return: QDF_STATUS_SUCCESS - in case of success 769 */ 770 QDF_STATUS wlan_mgmt_txrx_init(void); 771 772 /** 773 * wlan_mgmt_txrx_deinit() - deinitialize mgmt txrx context. 774 * 775 * This function deinitializes the mgmt txrx context, 776 * mgmt descriptor pool, etc. 777 * 778 * Return: QDF_STATUS_SUCCESS - in case of success 779 */ 780 QDF_STATUS wlan_mgmt_txrx_deinit(void); 781 782 /** 783 * wlan_mgmt_txrx_mgmt_frame_tx() - transmits mgmt. frame 784 * @peer: peer 785 * @context: caller component specific context 786 * @buf: buffer to be transmitted 787 * @comp_cb: download completion cb function 788 * @ota_cb: post processing cb function 789 * @comp_id: umac component id 790 * @mgmt_tx_params: mgmt tx params 791 * 792 * This function transmits the mgmt. frame to southbound interface. 793 * 794 * Return: QDF_STATUS_SUCCESS - in case of success 795 */ 796 QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer, 797 void *context, 798 qdf_nbuf_t buf, 799 mgmt_tx_download_comp_cb tx_comp_cb, 800 mgmt_ota_comp_cb tx_ota_comp_cb, 801 enum wlan_umac_comp_id comp_id, 802 void *mgmt_tx_params); 803 804 /** 805 * wlan_mgmt_txrx_beacon_frame_tx() - transmits mgmt. beacon 806 * @psoc: psoc context 807 * @buf: buffer to be transmitted 808 * @comp_id: umac component id 809 * 810 * This function transmits the mgmt. beacon to southbound interface. 811 * 812 * Return: QDF_STATUS_SUCCESS - in case of success 813 */ 814 QDF_STATUS wlan_mgmt_txrx_beacon_frame_tx(struct wlan_objmgr_peer *peer, 815 qdf_nbuf_t buf, 816 enum wlan_umac_comp_id comp_id); 817 818 #ifdef WLAN_SUPPORT_FILS 819 /** 820 * wlan_mgmt_txrx_fd_action_frame_tx() - transmits mgmt. FD Action frame 821 * @vdev: vdev object 822 * @buf: buffer to be transmitted 823 * @comp_id: umac component id 824 * 825 * This function transmits the FILS Dicovery Action frame to 826 * southbound interface. 827 * 828 * Return: QDF_STATUS_SUCCESS - in case of success 829 */ 830 QDF_STATUS wlan_mgmt_txrx_fd_action_frame_tx(struct wlan_objmgr_vdev *vdev, 831 qdf_nbuf_t buf, 832 enum wlan_umac_comp_id comp_id); 833 #endif /* WLAN_SUPPORT_FILS */ 834 835 /** 836 * wlan_mgmt_txrx_register_rx_cb() - registers the rx cb for mgmt. frames 837 * @psoc: psoc context 838 * @comp_id: umac component id 839 * @frm_cb_info: pointer to array of structure containing frm type and callback 840 * @num_entries: num of frames for which cb to be registered 841 * 842 * This function registers rx callback for mgmt. frames for 843 * the corresponding umac component passed in the func. 844 * 845 * Return: QDF_STATUS_SUCCESS - in case of success 846 */ 847 QDF_STATUS wlan_mgmt_txrx_register_rx_cb( 848 struct wlan_objmgr_psoc *psoc, 849 enum wlan_umac_comp_id comp_id, 850 struct mgmt_txrx_mgmt_frame_cb_info *frm_cb_info, 851 uint8_t num_entries); 852 853 /** 854 * wlan_mgmt_txrx_vdev_drain() - Function to drain all mgmt packets 855 * specific to a vdev 856 * @vdev: vdev context 857 * @mgmt_fill_peer_cb: callback func to UMAC to fill peer into buf 858 * @status: opaque pointer about the status of the pkts passed to UMAC 859 * 860 * This function drains all mgmt packets of a vdev. This can be used in the 861 * event of target going down without sending completions. 862 * 863 * Return: QDF_STATUS_SUCCESS - in case of success 864 */ 865 QDF_STATUS wlan_mgmt_txrx_vdev_drain( 866 struct wlan_objmgr_vdev *vdev, 867 mgmt_frame_fill_peer_cb mgmt_fill_peer_cb, 868 void *status); 869 870 /** 871 * wlan_mgmt_txrx_deregister_rx_cb() - deregisters the rx cb for mgmt. frames 872 * @psoc: psoc context 873 * @comp_id: umac component id 874 * @frm_cb_info: pointer to array of structure containing frm type and callback 875 * @num_entries: num of frames for which cb to be deregistered 876 * 877 * This function deregisters rx callback for mgmt. frames for 878 * the corresponding umac component passed in the func. 879 * 880 * Return: QDF_STATUS_SUCCESS - in case of success 881 */ 882 QDF_STATUS wlan_mgmt_txrx_deregister_rx_cb( 883 struct wlan_objmgr_psoc *psoc, 884 enum wlan_umac_comp_id comp_id, 885 struct mgmt_txrx_mgmt_frame_cb_info *frm_cb_info, 886 uint8_t num_entries); 887 888 /** 889 * wlan_mgmt_txrx_psoc_open() - mgmt txrx module psoc open API 890 * @psoc: psoc context 891 * 892 * Return: QDF_STATUS_SUCCESS - in case of success 893 */ 894 QDF_STATUS wlan_mgmt_txrx_psoc_open(struct wlan_objmgr_psoc *psoc); 895 896 /** 897 * wlan_mgmt_txrx_psoc_close() - mgmt txrx module psoc close API 898 * @psoc: psoc context 899 * 900 * Return: QDF_STATUS_SUCCESS - in case of success 901 */ 902 QDF_STATUS wlan_mgmt_txrx_psoc_close(struct wlan_objmgr_psoc *psoc); 903 904 /** 905 * wlan_mgmt_txrx_pdev_open() - mgmt txrx module pdev open API 906 * @pdev: pdev context 907 * 908 * Return: QDF_STATUS_SUCCESS - in case of success 909 */ 910 QDF_STATUS wlan_mgmt_txrx_pdev_open(struct wlan_objmgr_pdev *pdev); 911 912 913 /** 914 * wlan_mgmt_txrx_pdev_close() - mgmt txrx module pdev close API 915 * @pdev: pdev context 916 * 917 * Return: QDF_STATUS_SUCCESS - in case of success 918 */ 919 QDF_STATUS wlan_mgmt_txrx_pdev_close(struct wlan_objmgr_pdev *pdev); 920 #endif 921 922 923