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