iwlwifi: do not use huge command buffer for channel switch
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Tue, 18 May 2010 16:18:06 +0000 (09:18 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Sun, 6 Jun 2010 06:18:56 +0000 (23:18 -0700)
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>
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-6000.c

index 19bb5b89b63da55883021580c512b4b8a28a95f7..32710a801cb08698615f2a320861cbcb18940d0b 100644 (file)
@@ -285,7 +285,7 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv,
        struct iwl_host_cmd hcmd = {
                .id = REPLY_CHANNEL_SWITCH,
                .len = sizeof(cmd),
-               .flags = CMD_SIZE_HUGE,
+               .flags = CMD_SYNC,
                .data = &cmd,
        };
 
index 077514546d021b93c10b6386a296cf299d76f516..afdeec56b13fceeb77c2d82e08165b3c1c9f6861 100644 (file)
@@ -253,7 +253,7 @@ static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
        struct iwl_host_cmd hcmd = {
                .id = REPLY_CHANNEL_SWITCH,
                .len = sizeof(cmd),
-               .flags = CMD_SIZE_HUGE,
+               .flags = CMD_SYNC,
                .data = &cmd,
        };