On Mon, Jan 26, 2009 at 10:17 PM, Tex <[email protected]> wrote:
> I have been running some surveys with the Atheros and Broadcom Drivers.
> When viewing the frames from wireshark , while in monitor mode, I
> noticed that the Atheros driver is reporting FCS errors on some frames,
> but the Broadcom driver isn't, in the radiotap header. If I expand the
> frame and look at the FCS wireshark reports the frame as bad and shows
> what the CRC should be. I put printk's in pio_rx_frame() (see below) and
> noticed that the macstat is being reported as zero. Does this mean that
> the status is not being sent to the driver from the chip or firmware? Is
> there some way for me to configure it to report bad FCS frames?
>
>             macstat = le32_to_cpu(rxhdr.mac_status);
>             printk (KERN_DEBUG "pio_rx_frame macstat is %x\n", macstat);
>             if (macstat & B43_RX_MAC_FCSERR) {
>                     if (!(q->dev->wl->filter_flags & FIF_FCSFAIL)) {
>                             /* Drop frames with failed FCS. */
>                             err_msg = "Frame FCS error";
>                             goto rx_error;
>                     }
>
> b43_op_configure filter has the following flags set:
>        *fflags &= FIF_PROMISC_IN_BSS |
>                  FIF_ALLMULTI |
>                  FIF_FCSFAIL |
>                  FIF_PLCPFAIL |
>                  FIF_CONTROL |
>                  FIF_OTHER_BSS |
>                  FIF_BCN_PRBRESP_PROMISC;
>
>        changed &= FIF_PROMISC_IN_BSS |
>                   FIF_ALLMULTI |
>                   FIF_FCSFAIL |
>                   FIF_PLCPFAIL |
>                   FIF_CONTROL |
>                   FIF_OTHER_BSS |
>                   FIF_BCN_PRBRESP_PROMISC;
>
>
>
>
> Thanks much
> Tex
>
> _______________________________________________
> Bcm43xx-dev mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
>

Note that you will never see correct FCS values in the Radiotap
header, as Linux does not actually insert the FCS into the header -
what Wireshark parses as the FCS field is actually RX Flags. (OpenBSD
uses index 14 for FCS, while all others use it for RX flags.
Wireshark, for some reason, follows the OpenBSD spec.)

-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to