if_ath_rx.c (237522) | if_ath_rx.c (237526) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath_rx.c 237522 2012-06-24 07:01:49Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath_rx.c 237526 2012-06-24 08:09:06Z adrian $"); |
32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 491 unchanged lines hidden (view full) --- 531 /* Process DFS radar events */ 532 if ((rs->rs_phyerr == HAL_PHYERR_RADAR) || 533 (rs->rs_phyerr == HAL_PHYERR_FALSE_RADAR_EXT)) { 534 /* Since we're touching the frame data, sync it */ 535 bus_dmamap_sync(sc->sc_dmat, 536 bf->bf_dmamap, 537 BUS_DMASYNC_POSTREAD); 538 /* Now pass it to the radar processing code */ | 32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 491 unchanged lines hidden (view full) --- 531 /* Process DFS radar events */ 532 if ((rs->rs_phyerr == HAL_PHYERR_RADAR) || 533 (rs->rs_phyerr == HAL_PHYERR_FALSE_RADAR_EXT)) { 534 /* Since we're touching the frame data, sync it */ 535 bus_dmamap_sync(sc->sc_dmat, 536 bf->bf_dmamap, 537 BUS_DMASYNC_POSTREAD); 538 /* Now pass it to the radar processing code */ |
539 ath_dfs_process_phy_err(sc, mtod(m, char *), rstamp, rs); | 539 ath_dfs_process_phy_err(sc, m, rstamp, rs); |
540 } 541 542 /* Be suitably paranoid about receiving phy errors out of the stats array bounds */ 543 if (rs->rs_phyerr < 64) 544 sc->sc_stats.ast_rx_phy[rs->rs_phyerr]++; 545 goto rx_error; /* NB: don't count in ierrors */ 546 } 547 if (rs->rs_status & HAL_RXERR_DECRYPT) { --- 499 unchanged lines hidden --- | 540 } 541 542 /* Be suitably paranoid about receiving phy errors out of the stats array bounds */ 543 if (rs->rs_phyerr < 64) 544 sc->sc_stats.ast_rx_phy[rs->rs_phyerr]++; 545 goto rx_error; /* NB: don't count in ierrors */ 546 } 547 if (rs->rs_status & HAL_RXERR_DECRYPT) { --- 499 unchanged lines hidden --- |