From: Emmanuel Grumbach Date: Wed, 2 Mar 2016 07:35:38 +0000 (+0200) Subject: Merge branch 'fixes' into next X-Git-Tag: v4.6-rc1~91^2~79^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53f09e742b0fdf14a2a2bfd2062ee96c9b3eedf0;p=platform%2Fkernel%2Flinux-exynos.git Merge branch 'fixes' into next Signed-off-by: Emmanuel Grumbach --- 53f09e742b0fdf14a2a2bfd2062ee96c9b3eedf0 diff --cc drivers/net/wireless/intel/iwlwifi/mvm/fw.c index efec6ec,0ccc697..594cd0d --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@@ -108,25 -107,7 +108,25 @@@ static int iwl_send_tx_ant_cfg(struct i sizeof(tx_ant_cmd), &tx_ant_cmd); } +static int iwl_send_rss_cfg_cmd(struct iwl_mvm *mvm) +{ + int i; + struct iwl_rss_config_cmd cmd = { + .flags = cpu_to_le32(IWL_RSS_ENABLE), + .hash_mask = IWL_RSS_HASH_TYPE_IPV4_TCP | + IWL_RSS_HASH_TYPE_IPV4_PAYLOAD | + IWL_RSS_HASH_TYPE_IPV6_TCP | + IWL_RSS_HASH_TYPE_IPV6_PAYLOAD, + }; + + for (i = 0; i < ARRAY_SIZE(cmd.indirection_table); i++) + cmd.indirection_table[i] = i % mvm->trans->num_rx_queues; + memcpy(cmd.secret_key, mvm->secret_key, sizeof(cmd.secret_key)); + + return iwl_mvm_send_cmd_pdu(mvm, RSS_CONFIG_CMD, 0, sizeof(cmd), &cmd); +} + - static void iwl_free_fw_paging(struct iwl_mvm *mvm) + void iwl_free_fw_paging(struct iwl_mvm *mvm) { int i;