summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_mac.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-15 17:38:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:26 -0400
commitb5c80475abaad015699384ca64ef8229fdd88758 (patch)
tree68323f0a04427973085153304167678681f5459b /drivers/net/wireless/ath/ath9k/ar9003_mac.c
parentc38d4d2eb988717f7a8be24faeada648b5dac52a (diff)
downloadblackbird-op-linux-b5c80475abaad015699384ca64ef8229fdd88758.tar.gz
blackbird-op-linux-b5c80475abaad015699384ca64ef8229fdd88758.zip
ath9k: Add Rx EDMA support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
index f28adb23ac83..b229597e54cd 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
@@ -72,6 +72,9 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
if ((rxsp->ds_info & (AR_TxRxDesc | AR_CtrlStat)) != 0)
return -EINPROGRESS;
+ if (!rxs)
+ return 0;
+
rxs->rs_status = 0;
rxs->rs_flags = 0;
OpenPOWER on IntegriCloud