iwlwifi: fix scan_cmd_size allocation
authorDavid Spinadel <david.spinadel@intel.com>
Fri, 11 May 2012 08:53:15 +0000 (10:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 17:08:17 +0000 (13:08 -0400)
commit0ed462875a7825e89674f3e7ff9d67835feb9f73
treefbd4b3dad3a84f290f80f3cf372fdc71a62fd496
parentcd6c65981e72aef9f5cc42ffe64404542162790a
iwlwifi: fix scan_cmd_size allocation

Allocate scan command with dynamic size based on uCode capability
and num of channels.
This isn't an important fix as the previous allocation was always
too large as it added the scan command size but later subtracted
it (which meant it was supposed to be part of the max scan size.)

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-commands.h
drivers/net/wireless/iwlwifi/iwl-scan.c