]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix monitor mode FCS flag
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Nov 2012 20:28:44 +0000 (21:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Nov 2012 10:08:38 +0000 (11:08 +0100)
commit72008ca66ab4e219bebc1ee0486fa8212a2f40b1
tree5bfa25ca8690f3bc905599b6c2698325ee4b495e
parentef24ff6a2bd85d1985deb81a393624a52f9be356
iwlwifi: fix monitor mode FCS flag

When the firmware is in SNIFFER mode, it leaves
the FCS at the end of frame. Not telling mac80211
means it won't add the right flag to the radiotap
header and that confuses wireshark.

Since mac80211 doesn't have a per-packet flag, set
the HW flag dynamically. This works as the monitor
vif can only be present in the driver by itself.

This fixes a regression introduced by my

commit 5431846af35481283a483e0f8d4a4671cac3a3c3
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Fri May 11 10:53:18 2012 +0200

    iwlwifi: support explicit monitor interface

Cc: stable@vger.kernel.org [3.5+]
Reported-by: MARK PHILLIPS <mark.phillips@virgin.net>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/mac80211.c