Le 22/04/2012 21:50, Zefir Kurtisi a écrit : > From: Zefir Kurtisi<zefir.kurt...@neratec.com> > > > Signed-off-by: Zefir Kurtisi<zefir.kurt...@neratec.com> > --- > drivers/net/wireless/ath/ath9k/recv.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/recv.c > b/drivers/net/wireless/ath/ath9k/recv.c > index ef45c0c..f647d0b 100644 > --- a/drivers/net/wireless/ath/ath9k/recv.c > +++ b/drivers/net/wireless/ath/ath9k/recv.c > @@ -1856,6 +1856,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, > bool hp) > unlikely(tsf_lower - rs.rs_tstamp> 0x10000000)) > rxs->mactime += 0x100000000ULL; > > + if (rs.rs_phyerr == ATH9K_PHYERR_RADAR) > + ath9k_dfs_process_phyerr(sc, hdr,&rs, rxs->mactime); > + > retval = ath9k_rx_skb_preprocess(common, hw, hdr,&rs, > rxs,&decrypt_error); > if (retval)
Sorry to jump into this old thread. IMHO, rs.rs_phyerr is only valid if rs.rs_status & ATH9K_RXERR_PHY is set. So we should check for the later first, isn't it? Regards, Benoit _______________________________________________ ath9k-devel mailing list ath9k-devel@lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel