iwlwifi: mvm: use ksize to memset scan_command
authorDavid Spinadel <david.spinadel@intel.com>
Mon, 2 Jun 2014 06:59:49 +0000 (09:59 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Jun 2014 12:04:14 +0000 (15:04 +0300)
commit0564679bb6e750dc6d441f6d67e95c0590fa3f80
tree100777418fc1c9b9c0781f988231a3a80e4df48e
parent14ca0f389c11f9e845a3e10a834c6412af279ccd
iwlwifi: mvm: use ksize to memset scan_command

Use ksize to get scan command size instead of calculating it, to
avoid nasty bugs.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c