Commit 3e82a822 authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville

iwlwifi: Add tx_ant_num hw setting variable

Added tx_ant_num variable into hw_setting
This will be used for scanning TX antenna toggling
On the way removed ac_queue_num unused
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5c1b0958
...@@ -2300,7 +2300,6 @@ int iwl3945_hw_set_hw_setting(struct iwl3945_priv *priv) ...@@ -2300,7 +2300,6 @@ int iwl3945_hw_set_hw_setting(struct iwl3945_priv *priv)
return -ENOMEM; return -ENOMEM;
} }
priv->hw_setting.ac_queue_count = AC_NUM;
priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE; priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE;
priv->hw_setting.max_pkt_size = 2342; priv->hw_setting.max_pkt_size = 2342;
priv->hw_setting.tx_cmd_len = sizeof(struct iwl3945_tx_cmd); priv->hw_setting.tx_cmd_len = sizeof(struct iwl3945_tx_cmd);
...@@ -2308,6 +2307,8 @@ int iwl3945_hw_set_hw_setting(struct iwl3945_priv *priv) ...@@ -2308,6 +2307,8 @@ int iwl3945_hw_set_hw_setting(struct iwl3945_priv *priv)
priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG;
priv->hw_setting.max_stations = IWL3945_STATION_COUNT; priv->hw_setting.max_stations = IWL3945_STATION_COUNT;
priv->hw_setting.bcast_sta_id = IWL3945_BROADCAST_ID; priv->hw_setting.bcast_sta_id = IWL3945_BROADCAST_ID;
priv->hw_setting.tx_ant_num = 2;
return 0; return 0;
} }
......
...@@ -508,8 +508,8 @@ struct iwl3945_ibss_seq { ...@@ -508,8 +508,8 @@ struct iwl3945_ibss_seq {
/** /**
* struct iwl3945_driver_hw_info * struct iwl3945_driver_hw_info
* @max_txq_num: Max # Tx queues supported * @max_txq_num: Max # Tx queues supported
* @ac_queue_count: # Tx queues for EDCA Access Categories (AC)
* @tx_cmd_len: Size of Tx command (but not including frame itself) * @tx_cmd_len: Size of Tx command (but not including frame itself)
* @tx_ant_num: Number of TX antennas
* @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2)
* @rx_buf_size: * @rx_buf_size:
* @max_pkt_size: * @max_pkt_size:
...@@ -521,8 +521,8 @@ struct iwl3945_ibss_seq { ...@@ -521,8 +521,8 @@ struct iwl3945_ibss_seq {
*/ */
struct iwl3945_driver_hw_info { struct iwl3945_driver_hw_info {
u16 max_txq_num; u16 max_txq_num;
u16 ac_queue_count;
u16 tx_cmd_len; u16 tx_cmd_len;
u16 tx_ant_num;
u16 max_rxq_size; u16 max_rxq_size;
u32 rx_buf_size; u32 rx_buf_size;
u32 max_pkt_size; u32 max_pkt_size;
......
...@@ -1794,7 +1794,6 @@ int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv) ...@@ -1794,7 +1794,6 @@ int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv)
memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared)); memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared));
priv->hw_setting.max_txq_num = iwl4965_param_queues_num; priv->hw_setting.max_txq_num = iwl4965_param_queues_num;
priv->hw_setting.ac_queue_count = AC_NUM;
priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd); priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd);
priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE; priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE;
priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG;
...@@ -1805,6 +1804,9 @@ int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv) ...@@ -1805,6 +1804,9 @@ int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv)
priv->hw_setting.max_pkt_size = priv->hw_setting.rx_buf_size - 256; priv->hw_setting.max_pkt_size = priv->hw_setting.rx_buf_size - 256;
priv->hw_setting.max_stations = IWL4965_STATION_COUNT; priv->hw_setting.max_stations = IWL4965_STATION_COUNT;
priv->hw_setting.bcast_sta_id = IWL4965_BROADCAST_ID; priv->hw_setting.bcast_sta_id = IWL4965_BROADCAST_ID;
priv->hw_setting.tx_ant_num = 2;
return 0; return 0;
} }
......
...@@ -580,8 +580,8 @@ struct iwl4965_ibss_seq { ...@@ -580,8 +580,8 @@ struct iwl4965_ibss_seq {
/** /**
* struct iwl4965_driver_hw_info * struct iwl4965_driver_hw_info
* @max_txq_num: Max # Tx queues supported * @max_txq_num: Max # Tx queues supported
* @ac_queue_count: # Tx queues for EDCA Access Categories (AC)
* @tx_cmd_len: Size of Tx command (but not including frame itself) * @tx_cmd_len: Size of Tx command (but not including frame itself)
* @tx_ant_num: Number of TX antennas
* @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2)
* @rx_buffer_size: * @rx_buffer_size:
* @max_rxq_log: Log-base-2 of max_rxq_size * @max_rxq_log: Log-base-2 of max_rxq_size
...@@ -592,8 +592,8 @@ struct iwl4965_ibss_seq { ...@@ -592,8 +592,8 @@ struct iwl4965_ibss_seq {
*/ */
struct iwl4965_driver_hw_info { struct iwl4965_driver_hw_info {
u16 max_txq_num; u16 max_txq_num;
u16 ac_queue_count;
u16 tx_cmd_len; u16 tx_cmd_len;
u16 tx_ant_num;
u16 max_rxq_size; u16 max_rxq_size;
u32 rx_buf_size; u32 rx_buf_size;
u32 max_pkt_size; u32 max_pkt_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment