2008-02-20 23:26:21 +02:00
|
|
|
Index: madwifi-trunk-r3314/ath/if_ath.c
|
2008-01-28 20:34:06 +02:00
|
|
|
===================================================================
|
2008-06-01 06:01:58 +03:00
|
|
|
--- madwifi-trunk-r3314.orig/ath/if_ath.c
|
|
|
|
+++ madwifi-trunk-r3314/ath/if_ath.c
|
|
|
|
@@ -1774,17 +1774,14 @@
|
2008-01-28 20:34:06 +02:00
|
|
|
* may have occurred in the intervening timeframe. */
|
|
|
|
bf->bf_channoise = ic->ic_channoise;
|
|
|
|
|
|
|
|
- if (rs->rs_status) {
|
|
|
|
- if ((HAL_RXERR_PHY == rs->rs_status) &&
|
|
|
|
- (HAL_PHYERR_RADAR ==
|
|
|
|
- (rs->rs_phyerr & 0x1f)) &&
|
|
|
|
- (0 == (bf->bf_status &
|
|
|
|
- ATH_BUFSTATUS_RADAR_DONE))) {
|
|
|
|
- check_for_radar = 1;
|
|
|
|
- }
|
|
|
|
- /* Skip past the error now */
|
|
|
|
+ if ((HAL_RXERR_PHY == rs->rs_status) &&
|
|
|
|
+ (HAL_PHYERR_RADAR == (rs->rs_phyerr & 0x1f)) &&
|
|
|
|
+ (0 == (bf->bf_status & ATH_BUFSTATUS_RADAR_DONE)) &&
|
|
|
|
+ (ic->ic_flags & IEEE80211_F_DOTH))
|
|
|
|
+ check_for_radar = 1;
|
|
|
|
+
|
|
|
|
+ if (rs->rs_status) /* Skip past the error now */
|
|
|
|
continue;
|
|
|
|
- }
|
|
|
|
|
|
|
|
/* Prepare wireless header for examination */
|
|
|
|
bus_dma_sync_single(sc->sc_bdev, bf->bf_skbaddr,
|
2008-02-20 23:26:21 +02:00
|
|
|
Index: madwifi-trunk-r3314/ath/if_ath_radar.c
|
2008-01-28 20:34:06 +02:00
|
|
|
===================================================================
|
2008-06-01 06:01:58 +03:00
|
|
|
--- madwifi-trunk-r3314.orig/ath/if_ath_radar.c
|
|
|
|
+++ madwifi-trunk-r3314/ath/if_ath_radar.c
|
|
|
|
@@ -261,7 +261,7 @@
|
2008-01-28 20:34:06 +02:00
|
|
|
unsigned int new_rxfilt = old_rxfilt;
|
|
|
|
|
|
|
|
ath_hal_intrset(ah, old_ier & ~HAL_INT_GLOBAL);
|
|
|
|
- if (required) {
|
|
|
|
+ if ((required) && (ic->ic_flags & IEEE80211_F_DOTH)) {
|
|
|
|
new_radar |= AR5K_PHY_RADAR_ENABLE;
|
|
|
|
new_filter |= AR5K_AR5212_PHY_ERR_FIL_RADAR;
|
|
|
|
new_rxfilt |= (HAL_RX_FILTER_PHYERR |
|