]> 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)
commitd55b453336c3749b8e111efe1999da41c5b09ce5
treef1cde80fd13225f7fbc18562408459eb8e32fd3c
parent1209a512a42f696abba32fdcc8350fce0b246cbe
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