diff options
| -rw-r--r-- | include/net/mac80211.h | 16 | ||||
| -rw-r--r-- | net/mac80211/status.c | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 12a49f0ba32c..5d1187d7c5e5 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -321,6 +321,9 @@ struct ieee80211_bss_conf { | |||
| 321 | * @IEEE80211_TX_CTL_LDPC: tells the driver to use LDPC for this frame | 321 | * @IEEE80211_TX_CTL_LDPC: tells the driver to use LDPC for this frame |
| 322 | * @IEEE80211_TX_CTL_STBC: Enables Space-Time Block Coding (STBC) for this | 322 | * @IEEE80211_TX_CTL_STBC: Enables Space-Time Block Coding (STBC) for this |
| 323 | * frame and selects the maximum number of streams that it can use. | 323 | * frame and selects the maximum number of streams that it can use. |
| 324 | * | ||
| 325 | * Note: If you have to add new flags to the enumeration, then don't | ||
| 326 | * forget to update %IEEE80211_TX_TEMPORARY_FLAGS when necessary. | ||
| 324 | */ | 327 | */ |
| 325 | enum mac80211_tx_control_flags { | 328 | enum mac80211_tx_control_flags { |
| 326 | IEEE80211_TX_CTL_REQ_TX_STATUS = BIT(0), | 329 | IEEE80211_TX_CTL_REQ_TX_STATUS = BIT(0), |
| @@ -350,6 +353,19 @@ enum mac80211_tx_control_flags { | |||
| 350 | 353 | ||
| 351 | #define IEEE80211_TX_CTL_STBC_SHIFT 23 | 354 | #define IEEE80211_TX_CTL_STBC_SHIFT 23 |
| 352 | 355 | ||
| 356 | /* | ||
| 357 | * This definition is used as a mask to clear all temporary flags, which are | ||
| 358 | * set by the tx handlers for each transmission attempt by the mac80211 stack. | ||
| 359 | */ | ||
| 360 | #define IEEE80211_TX_TEMPORARY_FLAGS (IEEE80211_TX_CTL_NO_ACK | \ | ||
| 361 | IEEE80211_TX_CTL_CLEAR_PS_FILT | IEEE80211_TX_CTL_FIRST_FRAGMENT | \ | ||
| 362 | IEEE80211_TX_CTL_SEND_AFTER_DTIM | IEEE80211_TX_CTL_AMPDU | \ | ||
| 363 | IEEE80211_TX_STAT_TX_FILTERED | IEEE80211_TX_STAT_ACK | \ | ||
| 364 | IEEE80211_TX_STAT_AMPDU | IEEE80211_TX_STAT_AMPDU_NO_BACK | \ | ||
| 365 | IEEE80211_TX_CTL_RATE_CTRL_PROBE | IEEE80211_TX_CTL_PSPOLL_RESPONSE | \ | ||
| 366 | IEEE80211_TX_CTL_MORE_FRAMES | IEEE80211_TX_CTL_LDPC | \ | ||
| 367 | IEEE80211_TX_CTL_STBC) | ||
| 368 | |||
| 353 | /** | 369 | /** |
| 354 | * enum mac80211_rate_control_flags - per-rate flags set by the | 370 | * enum mac80211_rate_control_flags - per-rate flags set by the |
| 355 | * Rate Control algorithm. | 371 | * Rate Control algorithm. |
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 571b32bfc54c..dd85006c4fe8 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c | |||
| @@ -58,6 +58,7 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local, | |||
| 58 | info->control.vif = &sta->sdata->vif; | 58 | info->control.vif = &sta->sdata->vif; |
| 59 | info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING | | 59 | info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING | |
| 60 | IEEE80211_TX_INTFL_RETRANSMISSION; | 60 | IEEE80211_TX_INTFL_RETRANSMISSION; |
| 61 | info->flags &= ~IEEE80211_TX_TEMPORARY_FLAGS; | ||
| 61 | 62 | ||
| 62 | sta->tx_filtered_count++; | 63 | sta->tx_filtered_count++; |
| 63 | 64 | ||
