aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-05-18 12:18:06 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-06-06 02:18:56 -0400
commit3839f7ce6dc749e3170e1bfa656cfac748528117 (patch)
treec4210fb405273f07239b68087edba2d133590654 /drivers/net/wireless
parentff0d91c3eea6e25b47258349b455671f98f1b0cd (diff)
iwlwifi: do not use huge command buffer for channel switch
Channel switch host command do not need to allocate huge command buffer since its size is already included in the iwl_device_cmd structure. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 19bb5b89b63d..32710a801cb0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -285,7 +285,7 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv,
285 struct iwl_host_cmd hcmd = { 285 struct iwl_host_cmd hcmd = {
286 .id = REPLY_CHANNEL_SWITCH, 286 .id = REPLY_CHANNEL_SWITCH,
287 .len = sizeof(cmd), 287 .len = sizeof(cmd),
288 .flags = CMD_SIZE_HUGE, 288 .flags = CMD_SYNC,
289 .data = &cmd, 289 .data = &cmd,
290 }; 290 };
291 291
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index 077514546d02..afdeec56b13f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -253,7 +253,7 @@ static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
253 struct iwl_host_cmd hcmd = { 253 struct iwl_host_cmd hcmd = {
254 .id = REPLY_CHANNEL_SWITCH, 254 .id = REPLY_CHANNEL_SWITCH,
255 .len = sizeof(cmd), 255 .len = sizeof(cmd),
256 .flags = CMD_SIZE_HUGE, 256 .flags = CMD_SYNC,
257 .data = &cmd, 257 .data = &cmd,
258 }; 258 };
259 259