Search Linux Wireless

Re: [PATCH 4/4] rt2x00: Report RX end time for rt2400pci

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

 



>  	rt2x00_desc_read(entry_priv->desc, 0, &word0);
>  	rt2x00_desc_read(entry_priv->desc, 2, &word2);
>  	rt2x00_desc_read(entry_priv->desc, 3, &word3);
> +	rt2x00_desc_read(entry_priv->desc, 4, &word4);
>  
>  	if (rt2x00_get_field32(word0, RXD_W0_CRC_ERROR))
>  		rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC;
> @@ -1106,6 +1108,7 @@ static void rt2400pci_fill_rxdone(struct queue_entry *entry,
>  	 * The signal is the PLCP value, and needs to be stripped
>  	 * of the preamble bit (0x08).
>  	 */
> +	rxdesc->timestamp = rt2x00_get_field32(word4, RXD_W4_RX_END_TIME);

You really should extend that, like this it's going to cause trouble as
soon as it has overflowed 32 bits once.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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