diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-04 22:22:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-14 16:29:41 -0400 |
commit | 6def9761f72501e638e79eebcd70afea12a3a93d (patch) | |
tree | 62a2adbf1ba3cd864950fedc1ea7dff4d0a9f645 /drivers | |
parent | 6b9b34389c2fdb8618fe2c686b6872d26562fd07 (diff) |
iwlwifi: remove 4965 from station_entry
This patch removes 4965 mark form the station entry structure.
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-4965.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 18 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 8 |
5 files changed, 20 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 6eca75717f31..bd9d5ff7392d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -3333,7 +3333,7 @@ static void iwl4965_sta_modify_enable_tid_tx(struct iwl_priv *priv, | |||
3333 | * ACK vs. not. This gets sent to mac80211, then to rate scaling algo. | 3333 | * ACK vs. not. This gets sent to mac80211, then to rate scaling algo. |
3334 | */ | 3334 | */ |
3335 | static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv, | 3335 | static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv, |
3336 | struct iwl4965_ht_agg *agg, | 3336 | struct iwl_ht_agg *agg, |
3337 | struct iwl4965_compressed_ba_resp* | 3337 | struct iwl4965_compressed_ba_resp* |
3338 | ba_resp) | 3338 | ba_resp) |
3339 | 3339 | ||
@@ -3450,7 +3450,7 @@ int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id, | |||
3450 | { | 3450 | { |
3451 | struct iwl4965_queue *q = &priv->txq[txq_id].q; | 3451 | struct iwl4965_queue *q = &priv->txq[txq_id].q; |
3452 | u8 *addr = priv->stations[sta_id].sta.sta.addr; | 3452 | u8 *addr = priv->stations[sta_id].sta.sta.addr; |
3453 | struct iwl4965_tid_data *tid_data = &priv->stations[sta_id].tid[tid]; | 3453 | struct iwl_tid_data *tid_data = &priv->stations[sta_id].tid[tid]; |
3454 | 3454 | ||
3455 | switch (priv->stations[sta_id].tid[tid].agg.state) { | 3455 | switch (priv->stations[sta_id].tid[tid].agg.state) { |
3456 | case IWL_EMPTYING_HW_QUEUE_DELBA: | 3456 | case IWL_EMPTYING_HW_QUEUE_DELBA: |
@@ -3502,7 +3502,7 @@ static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv, | |||
3502 | struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba; | 3502 | struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba; |
3503 | int index; | 3503 | int index; |
3504 | struct iwl4965_tx_queue *txq = NULL; | 3504 | struct iwl4965_tx_queue *txq = NULL; |
3505 | struct iwl4965_ht_agg *agg; | 3505 | struct iwl_ht_agg *agg; |
3506 | DECLARE_MAC_BUF(mac); | 3506 | DECLARE_MAC_BUF(mac); |
3507 | 3507 | ||
3508 | /* "flow" corresponds to Tx queue */ | 3508 | /* "flow" corresponds to Tx queue */ |
@@ -3929,7 +3929,7 @@ static int iwl4965_tx_agg_start(struct ieee80211_hw *hw, const u8 *ra, | |||
3929 | int ssn = -1; | 3929 | int ssn = -1; |
3930 | int ret = 0; | 3930 | int ret = 0; |
3931 | unsigned long flags; | 3931 | unsigned long flags; |
3932 | struct iwl4965_tid_data *tid_data; | 3932 | struct iwl_tid_data *tid_data; |
3933 | DECLARE_MAC_BUF(mac); | 3933 | DECLARE_MAC_BUF(mac); |
3934 | 3934 | ||
3935 | if (likely(tid < ARRAY_SIZE(default_tid_to_tx_fifo))) | 3935 | if (likely(tid < ARRAY_SIZE(default_tid_to_tx_fifo))) |
@@ -3982,7 +3982,7 @@ static int iwl4965_tx_agg_stop(struct ieee80211_hw *hw, const u8 *ra, u16 tid) | |||
3982 | { | 3982 | { |
3983 | struct iwl_priv *priv = hw->priv; | 3983 | struct iwl_priv *priv = hw->priv; |
3984 | int tx_fifo_id, txq_id, sta_id, ssn = -1; | 3984 | int tx_fifo_id, txq_id, sta_id, ssn = -1; |
3985 | struct iwl4965_tid_data *tid_data; | 3985 | struct iwl_tid_data *tid_data; |
3986 | int ret, write_ptr, read_ptr; | 3986 | int ret, write_ptr, read_ptr; |
3987 | unsigned long flags; | 3987 | unsigned long flags; |
3988 | DECLARE_MAC_BUF(mac); | 3988 | DECLARE_MAC_BUF(mac); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 30914453de1e..37b52e63739b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -206,7 +206,7 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, | |||
206 | size_t count, loff_t *ppos) | 206 | size_t count, loff_t *ppos) |
207 | { | 207 | { |
208 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 208 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; |
209 | struct iwl4965_station_entry *station; | 209 | struct iwl_station_entry *station; |
210 | int max_sta = priv->hw_params.max_stations; | 210 | int max_sta = priv->hw_params.max_stations; |
211 | char *buf; | 211 | char *buf; |
212 | int i, j, pos = 0; | 212 | int i, j, pos = 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 1d80ad79114d..07eff75786b4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -401,7 +401,7 @@ struct iwl_rx_queue { | |||
401 | 401 | ||
402 | #ifdef CONFIG_IWL4965_HT | 402 | #ifdef CONFIG_IWL4965_HT |
403 | /** | 403 | /** |
404 | * struct iwl4965_ht_agg -- aggregation status while waiting for block-ack | 404 | * struct iwl_ht_agg -- aggregation status while waiting for block-ack |
405 | * @txq_id: Tx queue used for Tx attempt | 405 | * @txq_id: Tx queue used for Tx attempt |
406 | * @frame_count: # frames attempted by Tx command | 406 | * @frame_count: # frames attempted by Tx command |
407 | * @wait_for_ba: Expect block-ack before next Tx reply | 407 | * @wait_for_ba: Expect block-ack before next Tx reply |
@@ -414,7 +414,7 @@ struct iwl_rx_queue { | |||
414 | * for block ack (REPLY_COMPRESSED_BA). This struct stores tx reply info | 414 | * for block ack (REPLY_COMPRESSED_BA). This struct stores tx reply info |
415 | * until block ack arrives. | 415 | * until block ack arrives. |
416 | */ | 416 | */ |
417 | struct iwl4965_ht_agg { | 417 | struct iwl_ht_agg { |
418 | u16 txq_id; | 418 | u16 txq_id; |
419 | u16 frame_count; | 419 | u16 frame_count; |
420 | u16 wait_for_ba; | 420 | u16 wait_for_ba; |
@@ -430,15 +430,15 @@ struct iwl4965_ht_agg { | |||
430 | 430 | ||
431 | #endif /* CONFIG_IWL4965_HT */ | 431 | #endif /* CONFIG_IWL4965_HT */ |
432 | 432 | ||
433 | struct iwl4965_tid_data { | 433 | struct iwl_tid_data { |
434 | u16 seq_number; | 434 | u16 seq_number; |
435 | u16 tfds_in_queue; | 435 | u16 tfds_in_queue; |
436 | #ifdef CONFIG_IWL4965_HT | 436 | #ifdef CONFIG_IWL4965_HT |
437 | struct iwl4965_ht_agg agg; | 437 | struct iwl_ht_agg agg; |
438 | #endif /* CONFIG_IWL4965_HT */ | 438 | #endif /* CONFIG_IWL4965_HT */ |
439 | }; | 439 | }; |
440 | 440 | ||
441 | struct iwl4965_hw_key { | 441 | struct iwl_hw_key { |
442 | enum ieee80211_key_alg alg; | 442 | enum ieee80211_key_alg alg; |
443 | int keylen; | 443 | int keylen; |
444 | u8 keyidx; | 444 | u8 keyidx; |
@@ -510,12 +510,12 @@ struct iwl4965_qos_info { | |||
510 | #define STA_PS_STATUS_WAKE 0 | 510 | #define STA_PS_STATUS_WAKE 0 |
511 | #define STA_PS_STATUS_SLEEP 1 | 511 | #define STA_PS_STATUS_SLEEP 1 |
512 | 512 | ||
513 | struct iwl4965_station_entry { | 513 | struct iwl_station_entry { |
514 | struct iwl4965_addsta_cmd sta; | 514 | struct iwl4965_addsta_cmd sta; |
515 | struct iwl4965_tid_data tid[MAX_TID_COUNT]; | 515 | struct iwl_tid_data tid[MAX_TID_COUNT]; |
516 | u8 used; | 516 | u8 used; |
517 | u8 ps_status; | 517 | u8 ps_status; |
518 | struct iwl4965_hw_key keyinfo; | 518 | struct iwl_hw_key keyinfo; |
519 | }; | 519 | }; |
520 | 520 | ||
521 | /* one for each uCode image (inst/data, boot/init/runtime) */ | 521 | /* one for each uCode image (inst/data, boot/init/runtime) */ |
@@ -1107,7 +1107,7 @@ struct iwl_priv { | |||
1107 | /*station table variables */ | 1107 | /*station table variables */ |
1108 | spinlock_t sta_lock; | 1108 | spinlock_t sta_lock; |
1109 | int num_stations; | 1109 | int num_stations; |
1110 | struct iwl4965_station_entry stations[IWL_STATION_COUNT]; | 1110 | struct iwl_station_entry stations[IWL_STATION_COUNT]; |
1111 | struct iwl_wep_key wep_keys[WEP_KEYS_MAX]; | 1111 | struct iwl_wep_key wep_keys[WEP_KEYS_MAX]; |
1112 | u8 default_wep_key; | 1112 | u8 default_wep_key; |
1113 | u8 key_mapping_key; | 1113 | u8 key_mapping_key; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index 31b37a1a6430..0148d49e0b57 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -333,7 +333,7 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv, | |||
333 | IWL_ERROR("index %d not used in uCode key table.\n", | 333 | IWL_ERROR("index %d not used in uCode key table.\n", |
334 | priv->stations[sta_id].sta.key.key_offset); | 334 | priv->stations[sta_id].sta.key.key_offset); |
335 | memset(&priv->stations[sta_id].keyinfo, 0, | 335 | memset(&priv->stations[sta_id].keyinfo, 0, |
336 | sizeof(struct iwl4965_hw_key)); | 336 | sizeof(struct iwl_hw_key)); |
337 | memset(&priv->stations[sta_id].sta.key, 0, | 337 | memset(&priv->stations[sta_id].sta.key, 0, |
338 | sizeof(struct iwl4965_keyinfo)); | 338 | sizeof(struct iwl4965_keyinfo)); |
339 | priv->stations[sta_id].sta.key.key_flags = | 339 | priv->stations[sta_id].sta.key.key_flags = |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index aa0393589dae..50757ff66bab 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -433,7 +433,7 @@ u8 iwl4965_add_station_flags(struct iwl_priv *priv, const u8 *addr, | |||
433 | { | 433 | { |
434 | int i; | 434 | int i; |
435 | int index = IWL_INVALID_STATION; | 435 | int index = IWL_INVALID_STATION; |
436 | struct iwl4965_station_entry *station; | 436 | struct iwl_station_entry *station; |
437 | unsigned long flags_spin; | 437 | unsigned long flags_spin; |
438 | DECLARE_MAC_BUF(mac); | 438 | DECLARE_MAC_BUF(mac); |
439 | 439 | ||
@@ -1783,7 +1783,7 @@ static void iwl4965_build_tx_cmd_hwcrypto(struct iwl_priv *priv, | |||
1783 | struct sk_buff *skb_frag, | 1783 | struct sk_buff *skb_frag, |
1784 | int sta_id) | 1784 | int sta_id) |
1785 | { | 1785 | { |
1786 | struct iwl4965_hw_key *keyinfo = &priv->stations[sta_id].keyinfo; | 1786 | struct iwl_hw_key *keyinfo = &priv->stations[sta_id].keyinfo; |
1787 | struct iwl_wep_key *wepkey; | 1787 | struct iwl_wep_key *wepkey; |
1788 | int keyidx = 0; | 1788 | int keyidx = 0; |
1789 | 1789 | ||
@@ -2617,7 +2617,7 @@ static inline u32 iwl4965_get_scd_ssn(struct iwl4965_tx_resp *tx_resp) | |||
2617 | * iwl4965_tx_status_reply_tx - Handle Tx rspnse for frames in aggregation queue | 2617 | * iwl4965_tx_status_reply_tx - Handle Tx rspnse for frames in aggregation queue |
2618 | */ | 2618 | */ |
2619 | static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv, | 2619 | static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv, |
2620 | struct iwl4965_ht_agg *agg, | 2620 | struct iwl_ht_agg *agg, |
2621 | struct iwl4965_tx_resp_agg *tx_resp, | 2621 | struct iwl4965_tx_resp_agg *tx_resp, |
2622 | u16 start_idx) | 2622 | u16 start_idx) |
2623 | { | 2623 | { |
@@ -2775,7 +2775,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv, | |||
2775 | 2775 | ||
2776 | if (txq->sched_retry) { | 2776 | if (txq->sched_retry) { |
2777 | const u32 scd_ssn = iwl4965_get_scd_ssn(tx_resp); | 2777 | const u32 scd_ssn = iwl4965_get_scd_ssn(tx_resp); |
2778 | struct iwl4965_ht_agg *agg = NULL; | 2778 | struct iwl_ht_agg *agg = NULL; |
2779 | 2779 | ||
2780 | if (!qc) | 2780 | if (!qc) |
2781 | return; | 2781 | return; |