iwlwifi: fix 6000 series channel switch command
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Sep 2012 14:40:12 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 19:47:23 +0000 (11:47 -0800)
commit0c4528e770362d3497f59e9d15484ce24dd65ba9
treeeb0ce1262e87402fd4acf1d343917e64264f99f8
parentbffeb2a91830ad2ad841b3d1203d6c7724099d8d
iwlwifi: fix 6000 series channel switch command

commit 8f7b8db6e0557c8437adf9371e020cd89a7e85dc upstream.

The channel switch command for 6000 series devices
is larger than the maximum inline command size of
320 bytes. The command is therefore refused with a
warning. Fix this by allocating the command and
using the NOCOPY mechanism.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/iwl-6000.c