Search Linux Wireless

Re: [PATCH 2/2] ath9k: integrate initial DFS module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> @@ -1869,6 +1867,17 @@ 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_status & ATH9K_RXERR_PHY) &&
>>> +                   (rs.rs_phyerr == ATH9K_PHYERR_RADAR)) {
>>> +                       /* DFS: check for radar pulse */
>>> +                       ath9k_dfs_process_phyerr(sc, hdr, &rs, rxs->mactime);
>>> +               }
>>> +
>>> +               retval = ath9k_rx_skb_preprocess(common, hw, hdr, &rs,
>>> +                                                rxs, &decrypt_error);
>>> +               if (retval)
>>> +                       goto requeue_drop_frag;
>>
>> does the above fixes any bug related to mactime displayed in sniffer
>>
>>
>
> Hi Mohammed,
>
> no, like all other modifications within this patch the above does not fix anything (at least not intentionally) ;)
>
> What it does is moving the calculation of rxs->mactime before ath9k_rx_skb_preprocess(), since the mactime is needed to stamp the radar event. So, the five lines marked as removals are actually moved further down which shouldn't have any side effects.

sure, thanks a lot for your explanation ;)

>
>
> Thanks
> Zefir
>



-- 
shafi
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux