1 /* 2 * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. 3 * 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * @file cdp_txrx_ops.h 22 * @brief Define the host data path converged API functions 23 * called by the host control SW and the OS interface module 24 */ 25 #ifndef _CDP_TXRX_CMN_OPS_H_ 26 #define _CDP_TXRX_CMN_OPS_H_ 27 28 #include <cdp_txrx_cmn_struct.h> 29 #include <cdp_txrx_stats_struct.h> 30 #include "cdp_txrx_handle.h" 31 #include <cdp_txrx_mon_struct.h> 32 #include "wlan_objmgr_psoc_obj.h" 33 34 #ifdef IPA_OFFLOAD 35 #ifdef CONFIG_IPA_WDI_UNIFIED_API 36 #include <qdf_ipa_wdi3.h> 37 #else 38 #include <qdf_ipa.h> 39 #endif 40 #endif 41 42 /** 43 * bitmap values to indicate special handling of peer_delete 44 */ 45 #define CDP_PEER_DELETE_NO_SPECIAL 0 46 #define CDP_PEER_DO_NOT_START_UNMAP_TIMER 1 47 48 /* same as ieee80211_nac_param */ 49 enum cdp_nac_param_cmd { 50 /* IEEE80211_NAC_PARAM_ADD */ 51 CDP_NAC_PARAM_ADD = 1, 52 /* IEEE80211_NAC_PARAM_DEL */ 53 CDP_NAC_PARAM_DEL, 54 /* IEEE80211_NAC_PARAM_LIST */ 55 CDP_NAC_PARAM_LIST, 56 }; 57 /****************************************************************************** 58 * 59 * Control Interface (A Interface) 60 * 61 *****************************************************************************/ 62 63 struct cdp_cmn_ops { 64 65 int (*txrx_soc_attach_target)(ol_txrx_soc_handle soc); 66 67 int (*txrx_pdev_attach_target)(struct cdp_pdev *pdev); 68 69 struct cdp_vdev *(*txrx_vdev_attach) 70 (struct cdp_pdev *pdev, uint8_t *vdev_mac_addr, 71 uint8_t vdev_id, enum wlan_op_mode op_mode); 72 73 void (*txrx_vdev_detach) 74 (struct cdp_vdev *vdev, ol_txrx_vdev_delete_cb callback, 75 void *cb_context); 76 77 struct cdp_pdev *(*txrx_pdev_attach) 78 (ol_txrx_soc_handle soc, struct cdp_cfg *ctrl_pdev, 79 HTC_HANDLE htc_pdev, qdf_device_t osdev, uint8_t pdev_id); 80 81 int (*txrx_pdev_post_attach)(struct cdp_pdev *pdev); 82 83 void (*txrx_pdev_pre_detach)(struct cdp_pdev *pdev, int force); 84 85 void (*txrx_pdev_detach)(struct cdp_pdev *pdev, int force); 86 87 void *(*txrx_peer_create) 88 (struct cdp_vdev *vdev, uint8_t *peer_mac_addr); 89 90 void (*txrx_peer_setup) 91 (struct cdp_vdev *vdev_hdl, void *peer_hdl); 92 93 void (*txrx_peer_teardown) 94 (struct cdp_vdev *vdev_hdl, void *peer_hdl); 95 96 int (*txrx_peer_add_ast) 97 (ol_txrx_soc_handle soc, struct cdp_peer *peer_hdl, 98 uint8_t *mac_addr, enum cdp_txrx_ast_entry_type type, 99 uint32_t flags); 100 101 void (*txrx_peer_del_ast) 102 (ol_txrx_soc_handle soc, void *ast_hdl); 103 104 int (*txrx_peer_update_ast) 105 (ol_txrx_soc_handle soc, struct cdp_peer *peer_hdl, 106 void *ast_hdl, uint32_t flags); 107 108 void *(*txrx_peer_ast_hash_find) 109 (ol_txrx_soc_handle soc, uint8_t *ast_mac_addr); 110 111 uint8_t (*txrx_peer_ast_get_pdev_id) 112 (ol_txrx_soc_handle soc, void *ast_hdl); 113 114 uint8_t (*txrx_peer_ast_get_next_hop) 115 (ol_txrx_soc_handle soc, void *ast_hdl); 116 117 void (*txrx_peer_ast_set_type) 118 (ol_txrx_soc_handle soc, void *ast_hdl, 119 enum cdp_txrx_ast_entry_type type); 120 121 void (*txrx_peer_delete)(void *peer, uint32_t bitmap); 122 123 int (*txrx_set_monitor_mode)(struct cdp_vdev *vdev, 124 uint8_t smart_monitor); 125 126 uint8_t (*txrx_get_pdev_id_frm_pdev)(struct cdp_pdev *pdev); 127 128 void (*txrx_set_nac)(struct cdp_peer *peer); 129 130 void (*txrx_set_pdev_tx_capture)(struct cdp_pdev *pdev, int val); 131 132 void (*txrx_get_peer_mac_from_peer_id) 133 (struct cdp_pdev *pdev_handle, 134 uint32_t peer_id, uint8_t *peer_mac); 135 136 void (*txrx_vdev_tx_lock)(struct cdp_vdev *vdev); 137 138 void (*txrx_vdev_tx_unlock)(struct cdp_vdev *vdev); 139 140 void (*txrx_ath_getstats)(struct cdp_pdev *pdev, 141 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) 142 struct rtnl_link_stats64 *stats); 143 #else 144 struct net_device_stats *stats); 145 #endif 146 147 void (*txrx_set_gid_flag)(struct cdp_pdev *pdev, u_int8_t *mem_status, 148 u_int8_t *user_position); 149 150 uint32_t (*txrx_fw_supported_enh_stats_version)(struct cdp_pdev *pdev); 151 152 void (*txrx_if_mgmt_drain)(void *ni, int force); 153 154 void (*txrx_set_curchan)(struct cdp_pdev *pdev, uint32_t chan_mhz); 155 156 void (*txrx_set_privacy_filters) 157 (struct cdp_vdev *vdev, void *filter, uint32_t num); 158 159 /******************************************************************** 160 * Data Interface (B Interface) 161 ********************************************************************/ 162 163 void (*txrx_vdev_register)(struct cdp_vdev *vdev, 164 void *osif_vdev, struct ol_txrx_ops *txrx_ops); 165 166 int (*txrx_mgmt_send)(struct cdp_vdev *vdev, 167 qdf_nbuf_t tx_mgmt_frm, uint8_t type); 168 169 int (*txrx_mgmt_send_ext)(struct cdp_vdev *vdev, 170 qdf_nbuf_t tx_mgmt_frm, uint8_t type, uint8_t use_6mbps, 171 uint16_t chanfreq); 172 173 /** 174 * ol_txrx_mgmt_tx_cb - tx management delivery notification 175 * callback function 176 */ 177 178 void (*txrx_mgmt_tx_cb_set)(struct cdp_pdev *pdev, uint8_t type, 179 ol_txrx_mgmt_tx_cb download_cb, 180 ol_txrx_mgmt_tx_cb ota_ack_cb, 181 void *ctxt); 182 183 int (*txrx_get_tx_pending)(struct cdp_pdev *pdev); 184 185 /** 186 * ol_txrx_data_tx_cb - Function registered with the data path 187 * that is called when tx frames marked as "no free" are 188 * done being transmitted 189 */ 190 191 void (*txrx_data_tx_cb_set)(struct cdp_vdev *data_vdev, 192 ol_txrx_data_tx_cb callback, void *ctxt); 193 194 /******************************************************************* 195 * Statistics and Debugging Interface (C Inteface) 196 ********************************************************************/ 197 198 int (*txrx_aggr_cfg)(struct cdp_vdev *vdev, int max_subfrms_ampdu, 199 int max_subfrms_amsdu); 200 201 A_STATUS (*txrx_fw_stats_get)(struct cdp_vdev *vdev, 202 struct ol_txrx_stats_req *req, 203 bool per_vdev, bool response_expected); 204 205 int (*txrx_debug)(struct cdp_vdev *vdev, int debug_specs); 206 207 void (*txrx_fw_stats_cfg)(struct cdp_vdev *vdev, 208 uint8_t cfg_stats_type, uint32_t cfg_val); 209 210 void (*txrx_print_level_set)(unsigned level); 211 212 /** 213 * ol_txrx_get_vdev_mac_addr() - Return mac addr of vdev 214 * @vdev: vdev handle 215 * 216 * Return: vdev mac address 217 */ 218 uint8_t * (*txrx_get_vdev_mac_addr)(struct cdp_vdev *vdev); 219 220 /** 221 * ol_txrx_get_vdev_struct_mac_addr() - Return handle to struct qdf_mac_addr of 222 * vdev 223 * @vdev: vdev handle 224 * 225 * Return: Handle to struct qdf_mac_addr 226 */ 227 struct qdf_mac_addr * 228 (*txrx_get_vdev_struct_mac_addr)(struct cdp_vdev *vdev); 229 230 /** 231 * ol_txrx_get_pdev_from_vdev() - Return handle to pdev of vdev 232 * @vdev: vdev handle 233 * 234 * Return: Handle to pdev 235 */ 236 struct cdp_pdev *(*txrx_get_pdev_from_vdev) 237 (struct cdp_vdev *vdev); 238 239 /** 240 * ol_txrx_get_ctrl_pdev_from_vdev() - Return control pdev of vdev 241 * @vdev: vdev handle 242 * 243 * Return: Handle to control pdev 244 */ 245 struct cdp_cfg * 246 (*txrx_get_ctrl_pdev_from_vdev)(struct cdp_vdev *vdev); 247 248 struct cdp_vdev * 249 (*txrx_get_vdev_from_vdev_id)(struct cdp_pdev *pdev, 250 uint8_t vdev_id); 251 252 void (*txrx_soc_detach)(void *soc); 253 254 int (*addba_requestprocess)(void *peer_handle, uint8_t dialogtoken, 255 uint16_t tid, uint16_t batimeout, uint16_t buffersize, 256 uint16_t startseqnum); 257 258 void (*addba_responsesetup)(void *peer_handle, uint8_t tid, 259 uint8_t *dialogtoken, uint16_t *statuscode, 260 uint16_t *buffersize, uint16_t *batimeout); 261 262 int (*delba_process)(void *peer_handle, 263 int tid, uint16_t reasoncode); 264 265 void (*set_addba_response)(void *peer_handle, 266 uint8_t tid, uint16_t statuscode); 267 268 uint8_t (*get_peer_mac_addr_frm_id)(struct cdp_soc_t *soc_handle, 269 uint16_t peer_id, uint8_t *mac_addr); 270 271 void (*set_vdev_dscp_tid_map)(struct cdp_vdev *vdev_handle, 272 uint8_t map_id); 273 274 void (*flush_cache_rx_queue)(void); 275 void (*set_pdev_dscp_tid_map)(struct cdp_pdev *pdev, uint8_t map_id, 276 uint8_t tos, uint8_t tid); 277 278 int (*txrx_stats_request)(struct cdp_vdev *vdev, 279 struct cdp_txrx_stats_req *req); 280 281 QDF_STATUS (*display_stats)(void *psoc, uint16_t value, 282 enum qdf_stats_verbosity_level level); 283 void (*txrx_soc_set_nss_cfg)(ol_txrx_soc_handle soc, int config); 284 285 int(*txrx_soc_get_nss_cfg)(ol_txrx_soc_handle soc); 286 QDF_STATUS (*txrx_intr_attach)(void *soc); 287 void (*txrx_intr_detach)(void *soc); 288 void (*set_pn_check)(struct cdp_vdev *vdev, 289 struct cdp_peer *peer_handle, enum cdp_sec_type sec_type, 290 uint32_t *rx_pn); 291 QDF_STATUS (*update_config_parameters)(struct cdp_soc *psoc, 292 struct cdp_config_params *params); 293 294 void *(*get_dp_txrx_handle)(struct cdp_pdev *pdev_hdl); 295 void (*set_dp_txrx_handle)(struct cdp_pdev *pdev_hdl, 296 void *dp_txrx_hdl); 297 298 void *(*get_soc_dp_txrx_handle)(struct cdp_soc *soc_handle); 299 void (*set_soc_dp_txrx_handle)(struct cdp_soc *soc_handle, 300 void *dp_txrx_handle); 301 302 ol_txrx_tx_fp tx_send; 303 }; 304 305 struct cdp_ctrl_ops { 306 307 int 308 (*txrx_mempools_attach)(void *ctrl_pdev); 309 int 310 (*txrx_set_filter_neighbour_peers)( 311 struct cdp_pdev *pdev, 312 uint32_t val); 313 int 314 (*txrx_update_filter_neighbour_peers)( 315 struct cdp_pdev *pdev, 316 uint32_t cmd, uint8_t *macaddr); 317 /** 318 * @brief set the safemode of the device 319 * @details 320 * This flag is used to bypass the encrypt and decrypt processes when 321 * send and receive packets. It works like open AUTH mode, HW will 322 * ctreate all packets as non-encrypt frames because no key installed. 323 * For rx fragmented frames,it bypasses all the rx defragmentaion. 324 * 325 * @param vdev - the data virtual device object 326 * @param val - the safemode state 327 * @return - void 328 */ 329 330 void 331 (*txrx_set_safemode)( 332 struct cdp_vdev *vdev, 333 u_int32_t val); 334 /** 335 * @brief configure the drop unencrypted frame flag 336 * @details 337 * Rx related. When set this flag, all the unencrypted frames 338 * received over a secure connection will be discarded 339 * 340 * @param vdev - the data virtual device object 341 * @param val - flag 342 * @return - void 343 */ 344 void 345 (*txrx_set_drop_unenc)( 346 struct cdp_vdev *vdev, 347 u_int32_t val); 348 349 350 /** 351 * @brief set the Tx encapsulation type of the VDEV 352 * @details 353 * This will be used to populate the HTT desc packet type field 354 * during Tx 355 * @param vdev - the data virtual device object 356 * @param val - the Tx encap type 357 * @return - void 358 */ 359 void 360 (*txrx_set_tx_encap_type)( 361 struct cdp_vdev *vdev, 362 enum htt_cmn_pkt_type val); 363 /** 364 * @brief set the Rx decapsulation type of the VDEV 365 * @details 366 * This will be used to configure into firmware and hardware 367 * which format to decap all Rx packets into, for all peers under 368 * the VDEV. 369 * @param vdev - the data virtual device object 370 * @param val - the Rx decap mode 371 * @return - void 372 */ 373 void 374 (*txrx_set_vdev_rx_decap_type)( 375 struct cdp_vdev *vdev, 376 enum htt_cmn_pkt_type val); 377 378 /** 379 * @brief get the Rx decapsulation type of the VDEV 380 * 381 * @param vdev - the data virtual device object 382 * @return - the Rx decap type 383 */ 384 enum htt_cmn_pkt_type 385 (*txrx_get_vdev_rx_decap_type)(struct cdp_vdev *vdev); 386 387 /* Is this similar to ol_txrx_peer_state_update() in MCL */ 388 /** 389 * @brief Update the authorize peer object at association time 390 * @details 391 * For the host-based implementation of rate-control, it 392 * updates the peer/node-related parameters within rate-control 393 * context of the peer at association. 394 * 395 * @param peer - pointer to the node's object 396 * @authorize - either to authorize or unauthorize peer 397 * 398 * @return none 399 */ 400 void 401 (*txrx_peer_authorize)(struct cdp_peer *peer, 402 u_int32_t authorize); 403 404 bool 405 (*txrx_set_inact_params)(struct cdp_pdev *pdev, 406 u_int16_t inact_check_interval, 407 u_int16_t inact_normal, 408 u_int16_t inact_overload); 409 bool 410 (*txrx_start_inact_timer)( 411 struct cdp_pdev *pdev, 412 bool enable); 413 414 415 /** 416 * @brief Set the overload status of the radio 417 * @details 418 * Set the overload status of the radio, updating the inactivity 419 * threshold and inactivity count for each node. 420 * 421 * @param pdev - the data physical device object 422 * @param overload - whether the radio is overloaded or not 423 */ 424 void (*txrx_set_overload)( 425 struct cdp_pdev *pdev, 426 bool overload); 427 /** 428 * @brief Check the inactivity status of the peer/node 429 * 430 * @param peer - pointer to the node's object 431 * @return true if the node is inactive; otherwise return false 432 */ 433 bool 434 (*txrx_peer_is_inact)(void *peer); 435 436 /** 437 * @brief Mark inactivity status of the peer/node 438 * @details 439 * If it becomes active, reset inactivity count to reload value; 440 * if the inactivity status changed, notify umac band steering. 441 * 442 * @param peer - pointer to the node's object 443 * @param inactive - whether the node is inactive or not 444 */ 445 void (*txrx_mark_peer_inact)( 446 void *peer, 447 bool inactive); 448 449 450 /* Should be ol_txrx_ctrl_api.h */ 451 void (*txrx_set_mesh_mode)(struct cdp_vdev *vdev, u_int32_t val); 452 453 /** 454 * @brief setting mesh rx filter 455 * @details 456 * based on the bits enabled in the filter packets has to be dropped. 457 * 458 * @param vdev - the data virtual device object 459 * @param val - value to set 460 */ 461 void (*txrx_set_mesh_rx_filter)(struct cdp_vdev *vdev, uint32_t val); 462 463 void (*tx_flush_buffers)(struct cdp_vdev *vdev); 464 465 int (*txrx_is_target_ar900b)(struct cdp_vdev *vdev); 466 467 void (*txrx_set_vdev_param)(struct cdp_vdev *vdev, 468 enum cdp_vdev_param_type param, uint32_t val); 469 470 void (*txrx_peer_set_nawds)(struct cdp_peer *peer, uint8_t value); 471 /** 472 * @brief Set the reo dest ring num of the radio 473 * @details 474 * Set the reo destination ring no on which we will receive 475 * pkts for this radio. 476 * 477 * @param pdev - the data physical device object 478 * @param reo_dest_ring_num - value ranges between 1 - 4 479 */ 480 void (*txrx_set_pdev_reo_dest)( 481 struct cdp_pdev *pdev, 482 enum cdp_host_reo_dest_ring reo_dest_ring_num); 483 484 /** 485 * @brief Get the reo dest ring num of the radio 486 * @details 487 * Get the reo destination ring no on which we will receive 488 * pkts for this radio. 489 * 490 * @param pdev - the data physical device object 491 * @return the reo destination ring number 492 */ 493 enum cdp_host_reo_dest_ring (*txrx_get_pdev_reo_dest)( 494 struct cdp_pdev *pdev); 495 496 int (*txrx_wdi_event_sub)(struct cdp_pdev *pdev, void *event_cb_sub, 497 uint32_t event); 498 499 int (*txrx_wdi_event_unsub)(struct cdp_pdev *pdev, void *event_cb_sub, 500 uint32_t event); 501 int (*txrx_get_sec_type)(struct cdp_peer *peer, uint8_t sec_idx); 502 503 void (*txrx_update_mgmt_txpow_vdev)(struct cdp_vdev *vdev, 504 uint8_t subtype, uint8_t tx_power); 505 506 void (*txrx_set_pdev_param)(struct cdp_pdev *pdev, 507 enum cdp_pdev_param_type type, uint8_t val); 508 void * (*txrx_get_pldev)(struct cdp_pdev *pdev); 509 510 #ifdef ATH_SUPPORT_NAC_RSSI 511 QDF_STATUS (*txrx_vdev_config_for_nac_rssi)(struct cdp_vdev *vdev, 512 enum cdp_nac_param_cmd cmd, char *bssid, char *client_macaddr, 513 uint8_t chan_num); 514 #endif 515 }; 516 517 struct cdp_me_ops { 518 519 u_int16_t (*tx_desc_alloc_and_mark_for_mcast_clone) 520 (struct cdp_pdev *pdev, u_int16_t buf_count); 521 522 u_int16_t (*tx_desc_free_and_unmark_for_mcast_clone)( 523 struct cdp_pdev *pdev, 524 u_int16_t buf_count); 525 526 u_int16_t 527 (*tx_get_mcast_buf_allocated_marked) 528 (struct cdp_pdev *pdev); 529 void 530 (*tx_me_alloc_descriptor)(struct cdp_pdev *pdev); 531 532 void 533 (*tx_me_free_descriptor)(struct cdp_pdev *pdev); 534 535 uint16_t 536 (*tx_me_convert_ucast)(struct cdp_vdev *vdev, 537 qdf_nbuf_t wbuf, u_int8_t newmac[][6], 538 uint8_t newmaccnt); 539 /* Should be a function pointer in ol_txrx_osif_ops{} */ 540 /** 541 * @brief notify mcast frame indication from FW. 542 * @details 543 * This notification will be used to convert 544 * multicast frame to unicast. 545 * 546 * @param pdev - handle to the ctrl SW's physical device object 547 * @param vdev_id - ID of the virtual device received the special data 548 * @param msdu - the multicast msdu returned by FW for host inspect 549 */ 550 551 int (*mcast_notify)(struct cdp_pdev *pdev, 552 u_int8_t vdev_id, qdf_nbuf_t msdu); 553 }; 554 555 struct cdp_mon_ops { 556 557 void (*txrx_monitor_set_filter_ucast_data) 558 (struct cdp_pdev *, u_int8_t val); 559 void (*txrx_monitor_set_filter_mcast_data) 560 (struct cdp_pdev *, u_int8_t val); 561 void (*txrx_monitor_set_filter_non_data) 562 (struct cdp_pdev *, u_int8_t val); 563 564 bool (*txrx_monitor_get_filter_ucast_data) 565 (struct cdp_vdev *vdev_txrx_handle); 566 bool (*txrx_monitor_get_filter_mcast_data) 567 (struct cdp_vdev *vdev_txrx_handle); 568 bool (*txrx_monitor_get_filter_non_data) 569 (struct cdp_vdev *vdev_txrx_handle); 570 int (*txrx_reset_monitor_mode)(struct cdp_pdev *pdev); 571 572 /* HK advance monitor filter support */ 573 int (*txrx_set_advance_monitor_filter) 574 (struct cdp_pdev *pdev, struct cdp_monitor_filter *filter_val); 575 }; 576 577 struct cdp_host_stats_ops { 578 int (*txrx_host_stats_get)(struct cdp_vdev *vdev, 579 struct ol_txrx_stats_req *req); 580 581 void (*txrx_host_stats_clr)(struct cdp_vdev *vdev); 582 583 void (*txrx_host_ce_stats)(struct cdp_vdev *vdev); 584 585 int (*txrx_stats_publish)(struct cdp_pdev *pdev, 586 void *buf); 587 /** 588 * @brief Enable enhanced stats functionality. 589 * 590 * @param pdev - the physical device object 591 * @return - void 592 */ 593 void (*txrx_enable_enhanced_stats)(struct cdp_pdev *pdev); 594 595 /** 596 * @brief Disable enhanced stats functionality. 597 * 598 * @param pdev - the physical device object 599 * @return - void 600 */ 601 void (*txrx_disable_enhanced_stats)(struct cdp_pdev *pdev); 602 603 /** 604 * @brief Get the desired stats from the message. 605 * 606 * @param pdev - the physical device object 607 * @param stats_base - stats buffer recieved from FW 608 * @param type - stats type. 609 * @return - pointer to requested stat identified by type 610 */ 611 uint32_t * (*txrx_get_stats_base)(struct cdp_pdev *pdev, 612 uint32_t *stats_base, uint32_t msg_len, uint8_t type); 613 void 614 (*tx_print_tso_stats)(struct cdp_vdev *vdev); 615 616 void 617 (*tx_rst_tso_stats)(struct cdp_vdev *vdev); 618 619 void 620 (*tx_print_sg_stats)(struct cdp_vdev *vdev); 621 622 void 623 (*tx_rst_sg_stats)(struct cdp_vdev *vdev); 624 625 void 626 (*print_rx_cksum_stats)(struct cdp_vdev *vdev); 627 628 void 629 (*rst_rx_cksum_stats)(struct cdp_vdev *vdev); 630 631 A_STATUS 632 (*txrx_host_me_stats)(struct cdp_vdev *vdev); 633 void 634 (*txrx_per_peer_stats)(struct cdp_pdev *pdev, char *addr); 635 int (*txrx_host_msdu_ttl_stats)(struct cdp_vdev *vdev, 636 struct ol_txrx_stats_req *req); 637 638 void 639 (*print_lro_stats)(struct cdp_vdev *vdev); 640 641 void 642 (*reset_lro_stats)(struct cdp_vdev *vdev); 643 644 void 645 (*get_fw_peer_stats)(struct cdp_pdev *pdev, uint8_t *addr, 646 uint32_t cap); 647 void 648 (*get_htt_stats)(struct cdp_pdev *pdev, void *data, 649 uint32_t data_len); 650 }; 651 652 struct cdp_wds_ops { 653 void 654 (*txrx_set_wds_rx_policy)(struct cdp_vdev *vdev, 655 u_int32_t val); 656 void 657 (*txrx_wds_peer_tx_policy_update)(struct cdp_peer *peer, 658 int wds_tx_ucast, int wds_tx_mcast); 659 int (*vdev_set_wds)(void *vdev, uint32_t val); 660 }; 661 662 struct cdp_raw_ops { 663 int (*txrx_get_nwifi_mode)(struct cdp_vdev *vdev); 664 665 void (*rsim_get_astentry)(struct cdp_vdev *vdev, 666 qdf_nbuf_t *pnbuf, 667 struct cdp_raw_ast *raw_ast); 668 }; 669 670 #ifdef CONFIG_WIN 671 struct cdp_pflow_ops { 672 uint32_t(*pflow_update_pdev_params)(void *, 673 enum _ol_ath_param_t, uint32_t, void *); 674 }; 675 #endif /* CONFIG_WIN */ 676 677 #define LRO_IPV4_SEED_ARR_SZ 5 678 #define LRO_IPV6_SEED_ARR_SZ 11 679 680 /** 681 * struct cdp_lro_config - set LRO init parameters 682 * @lro_enable: indicates whether lro is enabled 683 * @tcp_flag: If the TCP flags from the packet do not match 684 * the values in this field after masking with TCP flags mask 685 * below, packet is not LRO eligible 686 * @tcp_flag_mask: field for comparing the TCP values provided 687 * above with the TCP flags field in the received packet 688 * @toeplitz_hash_ipv4: contains seed needed to compute the flow id 689 * 5-tuple toeplitz hash for ipv4 packets 690 * @toeplitz_hash_ipv6: contains seed needed to compute the flow id 691 * 5-tuple toeplitz hash for ipv6 packets 692 */ 693 struct cdp_lro_hash_config { 694 uint32_t lro_enable; 695 uint32_t tcp_flag:9, 696 tcp_flag_mask:9; 697 uint32_t toeplitz_hash_ipv4[LRO_IPV4_SEED_ARR_SZ]; 698 uint32_t toeplitz_hash_ipv6[LRO_IPV6_SEED_ARR_SZ]; 699 }; 700 701 struct ol_if_ops { 702 void (*peer_set_default_routing)(void *scn_handle, 703 uint8_t *peer_macaddr, uint8_t vdev_id, 704 bool hash_based, uint8_t ring_num); 705 int (*peer_rx_reorder_queue_setup)(void *scn_handle, 706 uint8_t vdev_id, uint8_t *peer_mac, 707 qdf_dma_addr_t hw_qdesc, int tid, uint16_t queue_num); 708 int (*peer_rx_reorder_queue_remove)(void *scn_handle, 709 uint8_t vdev_id, uint8_t *peer_macaddr, 710 uint32_t tid_mask); 711 int (*peer_unref_delete)(void *scn_handle, uint8_t vdev_id, 712 uint8_t *peer_macaddr); 713 bool (*is_hw_dbs_2x2_capable)(struct wlan_objmgr_psoc *psoc); 714 int (*peer_add_wds_entry)(void *ol_soc_handle, 715 const uint8_t *dest_macaddr, uint8_t *peer_macaddr, 716 uint32_t flags); 717 int (*peer_update_wds_entry)(void *ol_soc_handle, 718 uint8_t *dest_macaddr, uint8_t *peer_macaddr, 719 uint32_t flags); 720 void (*peer_del_wds_entry)(void *ol_soc_handle, 721 uint8_t *wds_macaddr); 722 QDF_STATUS (*lro_hash_config)(void *scn_handle, 723 struct cdp_lro_hash_config *lro_hash); 724 void (*update_dp_stats)(void *soc, void *stats, uint16_t id, 725 uint8_t type); 726 uint8_t (*rx_invalid_peer)(void *osif_pdev, void *msg); 727 728 int (*peer_map_event)(void *ol_soc_handle, uint16_t peer_id, uint16_t hw_peer_id, 729 uint8_t vdev_id, uint8_t *peer_mac_addr, 730 enum cdp_txrx_ast_entry_type peer_type); 731 int (*peer_unmap_event)(void *ol_soc_handle, uint16_t peer_id); 732 733 int (*get_dp_cfg_param)(void *ol_soc_handle, enum cdp_cfg_param_type param_num); 734 735 void (*rx_mic_error)(void *ol_soc_handle, 736 uint16_t vdev_id, void *wh); 737 uint8_t (*freq_to_channel)(void *ol_soc_handle, uint16_t vdev_id); 738 739 void (*record_act_change)(struct wlan_objmgr_pdev *pdev, 740 u_int8_t *dstmac, bool active); 741 #ifdef ATH_SUPPORT_NAC_RSSI 742 int (*config_fw_for_nac_rssi)(struct wlan_objmgr_pdev *pdev, 743 u_int8_t vdev_id, enum cdp_nac_param_cmd cmd, char *bssid, 744 char *client_macaddr, uint8_t chan_num); 745 int (*config_bssid_in_fw_for_nac_rssi)(struct wlan_objmgr_pdev *pdev, 746 u_int8_t vdev_id, enum cdp_nac_param_cmd cmd, char *bssid); 747 #endif 748 /* TODO: Add any other control path calls required to OL_IF/WMA layer */ 749 }; 750 751 #ifndef CONFIG_WIN 752 /* From here MCL specific OPs */ 753 /** 754 * struct cdp_misc_ops - mcl ops not classified 755 * @set_ibss_vdev_heart_beat_timer: 756 * @bad_peer_txctl_set_setting: 757 * @bad_peer_txctl_update_threshold: 758 * @hl_tdls_flag_reset: 759 * @tx_non_std: 760 * @get_vdev_id: 761 * @set_wisa_mode: 762 * @txrx_data_stall_cb_register: 763 * @txrx_data_stall_cb_deregister: 764 * @txrx_post_data_stall_event 765 * @runtime_suspend: 766 * @runtime_resume: 767 */ 768 struct cdp_misc_ops { 769 uint16_t (*set_ibss_vdev_heart_beat_timer)(struct cdp_vdev *vdev, 770 uint16_t timer_value_sec); 771 void (*set_wmm_param)(struct cdp_pdev *cfg_pdev, 772 struct ol_tx_wmm_param_t wmm_param); 773 void (*bad_peer_txctl_set_setting)(struct cdp_pdev *pdev, int enable, 774 int period, int txq_limit); 775 void (*bad_peer_txctl_update_threshold)(struct cdp_pdev *pdev, 776 int level, int tput_thresh, int tx_limit); 777 void (*hl_tdls_flag_reset)(struct cdp_vdev *vdev, bool flag); 778 qdf_nbuf_t (*tx_non_std)(struct cdp_vdev *vdev, 779 enum ol_tx_spec tx_spec, qdf_nbuf_t msdu_list); 780 uint16_t (*get_vdev_id)(struct cdp_vdev *vdev); 781 QDF_STATUS (*set_wisa_mode)(struct cdp_vdev *vdev, bool enable); 782 QDF_STATUS (*txrx_data_stall_cb_register)(data_stall_detect_cb cb); 783 QDF_STATUS (*txrx_data_stall_cb_deregister)(data_stall_detect_cb cb); 784 void (*txrx_post_data_stall_event)( 785 enum data_stall_log_event_indicator indicator, 786 enum data_stall_log_event_type data_stall_type, 787 uint32_t pdev_id, uint32_t vdev_id_bitmap, 788 enum data_stall_log_recovery_type recovery_type); 789 QDF_STATUS (*runtime_suspend)(struct cdp_pdev *pdev); 790 QDF_STATUS (*runtime_resume)(struct cdp_pdev *pdev); 791 int (*get_opmode)(struct cdp_vdev *vdev); 792 void (*mark_first_wakeup_packet)(uint8_t value); 793 void (*update_mac_id)(uint8_t vdev_id, uint8_t mac_id); 794 void (*flush_rx_frames)(void *peer, bool drop); 795 A_STATUS (*get_intra_bss_fwd_pkts_count)(uint8_t vdev_id, 796 uint64_t *fwd_tx_packets, uint64_t *fwd_rx_packets); 797 void (*pkt_log_init)(struct cdp_pdev *handle, void *scn); 798 void (*pkt_log_con_service)(struct cdp_pdev *pdev, void *scn); 799 }; 800 801 /** 802 * struct cdp_tx_delay_ops - mcl tx delay ops 803 * @tx_delay: 804 * @tx_delay_hist: 805 * @tx_packet_count: 806 * @tx_set_compute_interval: 807 */ 808 struct cdp_tx_delay_ops { 809 void (*tx_delay)(struct cdp_pdev *pdev, uint32_t *queue_delay_microsec, 810 uint32_t *tx_delay_microsec, int category); 811 void (*tx_delay_hist)(struct cdp_pdev *pdev, 812 uint16_t *bin_values, int category); 813 void (*tx_packet_count)(struct cdp_pdev *pdev, 814 uint16_t *out_packet_count, 815 uint16_t *out_packet_loss_count, int category); 816 void (*tx_set_compute_interval)(struct cdp_pdev *pdev, 817 uint32_t interval); 818 }; 819 820 /** 821 * struct cdp_pmf_ops - mcl protected management frame ops 822 * @get_pn_info: 823 */ 824 struct cdp_pmf_ops { 825 void (*get_pn_info)(void *peer, uint8_t **last_pn_valid, 826 uint64_t **last_pn, uint32_t **rmf_pn_replays); 827 }; 828 829 /** 830 * struct cdp_cfg_ops - mcl configuration ops 831 * @set_cfg_rx_fwd_disabled: 832 * @set_cfg_packet_log_enabled: 833 * @cfg_attach: 834 * @vdev_rx_set_intrabss_fwd: 835 * @get_opmode: 836 * @is_rx_fwd_disabled: 837 * @tx_set_is_mgmt_over_wmi_enabled: 838 * @is_high_latency: 839 * @set_flow_control_parameters: 840 */ 841 struct cdp_cfg_ops { 842 void (*set_cfg_rx_fwd_disabled)(struct cdp_cfg *cfg_pdev, 843 uint8_t disable_rx_fwd); 844 void (*set_cfg_packet_log_enabled)(struct cdp_cfg *cfg_pdev, 845 uint8_t val); 846 struct cdp_cfg * (*cfg_attach)(qdf_device_t osdev, void *cfg_param); 847 void (*vdev_rx_set_intrabss_fwd)(struct cdp_vdev *vdev, bool val); 848 uint8_t (*is_rx_fwd_disabled)(struct cdp_vdev *vdev); 849 void (*tx_set_is_mgmt_over_wmi_enabled)(uint8_t value); 850 int (*is_high_latency)(struct cdp_cfg *cfg_pdev); 851 void (*set_flow_control_parameters)(struct cdp_cfg *cfg_pdev, 852 void *param); 853 void (*set_flow_steering)(struct cdp_cfg *cfg_pdev, uint8_t val); 854 void (*set_ptp_rx_opt_enabled)(struct cdp_cfg *cfg_pdev, uint8_t val); 855 }; 856 857 /** 858 * struct cdp_flowctl_ops - mcl flow control 859 * @register_pause_cb: 860 * @set_desc_global_pool_size: 861 * @dump_flow_pool_info: 862 */ 863 struct cdp_flowctl_ops { 864 QDF_STATUS (*register_pause_cb)(struct cdp_soc_t *soc, 865 tx_pause_callback); 866 void (*set_desc_global_pool_size)(uint32_t num_msdu_desc); 867 void (*dump_flow_pool_info)(void *); 868 }; 869 870 /** 871 * struct cdp_lflowctl_ops - mcl legacy flow control ops 872 * @register_tx_flow_control: 873 * @deregister_tx_flow_control_cb: 874 * @flow_control_cb: 875 * @get_tx_resource: 876 * @ll_set_tx_pause_q_depth: 877 * @vdev_flush: 878 * @vdev_pause: 879 * @vdev_unpause: 880 */ 881 struct cdp_lflowctl_ops { 882 int (*register_tx_flow_control)(uint8_t vdev_id, 883 ol_txrx_tx_flow_control_fp flowControl, void *osif_fc_ctx, 884 ol_txrx_tx_flow_control_is_pause_fp flow_control_is_pause); 885 int (*deregister_tx_flow_control_cb)(uint8_t vdev_id); 886 void (*flow_control_cb)(struct cdp_vdev *vdev, bool tx_resume); 887 bool (*get_tx_resource)(uint8_t sta_id, 888 unsigned int low_watermark, 889 unsigned int high_watermark_offset); 890 int (*ll_set_tx_pause_q_depth)(uint8_t vdev_id, int pause_q_depth); 891 void (*vdev_flush)(struct cdp_vdev *vdev); 892 void (*vdev_pause)(struct cdp_vdev *vdev, uint32_t reason); 893 void (*vdev_unpause)(struct cdp_vdev *vdev, uint32_t reason); 894 }; 895 896 #ifdef IPA_OFFLOAD 897 /** 898 * struct cdp_ipa_ops - mcl ipa data path ops 899 * @ipa_get_resource: 900 * @ipa_set_doorbell_paddr: 901 * @ipa_set_active: 902 * @ipa_op_response: 903 * @ipa_register_op_cb: 904 * @ipa_get_stat: 905 * @ipa_tx_data_frame: 906 */ 907 struct cdp_ipa_ops { 908 QDF_STATUS (*ipa_get_resource)(struct cdp_pdev *pdev); 909 QDF_STATUS (*ipa_set_doorbell_paddr)(struct cdp_pdev *pdev); 910 QDF_STATUS (*ipa_set_active)(struct cdp_pdev *pdev, bool uc_active, 911 bool is_tx); 912 QDF_STATUS (*ipa_op_response)(struct cdp_pdev *pdev, uint8_t *op_msg); 913 QDF_STATUS (*ipa_register_op_cb)(struct cdp_pdev *pdev, 914 void (*ipa_uc_op_cb_type)(uint8_t *op_msg, void *osif_ctxt), 915 void *usr_ctxt); 916 QDF_STATUS (*ipa_get_stat)(struct cdp_pdev *pdev); 917 qdf_nbuf_t (*ipa_tx_data_frame)(struct cdp_vdev *vdev, qdf_nbuf_t skb); 918 void (*ipa_set_uc_tx_partition_base)(struct cdp_cfg *pdev, 919 uint32_t value); 920 #ifdef FEATURE_METERING 921 QDF_STATUS (*ipa_uc_get_share_stats)(struct cdp_pdev *pdev, 922 uint8_t reset_stats); 923 QDF_STATUS (*ipa_uc_set_quota)(struct cdp_pdev *pdev, 924 uint64_t quota_bytes); 925 #endif 926 QDF_STATUS (*ipa_enable_autonomy)(struct cdp_pdev *pdev); 927 QDF_STATUS (*ipa_disable_autonomy)(struct cdp_pdev *pdev); 928 #ifdef CONFIG_IPA_WDI_UNIFIED_API 929 QDF_STATUS (*ipa_setup)(struct cdp_pdev *pdev, void *ipa_i2w_cb, 930 void *ipa_w2i_cb, void *ipa_wdi_meter_notifier_cb, 931 uint32_t ipa_desc_size, void *ipa_priv, bool is_rm_enabled, 932 uint32_t *tx_pipe_handle, uint32_t *rx_pipe_handle, 933 bool is_smmu_enabled, qdf_ipa_sys_connect_params_t *sys_in); 934 #else /* CONFIG_IPA_WDI_UNIFIED_API */ 935 QDF_STATUS (*ipa_setup)(struct cdp_pdev *pdev, void *ipa_i2w_cb, 936 void *ipa_w2i_cb, void *ipa_wdi_meter_notifier_cb, 937 uint32_t ipa_desc_size, void *ipa_priv, bool is_rm_enabled, 938 uint32_t *tx_pipe_handle, uint32_t *rx_pipe_handle); 939 #endif /* CONFIG_IPA_WDI_UNIFIED_API */ 940 QDF_STATUS (*ipa_cleanup)(uint32_t tx_pipe_handle, 941 uint32_t rx_pipe_handle); 942 QDF_STATUS (*ipa_setup_iface)(char *ifname, uint8_t *mac_addr, 943 qdf_ipa_client_type_t prod_client, 944 qdf_ipa_client_type_t cons_client, 945 uint8_t session_id, bool is_ipv6_enabled); 946 QDF_STATUS (*ipa_cleanup_iface)(char *ifname, bool is_ipv6_enabled); 947 QDF_STATUS (*ipa_enable_pipes)(struct cdp_pdev *pdev); 948 QDF_STATUS (*ipa_disable_pipes)(struct cdp_pdev *pdev); 949 QDF_STATUS (*ipa_set_perf_level)(int client, 950 uint32_t max_supported_bw_mbps); 951 }; 952 #endif 953 954 /** 955 * struct cdp_bus_ops - mcl bus suspend/resume ops 956 * @bus_suspend: 957 * @bus_resume: 958 */ 959 struct cdp_bus_ops { 960 QDF_STATUS (*bus_suspend)(struct cdp_pdev *opaque_pdev); 961 QDF_STATUS (*bus_resume)(struct cdp_pdev *opaque_pdev); 962 }; 963 964 /** 965 * struct cdp_ocb_ops - mcl ocb ops 966 * @set_ocb_chan_info: 967 * @get_ocb_chan_info: 968 */ 969 struct cdp_ocb_ops { 970 void (*set_ocb_chan_info)(struct cdp_vdev *vdev, 971 struct ol_txrx_ocb_set_chan ocb_set_chan); 972 struct ol_txrx_ocb_chan_info * 973 (*get_ocb_chan_info)(struct cdp_vdev *vdev); 974 }; 975 976 /** 977 * struct cdp_peer_ops - mcl peer related ops 978 * @register_peer: 979 * @clear_peer: 980 * @cfg_attach: 981 * @find_peer_by_addr: 982 * @find_peer_by_addr_and_vdev: 983 * @local_peer_id: 984 * @peer_find_by_local_id: 985 * @peer_state_update: 986 * @get_vdevid: 987 * @get_vdev_by_sta_id: 988 * @register_ocb_peer: 989 * @peer_get_peer_mac_addr: 990 * @get_peer_state: 991 * @get_vdev_for_peer: 992 * @update_ibss_add_peer_num_of_vdev: 993 * @remove_peers_for_vdev: 994 * @remove_peers_for_vdev_no_lock: 995 * @copy_mac_addr_raw: 996 * @add_last_real_peer: 997 * @last_assoc_received: 998 * @last_disassoc_received: 999 * @last_deauth_received: 1000 * @is_vdev_restore_last_peer: 1001 * @update_last_real_peer: 1002 */ 1003 struct cdp_peer_ops { 1004 QDF_STATUS (*register_peer)(struct cdp_pdev *pdev, 1005 struct ol_txrx_desc_type *sta_desc); 1006 QDF_STATUS (*clear_peer)(struct cdp_pdev *pdev, uint8_t sta_id); 1007 QDF_STATUS (*change_peer_state)(uint8_t sta_id, 1008 enum ol_txrx_peer_state sta_state, 1009 bool roam_synch_in_progress); 1010 void * (*peer_get_ref_by_addr)(struct cdp_pdev *pdev, 1011 u8 *peer_addr, uint8_t *peer_id, 1012 enum peer_debug_id_type debug_id); 1013 void (*peer_release_ref)(void *peer, enum peer_debug_id_type debug_id); 1014 void * (*find_peer_by_addr)(struct cdp_pdev *pdev, 1015 uint8_t *peer_addr, uint8_t *peer_id); 1016 void * (*find_peer_by_addr_and_vdev)(struct cdp_pdev *pdev, 1017 struct cdp_vdev *vdev, 1018 uint8_t *peer_addr, uint8_t *peer_id); 1019 uint16_t (*local_peer_id)(void *peer); 1020 void * (*peer_find_by_local_id)(struct cdp_pdev *pdev, 1021 uint8_t local_peer_id); 1022 QDF_STATUS (*peer_state_update)(struct cdp_pdev *pdev, 1023 uint8_t *peer_addr, 1024 enum ol_txrx_peer_state state); 1025 QDF_STATUS (*get_vdevid)(void *peer, uint8_t *vdev_id); 1026 struct cdp_vdev * (*get_vdev_by_sta_id)(struct cdp_pdev *pdev, 1027 uint8_t sta_id); 1028 QDF_STATUS (*register_ocb_peer)(uint8_t *mac_addr, uint8_t *peer_id); 1029 uint8_t * (*peer_get_peer_mac_addr)(void *peer); 1030 int (*get_peer_state)(void *peer); 1031 struct cdp_vdev * (*get_vdev_for_peer)(void *peer); 1032 int16_t (*update_ibss_add_peer_num_of_vdev)(struct cdp_vdev *vdev, 1033 int16_t peer_num_delta); 1034 void (*remove_peers_for_vdev)(struct cdp_vdev *vdev, 1035 ol_txrx_vdev_peer_remove_cb callback, 1036 void *callback_context, bool remove_last_peer); 1037 void (*remove_peers_for_vdev_no_lock)(struct cdp_vdev *vdev, 1038 ol_txrx_vdev_peer_remove_cb callback, 1039 void *callback_context); 1040 void (*copy_mac_addr_raw)(struct cdp_vdev *vdev, uint8_t *bss_addr); 1041 void (*add_last_real_peer)(struct cdp_pdev *pdev, 1042 struct cdp_vdev *vdev, uint8_t *peer_id); 1043 qdf_time_t * (*last_assoc_received)(void *peer); 1044 qdf_time_t * (*last_disassoc_received)(void *peer); 1045 qdf_time_t * (*last_deauth_received)(void *peer); 1046 bool (*is_vdev_restore_last_peer)(void *peer); 1047 void (*update_last_real_peer)(struct cdp_pdev *pdev, void *peer, 1048 uint8_t *peer_id, bool restore_last_peer); 1049 void (*peer_detach_force_delete)(void *peer); 1050 }; 1051 1052 /** 1053 * struct cdp_ocb_ops - mcl ocb ops 1054 * @throttle_init_period: 1055 * @throttle_set_level: 1056 */ 1057 struct cdp_throttle_ops { 1058 void (*throttle_init_period)(struct cdp_pdev *pdev, int period, 1059 uint8_t *dutycycle_level); 1060 void (*throttle_set_level)(struct cdp_pdev *pdev, int level); 1061 }; 1062 1063 /** 1064 * struct cdp_ocb_ops - mcl ocb ops 1065 * @clear_stats: 1066 * @stats: 1067 */ 1068 struct cdp_mob_stats_ops { 1069 void (*clear_stats)(uint16_t bitmap); 1070 int (*stats)(uint8_t vdev_id, char *buffer, unsigned buf_len); 1071 }; 1072 #endif /* CONFIG_WIN */ 1073 1074 struct cdp_ops { 1075 struct cdp_cmn_ops *cmn_drv_ops; 1076 struct cdp_ctrl_ops *ctrl_ops; 1077 struct cdp_me_ops *me_ops; 1078 struct cdp_mon_ops *mon_ops; 1079 struct cdp_host_stats_ops *host_stats_ops; 1080 struct cdp_wds_ops *wds_ops; 1081 struct cdp_raw_ops *raw_ops; 1082 struct cdp_pflow_ops *pflow_ops; 1083 #ifndef CONFIG_WIN 1084 struct cdp_misc_ops *misc_ops; 1085 struct cdp_cfg_ops *cfg_ops; 1086 struct cdp_flowctl_ops *flowctl_ops; 1087 struct cdp_lflowctl_ops *l_flowctl_ops; 1088 #ifdef IPA_OFFLOAD 1089 struct cdp_ipa_ops *ipa_ops; 1090 #endif 1091 struct cdp_bus_ops *bus_ops; 1092 struct cdp_ocb_ops *ocb_ops; 1093 struct cdp_peer_ops *peer_ops; 1094 struct cdp_throttle_ops *throttle_ops; 1095 struct cdp_mob_stats_ops *mob_stats_ops; 1096 struct cdp_tx_delay_ops *delay_ops; 1097 struct cdp_pmf_ops *pmf_ops; 1098 #endif /* CONFIG_WIN */ 1099 }; 1100 1101 #endif 1102