]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/ath/ath9k/ath9k.h
ath9k: fix rx descriptor related race condition
[~andy/linux] / drivers / net / wireless / ath / ath9k / ath9k.h
index 505c615ada1bf93744fe9415452ccdc605ef0de4..0d69b136aac9d72c06318ecbabf0fe11761daf3b 100644 (file)
@@ -79,10 +79,6 @@ struct ath_config {
                       sizeof(struct ath_buf_state));           \
        } while (0)
 
-#define ATH_RXBUF_RESET(_bf) do {              \
-               (_bf)->bf_stale = false;        \
-       } while (0)
-
 /**
  * enum buffer_type - Buffer type flags
  *
@@ -315,6 +311,7 @@ struct ath_rx {
        struct ath_descdma rxdma;
        struct ath_rx_edma rx_edma[ATH9K_RX_QUEUE_MAX];
 
+       struct ath_buf *buf_hold;
        struct sk_buff *frag;
 
        u32 ampdu_ref;