mt76.h (5ce09c1a79074f613326f626f4781d21fc557296) mt76.h (ea565833fd7848208eb63fc653d32a6ad3a86d87)
1/* SPDX-License-Identifier: ISC */
2/*
3 * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
4 */
5
6#ifndef __MT76_H
7#define __MT76_H
8

--- 272 unchanged lines hidden (view full) ---

281};
282
283#define MT_DRV_TXWI_NO_FREE BIT(0)
284#define MT_DRV_TX_ALIGNED4_SKBS BIT(1)
285#define MT_DRV_SW_RX_AIRTIME BIT(2)
286
287struct mt76_driver_ops {
288 u32 drv_flags;
1/* SPDX-License-Identifier: ISC */
2/*
3 * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
4 */
5
6#ifndef __MT76_H
7#define __MT76_H
8

--- 272 unchanged lines hidden (view full) ---

281};
282
283#define MT_DRV_TXWI_NO_FREE BIT(0)
284#define MT_DRV_TX_ALIGNED4_SKBS BIT(1)
285#define MT_DRV_SW_RX_AIRTIME BIT(2)
286
287struct mt76_driver_ops {
288 u32 drv_flags;
289 u32 survey_flags;
289 u16 txwi_size;
290
291 void (*update_survey)(struct mt76_dev *dev);
292
293 int (*tx_prepare_skb)(struct mt76_dev *dev, void *txwi_ptr,
294 enum mt76_txq_id qid, struct mt76_wcid *wcid,
295 struct ieee80211_sta *sta,
296 struct mt76_tx_info *tx_info);

--- 20 unchanged lines hidden (view full) ---

317 void (*sta_remove)(struct mt76_dev *dev, struct ieee80211_vif *vif,
318 struct ieee80211_sta *sta);
319};
320
321struct mt76_channel_state {
322 u64 cc_active;
323 u64 cc_busy;
324 u64 cc_bss_rx;
290 u16 txwi_size;
291
292 void (*update_survey)(struct mt76_dev *dev);
293
294 int (*tx_prepare_skb)(struct mt76_dev *dev, void *txwi_ptr,
295 enum mt76_txq_id qid, struct mt76_wcid *wcid,
296 struct ieee80211_sta *sta,
297 struct mt76_tx_info *tx_info);

--- 20 unchanged lines hidden (view full) ---

318 void (*sta_remove)(struct mt76_dev *dev, struct ieee80211_vif *vif,
319 struct ieee80211_sta *sta);
320};
321
322struct mt76_channel_state {
323 u64 cc_active;
324 u64 cc_busy;
325 u64 cc_bss_rx;
326 u64 cc_tx;
325};
326
327struct mt76_sband {
328 struct ieee80211_supported_band sband;
329 struct mt76_channel_state *chan;
330};
331
332struct mt76_rate_power {

--- 507 unchanged lines hidden ---
327};
328
329struct mt76_sband {
330 struct ieee80211_supported_band sband;
331 struct mt76_channel_state *chan;
332};
333
334struct mt76_rate_power {

--- 507 unchanged lines hidden ---