1 /*- 2 * Copyright (c) 2020-2023 The FreeBSD Foundation 3 * Copyright (c) 2020-2021 Bjoern A. Zeeb 4 * 5 * This software was developed by Björn Zeeb under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30 /* 31 * Public functions are called linuxkpi_*(). 32 * Internal (static) functions are called lkpi_*(). 33 * 34 * The internal structures holding metadata over public structures are also 35 * called lkpi_xxx (usually with a member at the end called xxx). 36 * Note: we do not replicate the structure names but the general variable names 37 * for these (e.g., struct hw -> struct lkpi_hw, struct sta -> struct lkpi_sta). 38 * There are macros to access one from the other. 39 * We call the internal versions lxxx (e.g., hw -> lhw, sta -> lsta). 40 */ 41 42 #ifndef _LKPI_SRC_LINUX_80211_H 43 #define _LKPI_SRC_LINUX_80211_H 44 45 #include "opt_wlan.h" 46 47 #if defined(IEEE80211_DEBUG) && !defined(LINUXKPI_DEBUG_80211) 48 #define LINUXKPI_DEBUG_80211 49 #endif 50 51 /* #define LINUXKPI_DEBUG_80211 */ 52 53 #ifndef D80211_TODO 54 #define D80211_TODO 0x00000001 55 #endif 56 #ifndef D80211_IMPROVE 57 #define D80211_IMPROVE 0x00000002 58 #endif 59 #define D80211_IMPROVE_TXQ 0x00000004 60 #define D80211_TRACE 0x00000010 61 #define D80211_TRACEOK 0x00000020 62 #define D80211_TRACE_TX 0x00000100 63 #define D80211_TRACE_TX_DUMP 0x00000200 64 #define D80211_TRACE_RX 0x00001000 65 #define D80211_TRACE_RX_DUMP 0x00002000 66 #define D80211_TRACE_RX_BEACONS 0x00004000 67 #define D80211_TRACEX (D80211_TRACE_TX|D80211_TRACE_RX) 68 #define D80211_TRACEX_DUMP (D80211_TRACE_TX_DUMP|D80211_TRACE_RX_DUMP) 69 #define D80211_TRACE_STA 0x00010000 70 #define D80211_TRACE_HW_CRYPTO 0x00020000 71 #define D80211_TRACE_MO 0x00100000 72 #define D80211_TRACE_MODE 0x0f000000 73 #define D80211_TRACE_MODE_HT 0x01000000 74 #define D80211_TRACE_MODE_VHT 0x02000000 75 #define D80211_TRACE_MODE_HE 0x04000000 76 #define D80211_TRACE_MODE_EHT 0x08000000 77 78 #define IMPROVE_TXQ(...) \ 79 if (linuxkpi_debug_80211 & D80211_IMPROVE_TXQ) \ 80 printf("%s:%d: XXX LKPI80211 IMPROVE_TXQ\n", __func__, __LINE__) 81 82 #define IMPROVE_HT(fmt, ...) \ 83 if (linuxkpi_debug_80211 & D80211_TRACE_MODE_HT) \ 84 printf("%s:%d: XXX LKPI80211 IMPROVE_HT " fmt "\n", \ 85 __func__, __LINE__, ##__VA_ARGS__); 86 87 #define MTAG_ABI_LKPI80211 1707696513 /* LinuxKPI 802.11 KBI */ 88 89 #ifdef LKPI_80211_USE_MTAG 90 /* 91 * Deferred RX path. 92 * We need to pass *ni along (and possibly more in the future so 93 * we use a struct right from the start. 94 */ 95 #define LKPI80211_TAG_RXNI 0 /* deferred RX path */ 96 struct lkpi_80211_tag_rxni { 97 struct ieee80211_node *ni; /* MUST hold a reference to it. */ 98 }; 99 #endif 100 101 struct lkpi_radiotap_tx_hdr { 102 struct ieee80211_radiotap_header wt_ihdr; 103 uint8_t wt_flags; 104 uint8_t wt_rate; 105 uint16_t wt_chan_freq; 106 uint16_t wt_chan_flags; 107 } __packed; 108 #define LKPI_RTAP_TX_FLAGS_PRESENT \ 109 ((1 << IEEE80211_RADIOTAP_FLAGS) | \ 110 (1 << IEEE80211_RADIOTAP_RATE) | \ 111 (1 << IEEE80211_RADIOTAP_CHANNEL)) 112 113 struct lkpi_radiotap_rx_hdr { 114 struct ieee80211_radiotap_header wr_ihdr; 115 uint64_t wr_tsft; 116 uint8_t wr_flags; 117 uint8_t wr_rate; 118 uint16_t wr_chan_freq; 119 uint16_t wr_chan_flags; 120 int8_t wr_dbm_antsignal; 121 int8_t wr_dbm_antnoise; 122 } __packed __aligned(8); 123 #define LKPI_RTAP_RX_FLAGS_PRESENT \ 124 ((1 << IEEE80211_RADIOTAP_TSFT) | \ 125 (1 << IEEE80211_RADIOTAP_FLAGS) | \ 126 (1 << IEEE80211_RADIOTAP_RATE) | \ 127 (1 << IEEE80211_RADIOTAP_CHANNEL) | \ 128 (1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \ 129 (1 << IEEE80211_RADIOTAP_DBM_ANTNOISE)) 130 131 struct lkpi_hw; 132 133 struct lkpi_txq { 134 TAILQ_ENTRY(lkpi_txq) txq_entry; 135 136 struct mtx ltxq_mtx; 137 bool seen_dequeue; 138 bool stopped; 139 uint32_t txq_generation; 140 struct sk_buff_head skbq; 141 142 /* Must be last! */ 143 struct ieee80211_txq txq __aligned(CACHE_LINE_SIZE); 144 }; 145 #define TXQ_TO_LTXQ(_txq) container_of(_txq, struct lkpi_txq, txq) 146 147 148 struct lkpi_sta { 149 struct list_head lsta_list; 150 struct ieee80211_node *ni; 151 struct ieee80211_hw *hw; /* back pointer f. locking. */ 152 153 /* Deferred TX path. */ 154 /* Eventually we might want to migrate this into net80211 entirely. */ 155 /* XXX-BZ can we use sta->txq[] instead directly? */ 156 struct task txq_task; 157 struct mbufq txq; 158 struct mtx txq_mtx; 159 160 struct ieee80211_key_conf *kc[IEEE80211_WEP_NKID]; 161 enum ieee80211_sta_state state; 162 bool txq_ready; /* Can we run the taskq? */ 163 bool added_to_drv; /* Driver knows; i.e. we called ...(). */ 164 bool in_mgd; /* XXX-BZ should this be per-vif? */ 165 166 struct station_info sinfo; /* statistics */ 167 168 /* Must be last! */ 169 struct ieee80211_sta sta __aligned(CACHE_LINE_SIZE); 170 }; 171 #define STA_TO_LSTA(_sta) container_of(_sta, struct lkpi_sta, sta) 172 #define LSTA_TO_STA(_lsta) (&(_lsta)->sta) 173 174 /* Either protected by wiphy lock or rcu for the list. */ 175 struct lkpi_vif { 176 TAILQ_ENTRY(lkpi_vif) lvif_entry; 177 struct ieee80211vap iv_vap; 178 eventhandler_tag lvif_ifllevent; 179 180 struct sysctl_ctx_list sysctl_ctx; 181 182 struct mtx mtx; 183 struct wireless_dev wdev; 184 185 /* Other local stuff. */ 186 int (*iv_newstate)(struct ieee80211vap *, 187 enum ieee80211_state, int); 188 struct ieee80211_node * (*iv_update_bss)(struct ieee80211vap *, 189 struct ieee80211_node *); 190 void (*iv_recv_mgmt)(struct ieee80211_node *, 191 struct mbuf *, int, 192 const struct ieee80211_rx_stats *, 193 int, int); 194 195 struct list_head lsta_list; 196 197 struct lkpi_sta *lvif_bss; 198 199 struct ieee80211_node *key_update_iv_bss; 200 int ic_unlocked; /* Count of ic unlocks pending (*mo_set_key) */ 201 int nt_unlocked; /* Count of nt unlocks pending (*mo_set_key) */ 202 int beacons; /* # of beacons since assoc */ 203 bool lvif_bss_synched; 204 bool added_to_drv; /* Driver knows; i.e. we called add_interface(). */ 205 206 bool hw_queue_stopped[IEEE80211_NUM_ACS]; 207 208 /* Must be last! */ 209 struct ieee80211_vif vif __aligned(CACHE_LINE_SIZE); 210 }; 211 #define VAP_TO_LVIF(_vap) container_of(_vap, struct lkpi_vif, iv_vap) 212 #define LVIF_TO_VAP(_lvif) (&(_lvif)->iv_vap) 213 #define VIF_TO_LVIF(_vif) container_of(_vif, struct lkpi_vif, vif) 214 #define LVIF_TO_VIF(_lvif) (&(_lvif)->vif) 215 216 217 struct lkpi_hw { /* name it mac80211_sc? */ 218 const struct ieee80211_ops *ops; 219 struct ieee80211_scan_request *hw_req; 220 struct workqueue_struct *workq; 221 222 /* FreeBSD specific compat. */ 223 /* Linux device is in hw.wiphy->dev after SET_IEEE80211_DEV(). */ 224 struct ieee80211com *ic; 225 struct lkpi_radiotap_tx_hdr rtap_tx; 226 struct lkpi_radiotap_rx_hdr rtap_rx; 227 228 TAILQ_HEAD(, lkpi_vif) lvif_head; 229 struct sx lvif_sx; 230 231 struct list_head lchanctx_list; 232 struct netdev_hw_addr_list mc_list; 233 unsigned int mc_flags; 234 struct sx mc_sx; 235 236 struct mtx txq_mtx; 237 uint32_t txq_generation[IEEE80211_NUM_ACS]; 238 TAILQ_HEAD(, lkpi_txq) scheduled_txqs[IEEE80211_NUM_ACS]; 239 240 /* Deferred RX path. */ 241 struct task rxq_task; 242 struct mbufq rxq; 243 struct mtx rxq_mtx; 244 245 /* Scan functions we overload to handle depending on scan mode. */ 246 void (*ic_scan_curchan)(struct ieee80211_scan_state *, 247 unsigned long); 248 void (*ic_scan_mindwell)(struct ieee80211_scan_state *); 249 250 /* Node functions we overload to sync state. */ 251 struct ieee80211_node * (*ic_node_alloc)(struct ieee80211vap *, 252 const uint8_t [IEEE80211_ADDR_LEN]); 253 int (*ic_node_init)(struct ieee80211_node *); 254 void (*ic_node_cleanup)(struct ieee80211_node *); 255 void (*ic_node_free)(struct ieee80211_node *); 256 257 /* HT and later functions. */ 258 int (*ic_recv_action)(struct ieee80211_node *, 259 const struct ieee80211_frame *, 260 const uint8_t *, const uint8_t *); 261 int (*ic_send_action)(struct ieee80211_node *, 262 int, int, void *); 263 int (*ic_ampdu_enable)(struct ieee80211_node *, 264 struct ieee80211_tx_ampdu *); 265 int (*ic_addba_request)(struct ieee80211_node *, 266 struct ieee80211_tx_ampdu *, int, int, int); 267 int (*ic_addba_response)(struct ieee80211_node *, 268 struct ieee80211_tx_ampdu *, int, int, int); 269 void (*ic_addba_stop)(struct ieee80211_node *, 270 struct ieee80211_tx_ampdu *); 271 void (*ic_addba_response_timeout)(struct ieee80211_node *, 272 struct ieee80211_tx_ampdu *); 273 void (*ic_bar_response)(struct ieee80211_node *, 274 struct ieee80211_tx_ampdu *, int); 275 int (*ic_ampdu_rx_start)(struct ieee80211_node *, 276 struct ieee80211_rx_ampdu *, int, int, int); 277 void (*ic_ampdu_rx_stop)(struct ieee80211_node *, 278 struct ieee80211_rx_ampdu *); 279 280 #define LKPI_MAC80211_DRV_STARTED 0x00000001 281 uint32_t sc_flags; 282 #define LKPI_LHW_SCAN_RUNNING 0x00000001 283 #define LKPI_LHW_SCAN_HW 0x00000002 284 uint32_t scan_flags; 285 struct mtx scan_mtx; 286 287 int supbands; /* Number of supported bands. */ 288 int max_rates; /* Maximum number of bitrates supported in any channel. */ 289 int scan_ie_len; /* Length of common per-band scan IEs. */ 290 291 bool mc_all_multi; 292 bool update_wme; 293 bool rxq_stopped; 294 295 /* Must be last! */ 296 struct ieee80211_hw hw __aligned(CACHE_LINE_SIZE); 297 }; 298 #define LHW_TO_HW(_lhw) (&(_lhw)->hw) 299 #define HW_TO_LHW(_hw) container_of(_hw, struct lkpi_hw, hw) 300 301 struct lkpi_chanctx { 302 struct list_head entry; 303 304 bool added_to_drv; /* Managed by MO */ 305 306 struct ieee80211_chanctx_conf chanctx_conf __aligned(CACHE_LINE_SIZE); 307 }; 308 #define LCHANCTX_TO_CHANCTX_CONF(_lchanctx) \ 309 (&(_lchanctx)->chanctx_conf) 310 #define CHANCTX_CONF_TO_LCHANCTX(_conf) \ 311 container_of(_conf, struct lkpi_chanctx, chanctx_conf) 312 313 struct lkpi_wiphy { 314 const struct cfg80211_ops *ops; 315 316 struct work_struct wwk; 317 struct list_head wwk_list; 318 struct mtx wwk_mtx; 319 320 /* Must be last! */ 321 struct wiphy wiphy __aligned(CACHE_LINE_SIZE); 322 }; 323 #define WIPHY_TO_LWIPHY(_wiphy) container_of(_wiphy, struct lkpi_wiphy, wiphy) 324 #define LWIPHY_TO_WIPHY(_lwiphy) (&(_lwiphy)->wiphy) 325 326 #define LKPI_80211_LWIPHY_WORK_LOCK_INIT(_lwiphy) \ 327 mtx_init(&(_lwiphy)->wwk_mtx, "lwiphy-work", NULL, MTX_DEF); 328 #define LKPI_80211_LWIPHY_WORK_LOCK_DESTROY(_lwiphy) \ 329 mtx_destroy(&(_lwiphy)->wwk_mtx) 330 #define LKPI_80211_LWIPHY_WORK_LOCK(_lwiphy) \ 331 mtx_lock(&(_lwiphy)->wwk_mtx) 332 #define LKPI_80211_LWIPHY_WORK_UNLOCK(_lwiphy) \ 333 mtx_unlock(&(_lwiphy)->wwk_mtx) 334 #define LKPI_80211_LWIPHY_WORK_LOCK_ASSERT(_lwiphy) \ 335 mtx_assert(&(_lwiphy)->wwk_mtx, MA_OWNED) 336 #define LKPI_80211_LWIPHY_WORK_UNLOCK_ASSERT(_lwiphy) \ 337 mtx_assert(&(_lwiphy)->wwk_mtx, MA_NOTOWNED) 338 339 #define LKPI_80211_LHW_SCAN_LOCK_INIT(_lhw) \ 340 mtx_init(&(_lhw)->scan_mtx, "lhw-scan", NULL, MTX_DEF | MTX_RECURSE); 341 #define LKPI_80211_LHW_SCAN_LOCK_DESTROY(_lhw) \ 342 mtx_destroy(&(_lhw)->scan_mtx); 343 #define LKPI_80211_LHW_SCAN_LOCK(_lhw) \ 344 mtx_lock(&(_lhw)->scan_mtx) 345 #define LKPI_80211_LHW_SCAN_UNLOCK(_lhw) \ 346 mtx_unlock(&(_lhw)->scan_mtx) 347 #define LKPI_80211_LHW_SCAN_LOCK_ASSERT(_lhw) \ 348 mtx_assert(&(_lhw)->scan_mtx, MA_OWNED) 349 #define LKPI_80211_LHW_SCAN_UNLOCK_ASSERT(_lhw) \ 350 mtx_assert(&(_lhw)->scan_mtx, MA_NOTOWNED) 351 352 #define LKPI_80211_LHW_TXQ_LOCK_INIT(_lhw) \ 353 mtx_init(&(_lhw)->txq_mtx, "lhw-txq", NULL, MTX_DEF | MTX_RECURSE); 354 #define LKPI_80211_LHW_TXQ_LOCK_DESTROY(_lhw) \ 355 mtx_destroy(&(_lhw)->txq_mtx); 356 #define LKPI_80211_LHW_TXQ_LOCK(_lhw) \ 357 mtx_lock(&(_lhw)->txq_mtx) 358 #define LKPI_80211_LHW_TXQ_UNLOCK(_lhw) \ 359 mtx_unlock(&(_lhw)->txq_mtx) 360 #define LKPI_80211_LHW_TXQ_LOCK_ASSERT(_lhw) \ 361 mtx_assert(&(_lhw)->txq_mtx, MA_OWNED) 362 #define LKPI_80211_LHW_TXQ_UNLOCK_ASSERT(_lhw) \ 363 mtx_assert(&(_lhw)->txq_mtx, MA_NOTOWNED) 364 365 #define LKPI_80211_LHW_RXQ_LOCK_INIT(_lhw) \ 366 mtx_init(&(_lhw)->rxq_mtx, "lhw-rxq", NULL, MTX_DEF | MTX_RECURSE); 367 #define LKPI_80211_LHW_RXQ_LOCK_DESTROY(_lhw) \ 368 mtx_destroy(&(_lhw)->rxq_mtx); 369 #define LKPI_80211_LHW_RXQ_LOCK(_lhw) \ 370 mtx_lock(&(_lhw)->rxq_mtx) 371 #define LKPI_80211_LHW_RXQ_UNLOCK(_lhw) \ 372 mtx_unlock(&(_lhw)->rxq_mtx) 373 #define LKPI_80211_LHW_RXQ_LOCK_ASSERT(_lhw) \ 374 mtx_assert(&(_lhw)->rxq_mtx, MA_OWNED) 375 #define LKPI_80211_LHW_RXQ_UNLOCK_ASSERT(_lhw) \ 376 mtx_assert(&(_lhw)->rxq_mtx, MA_NOTOWNED) 377 378 #define LKPI_80211_LHW_LVIF_LOCK(_lhw) sx_xlock(&(_lhw)->lvif_sx) 379 #define LKPI_80211_LHW_LVIF_UNLOCK(_lhw) sx_xunlock(&(_lhw)->lvif_sx) 380 381 #define LKPI_80211_LHW_MC_LOCK_INIT(_lhw) \ 382 sx_init_flags(&lhw->mc_sx, "lhw-mc", 0); 383 #define LKPI_80211_LHW_MC_LOCK_DESTROY(_lhw) \ 384 sx_destroy(&lhw->mc_sx); 385 #define LKPI_80211_LHW_MC_LOCK(_lhw) sx_xlock(&(_lhw)->mc_sx) 386 #define LKPI_80211_LHW_MC_UNLOCK(_lhw) sx_xunlock(&(_lhw)->mc_sx) 387 388 #define LKPI_80211_LVIF_LOCK(_lvif) mtx_lock(&(_lvif)->mtx) 389 #define LKPI_80211_LVIF_UNLOCK(_lvif) mtx_unlock(&(_lvif)->mtx) 390 391 #define LKPI_80211_LSTA_TXQ_LOCK_INIT(_lsta) \ 392 mtx_init(&(_lsta)->txq_mtx, "lsta-txq", NULL, MTX_DEF); 393 #define LKPI_80211_LSTA_TXQ_LOCK_DESTROY(_lsta) \ 394 mtx_destroy(&(_lsta)->txq_mtx); 395 #define LKPI_80211_LSTA_TXQ_LOCK(_lsta) \ 396 mtx_lock(&(_lsta)->txq_mtx) 397 #define LKPI_80211_LSTA_TXQ_UNLOCK(_lsta) \ 398 mtx_unlock(&(_lsta)->txq_mtx) 399 #define LKPI_80211_LSTA_TXQ_LOCK_ASSERT(_lsta) \ 400 mtx_assert(&(_lsta)->txq_mtx, MA_OWNED) 401 #define LKPI_80211_LSTA_TXQ_UNLOCK_ASSERT(_lsta) \ 402 mtx_assert(&(_lsta)->txq_mtx, MA_NOTOWNED) 403 404 #define LKPI_80211_LTXQ_LOCK_INIT(_ltxq) \ 405 mtx_init(&(_ltxq)->ltxq_mtx, "ltxq", NULL, MTX_DEF); 406 #define LKPI_80211_LTXQ_LOCK_DESTROY(_ltxq) \ 407 mtx_destroy(&(_ltxq)->ltxq_mtx); 408 #define LKPI_80211_LTXQ_LOCK(_ltxq) \ 409 mtx_lock(&(_ltxq)->ltxq_mtx) 410 #define LKPI_80211_LTXQ_UNLOCK(_ltxq) \ 411 mtx_unlock(&(_ltxq)->ltxq_mtx) 412 #define LKPI_80211_LTXQ_LOCK_ASSERT(_ltxq) \ 413 mtx_assert(&(_ltxq)->ltxq_mtx, MA_OWNED) 414 #define LKPI_80211_LTXQ_UNLOCK_ASSERT(_ltxq) \ 415 mtx_assert(&(_ltxq)->ltxq_mtx, MA_NOTOWNED) 416 417 int lkpi_80211_mo_start(struct ieee80211_hw *); 418 void lkpi_80211_mo_stop(struct ieee80211_hw *, bool); 419 int lkpi_80211_mo_get_antenna(struct ieee80211_hw *, u32 *, u32 *); 420 int lkpi_80211_mo_set_frag_threshold(struct ieee80211_hw *, uint32_t); 421 int lkpi_80211_mo_set_rts_threshold(struct ieee80211_hw *, uint32_t); 422 int lkpi_80211_mo_add_interface(struct ieee80211_hw *, struct ieee80211_vif *); 423 void lkpi_80211_mo_remove_interface(struct ieee80211_hw *, struct ieee80211_vif *); 424 int lkpi_80211_mo_hw_scan(struct ieee80211_hw *, struct ieee80211_vif *, 425 struct ieee80211_scan_request *); 426 void lkpi_80211_mo_cancel_hw_scan(struct ieee80211_hw *, struct ieee80211_vif *); 427 void lkpi_80211_mo_sw_scan_complete(struct ieee80211_hw *, struct ieee80211_vif *); 428 void lkpi_80211_mo_sw_scan_start(struct ieee80211_hw *, struct ieee80211_vif *, 429 const u8 *); 430 u64 lkpi_80211_mo_prepare_multicast(struct ieee80211_hw *, 431 struct netdev_hw_addr_list *); 432 void lkpi_80211_mo_configure_filter(struct ieee80211_hw *, unsigned int, 433 unsigned int *, u64); 434 int lkpi_80211_mo_sta_state(struct ieee80211_hw *, struct ieee80211_vif *, 435 struct lkpi_sta *, enum ieee80211_sta_state); 436 int lkpi_80211_mo_config(struct ieee80211_hw *, uint32_t); 437 int lkpi_80211_mo_assign_vif_chanctx(struct ieee80211_hw *, struct ieee80211_vif *, 438 struct ieee80211_bss_conf *, struct ieee80211_chanctx_conf *); 439 void lkpi_80211_mo_unassign_vif_chanctx(struct ieee80211_hw *, struct ieee80211_vif *, 440 struct ieee80211_bss_conf *, struct ieee80211_chanctx_conf *); 441 int lkpi_80211_mo_add_chanctx(struct ieee80211_hw *, struct ieee80211_chanctx_conf *); 442 void lkpi_80211_mo_change_chanctx(struct ieee80211_hw *, 443 struct ieee80211_chanctx_conf *, uint32_t); 444 void lkpi_80211_mo_remove_chanctx(struct ieee80211_hw *, 445 struct ieee80211_chanctx_conf *); 446 void lkpi_80211_mo_bss_info_changed(struct ieee80211_hw *, struct ieee80211_vif *, 447 struct ieee80211_bss_conf *, uint64_t); 448 int lkpi_80211_mo_conf_tx(struct ieee80211_hw *, struct ieee80211_vif *, 449 uint32_t, uint16_t, const struct ieee80211_tx_queue_params *); 450 void lkpi_80211_mo_flush(struct ieee80211_hw *, struct ieee80211_vif *, 451 uint32_t, bool); 452 void lkpi_80211_mo_mgd_prepare_tx(struct ieee80211_hw *, struct ieee80211_vif *, 453 struct ieee80211_prep_tx_info *); 454 void lkpi_80211_mo_mgd_complete_tx(struct ieee80211_hw *, struct ieee80211_vif *, 455 struct ieee80211_prep_tx_info *); 456 void lkpi_80211_mo_tx(struct ieee80211_hw *, struct ieee80211_tx_control *, 457 struct sk_buff *); 458 void lkpi_80211_mo_wake_tx_queue(struct ieee80211_hw *, struct ieee80211_txq *); 459 void lkpi_80211_mo_sync_rx_queues(struct ieee80211_hw *); 460 void lkpi_80211_mo_sta_pre_rcu_remove(struct ieee80211_hw *, 461 struct ieee80211_vif *, struct ieee80211_sta *); 462 int lkpi_80211_mo_set_key(struct ieee80211_hw *, enum set_key_cmd, 463 struct ieee80211_vif *, struct ieee80211_sta *, 464 struct ieee80211_key_conf *); 465 int lkpi_80211_mo_ampdu_action(struct ieee80211_hw *, struct ieee80211_vif *, 466 struct ieee80211_ampdu_params *); 467 int lkpi_80211_mo_sta_statistics(struct ieee80211_hw *, struct ieee80211_vif *, 468 struct ieee80211_sta *, struct station_info *); 469 470 #endif /* _LKPI_SRC_LINUX_80211_H */ 471