]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix wakeup status query and packet reporting
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Feb 2013 11:04:18 +0000 (12:04 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 Feb 2013 08:14:04 +0000 (09:14 +0100)
commit10544bece6f45b9783bd46869f6ec48695bbcf77
treee60d2b69a30d3f29a4e71f01d5753ef6db226aa8
parentc2b81401751c4753eb94e9a1e1da1d1307305856
iwlwifi: fix wakeup status query and packet reporting

The wakeup packet in the status response is padded out
to a multiple of 4 bytes by the firmware for transfer
to the host, take that into account when checking the
length of the command.

Also, the reported wakeup packet includes the FCS but
the userspace API doesn't, so remove that. If it is a
data packet it is reported as an 802.3 packet but I
forgot to take into account and remove the encryption
head/tail, fix all of that as well.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c
drivers/net/wireless/iwlwifi/mvm/mvm.h