diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-02-13 14:32:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:10 -0500 |
commit | 3e82a822c7c8ea5477062ec8885d7b90696fe73f (patch) | |
tree | a6960aff65d9f7cae83ec2a0a3850efbb7be9b76 /drivers | |
parent | 5c1b09581ba91d156ec907f5cbad07d33bf9e2ed (diff) |
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: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 4 |
4 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 50d927bb2170..82d282730b75 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -2300,7 +2300,6 @@ int iwl3945_hw_set_hw_setting(struct iwl3945_priv *priv) | |||
2300 | return -ENOMEM; | 2300 | return -ENOMEM; |
2301 | } | 2301 | } |
2302 | 2302 | ||
2303 | priv->hw_setting.ac_queue_count = AC_NUM; | ||
2304 | priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE; | 2303 | priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE; |
2305 | priv->hw_setting.max_pkt_size = 2342; | 2304 | priv->hw_setting.max_pkt_size = 2342; |
2306 | priv->hw_setting.tx_cmd_len = sizeof(struct iwl3945_tx_cmd); | 2305 | 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 | priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; | 2307 | priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; |
2309 | priv->hw_setting.max_stations = IWL3945_STATION_COUNT; | 2308 | priv->hw_setting.max_stations = IWL3945_STATION_COUNT; |
2310 | priv->hw_setting.bcast_sta_id = IWL3945_BROADCAST_ID; | 2309 | priv->hw_setting.bcast_sta_id = IWL3945_BROADCAST_ID; |
2310 | |||
2311 | priv->hw_setting.tx_ant_num = 2; | ||
2311 | return 0; | 2312 | return 0; |
2312 | } | 2313 | } |
2313 | 2314 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h index 393cff6f2270..dde389d31637 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945.h | |||
@@ -508,8 +508,8 @@ struct iwl3945_ibss_seq { | |||
508 | /** | 508 | /** |
509 | * struct iwl3945_driver_hw_info | 509 | * struct iwl3945_driver_hw_info |
510 | * @max_txq_num: Max # Tx queues supported | 510 | * @max_txq_num: Max # Tx queues supported |
511 | * @ac_queue_count: # Tx queues for EDCA Access Categories (AC) | ||
512 | * @tx_cmd_len: Size of Tx command (but not including frame itself) | 511 | * @tx_cmd_len: Size of Tx command (but not including frame itself) |
512 | * @tx_ant_num: Number of TX antennas | ||
513 | * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) | 513 | * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) |
514 | * @rx_buf_size: | 514 | * @rx_buf_size: |
515 | * @max_pkt_size: | 515 | * @max_pkt_size: |
@@ -521,8 +521,8 @@ struct iwl3945_ibss_seq { | |||
521 | */ | 521 | */ |
522 | struct iwl3945_driver_hw_info { | 522 | struct iwl3945_driver_hw_info { |
523 | u16 max_txq_num; | 523 | u16 max_txq_num; |
524 | u16 ac_queue_count; | ||
525 | u16 tx_cmd_len; | 524 | u16 tx_cmd_len; |
525 | u16 tx_ant_num; | ||
526 | u16 max_rxq_size; | 526 | u16 max_rxq_size; |
527 | u32 rx_buf_size; | 527 | u32 rx_buf_size; |
528 | u32 max_pkt_size; | 528 | u32 max_pkt_size; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index cc141f8ba616..237d3b24dd20 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -1794,7 +1794,6 @@ int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv) | |||
1794 | memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared)); | 1794 | memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared)); |
1795 | 1795 | ||
1796 | priv->hw_setting.max_txq_num = iwl4965_param_queues_num; | 1796 | priv->hw_setting.max_txq_num = iwl4965_param_queues_num; |
1797 | priv->hw_setting.ac_queue_count = AC_NUM; | ||
1798 | priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd); | 1797 | priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd); |
1799 | priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE; | 1798 | priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE; |
1800 | priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; | 1799 | 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 | priv->hw_setting.max_pkt_size = priv->hw_setting.rx_buf_size - 256; | 1804 | priv->hw_setting.max_pkt_size = priv->hw_setting.rx_buf_size - 256; |
1806 | priv->hw_setting.max_stations = IWL4965_STATION_COUNT; | 1805 | priv->hw_setting.max_stations = IWL4965_STATION_COUNT; |
1807 | priv->hw_setting.bcast_sta_id = IWL4965_BROADCAST_ID; | 1806 | priv->hw_setting.bcast_sta_id = IWL4965_BROADCAST_ID; |
1807 | |||
1808 | priv->hw_setting.tx_ant_num = 2; | ||
1809 | |||
1808 | return 0; | 1810 | return 0; |
1809 | } | 1811 | } |
1810 | 1812 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index 67189ab93dbe..ce17e4fec838 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -580,8 +580,8 @@ struct iwl4965_ibss_seq { | |||
580 | /** | 580 | /** |
581 | * struct iwl4965_driver_hw_info | 581 | * struct iwl4965_driver_hw_info |
582 | * @max_txq_num: Max # Tx queues supported | 582 | * @max_txq_num: Max # Tx queues supported |
583 | * @ac_queue_count: # Tx queues for EDCA Access Categories (AC) | ||
584 | * @tx_cmd_len: Size of Tx command (but not including frame itself) | 583 | * @tx_cmd_len: Size of Tx command (but not including frame itself) |
584 | * @tx_ant_num: Number of TX antennas | ||
585 | * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) | 585 | * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) |
586 | * @rx_buffer_size: | 586 | * @rx_buffer_size: |
587 | * @max_rxq_log: Log-base-2 of max_rxq_size | 587 | * @max_rxq_log: Log-base-2 of max_rxq_size |
@@ -592,8 +592,8 @@ struct iwl4965_ibss_seq { | |||
592 | */ | 592 | */ |
593 | struct iwl4965_driver_hw_info { | 593 | struct iwl4965_driver_hw_info { |
594 | u16 max_txq_num; | 594 | u16 max_txq_num; |
595 | u16 ac_queue_count; | ||
596 | u16 tx_cmd_len; | 595 | u16 tx_cmd_len; |
596 | u16 tx_ant_num; | ||
597 | u16 max_rxq_size; | 597 | u16 max_rxq_size; |
598 | u32 rx_buf_size; | 598 | u32 rx_buf_size; |
599 | u32 max_pkt_size; | 599 | u32 max_pkt_size; |