]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5950a2c3b77dc3f50f6a519207d53f71d21064a
treef1cde80fd13225f7fbc18562408459eb8e32fd3c
parent6b7cf9ad9e8eb8e61104e066748f1d1ee20e780b
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