iwlwifi: dvm: don't send zeroed LQ cmd
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 17 Apr 2013 06:47:00 +0000 (09:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:04 +0000 (20:33 -0700)
commitc30f37f8f1f8d06c142d67ba74955fd48b5cf5a4
tree6ba0164b8af23030c38243ac72ad859baaaab00c
parent34e3e78befc3c6f65f3e7ce70f0367745cd550b0
iwlwifi: dvm: don't send zeroed LQ cmd

commit 63b77bf489881747c5118476918cc8c29378ee63 upstream.

When the stations are being restored because of unassoc
RXON, the LQ cmd may not have been initialized because it
is initialized only after association.
Sending zeroed LQ_CMD makes the fw unhappy: it raises
SYSASSERT_2078.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
[move zero_lq and make static const]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/dvm/sta.c