mac80211: fix truncated packets in cooked monitor rx
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Apr 2012 12:56:48 +0000 (14:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Apr 2012 18:17:04 +0000 (14:17 -0400)
commit973ef21a676e55a8e1a100a6e109f0c116ea75e8
treef1cde80fd13225f7fbc18562408459eb8e32fd3c
parent32998cc96a76cc3f42f66b55fec301377e439c66
mac80211: fix truncated packets in cooked monitor rx

Cooked monitor rx was recently changed to use ieee80211_add_rx_radiotap_header
instead of generating only limited radiotap information.
ieee80211_add_rx_radiotap_header assumes that FCS info is still present if
the hardware supports receiving it, however when cooked monitor rx packets
are processed, FCS info has already been stripped.
Fix this by adding an extra flag indicating FCS presence.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c