|
101 | 101 | * Drivers indicate that they use this model by implementing the .wake_tx_queue |
102 | 102 | * driver operation. |
103 | 103 | * |
104 | | - * Intermediate queues (struct ieee80211_txq) are kept per-sta per-tid, with a |
105 | | - * single per-vif queue for multicast data frames. |
| 104 | + * Intermediate queues (struct ieee80211_txq) are kept per-sta per-tid, with |
| 105 | + * another per-sta for non-data/non-mgmt and bufferable management frames, and |
| 106 | + * a single per-vif queue for multicast data frames. |
106 | 107 | * |
107 | 108 | * The driver is expected to initialize its private per-queue data for stations |
108 | 109 | * and interfaces in the .add_interface and .sta_add ops. |
@@ -1843,7 +1844,8 @@ struct ieee80211_sta_rates { |
1843 | 1844 | * unlimited. |
1844 | 1845 | * @support_p2p_ps: indicates whether the STA supports P2P PS mechanism or not. |
1845 | 1846 | * @max_rc_amsdu_len: Maximum A-MSDU size in bytes recommended by rate control. |
1846 | | - * @txq: per-TID data TX queues (if driver uses the TXQ abstraction) |
| 1847 | + * @txq: per-TID data TX queues (if driver uses the TXQ abstraction); note that |
| 1848 | + * the last entry (%IEEE80211_NUM_TIDS) is used for non-data frames |
1847 | 1849 | */ |
1848 | 1850 | struct ieee80211_sta { |
1849 | 1851 | u32 supp_rates[NUM_NL80211_BANDS]; |
@@ -1884,7 +1886,7 @@ struct ieee80211_sta { |
1884 | 1886 | bool support_p2p_ps; |
1885 | 1887 | u16 max_rc_amsdu_len; |
1886 | 1888 |
|
1887 | | - struct ieee80211_txq *txq[IEEE80211_NUM_TIDS]; |
| 1889 | + struct ieee80211_txq *txq[IEEE80211_NUM_TIDS + 1]; |
1888 | 1890 |
|
1889 | 1891 | /* must be last */ |
1890 | 1892 | u8 drv_priv[0] __aligned(sizeof(void *)); |
@@ -1918,7 +1920,8 @@ struct ieee80211_tx_control { |
1918 | 1920 | * |
1919 | 1921 | * @vif: &struct ieee80211_vif pointer from the add_interface callback. |
1920 | 1922 | * @sta: station table entry, %NULL for per-vif queue |
1921 | | - * @tid: the TID for this queue (unused for per-vif queue) |
| 1923 | + * @tid: the TID for this queue (unused for per-vif queue), |
| 1924 | + * %IEEE80211_NUM_TIDS for non-data (if enabled) |
1922 | 1925 | * @ac: the AC for this queue |
1923 | 1926 | * @drv_priv: driver private area, sized by hw->txq_data_size |
1924 | 1927 | * |
@@ -2131,6 +2134,9 @@ struct ieee80211_txq { |
2131 | 2134 | * @IEEE80211_HW_DOESNT_SUPPORT_QOS_NDP: The driver (or firmware) doesn't |
2132 | 2135 | * support QoS NDP for AP probing - that's most likely a driver bug. |
2133 | 2136 | * |
| 2137 | + * @IEEE80211_HW_BUFF_MMPDU_TXQ: use the TXQ for bufferable MMPDUs, this of |
| 2138 | + * course requires the driver to use TXQs to start with. |
| 2139 | + * |
2134 | 2140 | * @NUM_IEEE80211_HW_FLAGS: number of hardware flags, used for sizing arrays |
2135 | 2141 | */ |
2136 | 2142 | enum ieee80211_hw_flags { |
@@ -2176,6 +2182,7 @@ enum ieee80211_hw_flags { |
2176 | 2182 | IEEE80211_HW_SUPPORTS_TDLS_BUFFER_STA, |
2177 | 2183 | IEEE80211_HW_DEAUTH_NEED_MGD_TX_PREP, |
2178 | 2184 | IEEE80211_HW_DOESNT_SUPPORT_QOS_NDP, |
| 2185 | + IEEE80211_HW_BUFF_MMPDU_TXQ, |
2179 | 2186 |
|
2180 | 2187 | /* keep last, obviously */ |
2181 | 2188 | NUM_IEEE80211_HW_FLAGS |
|
0 commit comments