瀏覽代碼

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>
Wey-Yi Guy 15 年之前
父節點
當前提交
3839f7ce6d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/net/wireless/iwlwifi/iwl-5000.c
  2. 1 1
      drivers/net/wireless/iwlwifi/iwl-6000.c

+ 1 - 1
drivers/net/wireless/iwlwifi/iwl-5000.c

@@ -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,
 	};
 

+ 1 - 1
drivers/net/wireless/iwlwifi/iwl-6000.c

@@ -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,
 	};