summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/iwl-trans.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2016-08-15 16:36:47 +0200
committerLuca Coelho <luciano.coelho@intel.com>2016-09-19 09:09:39 +0200
commit5b88792cd8505d3804be199c10b3c4159fecb258 (patch)
tree2465f5aed065e455b33b57f4d5af762b7950016d /drivers/net/wireless/intel/iwlwifi/iwl-trans.c
parentiwlwifi: mvm: make iwl_mvm_update_sta() an inline (diff)
downloadlinux-5b88792cd8505d3804be199c10b3c4159fecb258.tar.xz
linux-5b88792cd8505d3804be199c10b3c4159fecb258.zip
iwlwifi: move to wide ID for all commands
Due to firmware design considerations, move to wide ID for all commands. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-trans.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/iwl-trans.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-trans.c b/drivers/net/wireless/intel/iwlwifi/iwl-trans.c
index b0bd67c64b5c..b42152c697be 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-trans.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-trans.c
@@ -140,6 +140,9 @@ int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd)
if (!(cmd->flags & CMD_ASYNC))
lock_map_acquire_read(&trans->sync_cmd_lockdep_map);
+ if (trans->wide_cmd_header && !iwl_cmd_groupid(cmd->id))
+ cmd->id = DEF_ID(cmd->id);
+
ret = trans->ops->send_cmd(trans, cmd);
if (!(cmd->flags & CMD_ASYNC))