iwlwifi: fix 6000 series channel switch command
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Sep 2012 14:40:12 +0000 (16:40 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:48 +0000 (23:26 +0000)
commit735dbc9e51ae26e10eb3a0f277cfd2d81ca675bb
treeca3705dabce6ce8f67d96f256169027f89c78f6d
parentde5bfe1d956feac7a0ed4df18a3f5eefd8c75a1c
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>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-6000.c