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)
commitf444eb10d537c776ce82fbcd07733d75f45346f1
treee60d2b69a30d3f29a4e71f01d5753ef6db226aa8
parent38a12b5b029dec6e6dad1b5d3269b4c356c44c0e
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