Commit 6def9761 authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville

iwlwifi: remove 4965 from station_entry

This patch removes 4965 mark form the station entry structure.
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6b9b3438
...@@ -3333,7 +3333,7 @@ static void iwl4965_sta_modify_enable_tid_tx(struct iwl_priv *priv, ...@@ -3333,7 +3333,7 @@ static void iwl4965_sta_modify_enable_tid_tx(struct iwl_priv *priv,
* ACK vs. not. This gets sent to mac80211, then to rate scaling algo. * ACK vs. not. This gets sent to mac80211, then to rate scaling algo.
*/ */
static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv, static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv,
struct iwl4965_ht_agg *agg, struct iwl_ht_agg *agg,
struct iwl4965_compressed_ba_resp* struct iwl4965_compressed_ba_resp*
ba_resp) ba_resp)
...@@ -3450,7 +3450,7 @@ int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id, ...@@ -3450,7 +3450,7 @@ int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id,
{ {
struct iwl4965_queue *q = &priv->txq[txq_id].q; struct iwl4965_queue *q = &priv->txq[txq_id].q;
u8 *addr = priv->stations[sta_id].sta.sta.addr; u8 *addr = priv->stations[sta_id].sta.sta.addr;
struct iwl4965_tid_data *tid_data = &priv->stations[sta_id].tid[tid]; struct iwl_tid_data *tid_data = &priv->stations[sta_id].tid[tid];
switch (priv->stations[sta_id].tid[tid].agg.state) { switch (priv->stations[sta_id].tid[tid].agg.state) {
case IWL_EMPTYING_HW_QUEUE_DELBA: case IWL_EMPTYING_HW_QUEUE_DELBA:
...@@ -3502,7 +3502,7 @@ static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv, ...@@ -3502,7 +3502,7 @@ static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv,
struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba; struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba;
int index; int index;
struct iwl4965_tx_queue *txq = NULL; struct iwl4965_tx_queue *txq = NULL;
struct iwl4965_ht_agg *agg; struct iwl_ht_agg *agg;
DECLARE_MAC_BUF(mac); DECLARE_MAC_BUF(mac);
/* "flow" corresponds to Tx queue */ /* "flow" corresponds to Tx queue */
...@@ -3929,7 +3929,7 @@ static int iwl4965_tx_agg_start(struct ieee80211_hw *hw, const u8 *ra, ...@@ -3929,7 +3929,7 @@ static int iwl4965_tx_agg_start(struct ieee80211_hw *hw, const u8 *ra,
int ssn = -1; int ssn = -1;
int ret = 0; int ret = 0;
unsigned long flags; unsigned long flags;
struct iwl4965_tid_data *tid_data; struct iwl_tid_data *tid_data;
DECLARE_MAC_BUF(mac); DECLARE_MAC_BUF(mac);
if (likely(tid < ARRAY_SIZE(default_tid_to_tx_fifo))) 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,7 +3982,7 @@ static int iwl4965_tx_agg_stop(struct ieee80211_hw *hw, const u8 *ra, u16 tid)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
int tx_fifo_id, txq_id, sta_id, ssn = -1; int tx_fifo_id, txq_id, sta_id, ssn = -1;
struct iwl4965_tid_data *tid_data; struct iwl_tid_data *tid_data;
int ret, write_ptr, read_ptr; int ret, write_ptr, read_ptr;
unsigned long flags; unsigned long flags;
DECLARE_MAC_BUF(mac); DECLARE_MAC_BUF(mac);
......
...@@ -206,7 +206,7 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, ...@@ -206,7 +206,7 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
struct iwl_priv *priv = (struct iwl_priv *)file->private_data; struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
struct iwl4965_station_entry *station; struct iwl_station_entry *station;
int max_sta = priv->hw_params.max_stations; int max_sta = priv->hw_params.max_stations;
char *buf; char *buf;
int i, j, pos = 0; int i, j, pos = 0;
......
...@@ -401,7 +401,7 @@ struct iwl_rx_queue { ...@@ -401,7 +401,7 @@ struct iwl_rx_queue {
#ifdef CONFIG_IWL4965_HT #ifdef CONFIG_IWL4965_HT
/** /**
* struct iwl4965_ht_agg -- aggregation status while waiting for block-ack * struct iwl_ht_agg -- aggregation status while waiting for block-ack
* @txq_id: Tx queue used for Tx attempt * @txq_id: Tx queue used for Tx attempt
* @frame_count: # frames attempted by Tx command * @frame_count: # frames attempted by Tx command
* @wait_for_ba: Expect block-ack before next Tx reply * @wait_for_ba: Expect block-ack before next Tx reply
...@@ -414,7 +414,7 @@ struct iwl_rx_queue { ...@@ -414,7 +414,7 @@ struct iwl_rx_queue {
* for block ack (REPLY_COMPRESSED_BA). This struct stores tx reply info * for block ack (REPLY_COMPRESSED_BA). This struct stores tx reply info
* until block ack arrives. * until block ack arrives.
*/ */
struct iwl4965_ht_agg { struct iwl_ht_agg {
u16 txq_id; u16 txq_id;
u16 frame_count; u16 frame_count;
u16 wait_for_ba; u16 wait_for_ba;
...@@ -430,15 +430,15 @@ struct iwl4965_ht_agg { ...@@ -430,15 +430,15 @@ struct iwl4965_ht_agg {
#endif /* CONFIG_IWL4965_HT */ #endif /* CONFIG_IWL4965_HT */
struct iwl4965_tid_data { struct iwl_tid_data {
u16 seq_number; u16 seq_number;
u16 tfds_in_queue; u16 tfds_in_queue;
#ifdef CONFIG_IWL4965_HT #ifdef CONFIG_IWL4965_HT
struct iwl4965_ht_agg agg; struct iwl_ht_agg agg;
#endif /* CONFIG_IWL4965_HT */ #endif /* CONFIG_IWL4965_HT */
}; };
struct iwl4965_hw_key { struct iwl_hw_key {
enum ieee80211_key_alg alg; enum ieee80211_key_alg alg;
int keylen; int keylen;
u8 keyidx; u8 keyidx;
...@@ -510,12 +510,12 @@ struct iwl4965_qos_info { ...@@ -510,12 +510,12 @@ struct iwl4965_qos_info {
#define STA_PS_STATUS_WAKE 0 #define STA_PS_STATUS_WAKE 0
#define STA_PS_STATUS_SLEEP 1 #define STA_PS_STATUS_SLEEP 1
struct iwl4965_station_entry { struct iwl_station_entry {
struct iwl4965_addsta_cmd sta; struct iwl4965_addsta_cmd sta;
struct iwl4965_tid_data tid[MAX_TID_COUNT]; struct iwl_tid_data tid[MAX_TID_COUNT];
u8 used; u8 used;
u8 ps_status; u8 ps_status;
struct iwl4965_hw_key keyinfo; struct iwl_hw_key keyinfo;
}; };
/* one for each uCode image (inst/data, boot/init/runtime) */ /* one for each uCode image (inst/data, boot/init/runtime) */
...@@ -1107,7 +1107,7 @@ struct iwl_priv { ...@@ -1107,7 +1107,7 @@ struct iwl_priv {
/*station table variables */ /*station table variables */
spinlock_t sta_lock; spinlock_t sta_lock;
int num_stations; int num_stations;
struct iwl4965_station_entry stations[IWL_STATION_COUNT]; struct iwl_station_entry stations[IWL_STATION_COUNT];
struct iwl_wep_key wep_keys[WEP_KEYS_MAX]; struct iwl_wep_key wep_keys[WEP_KEYS_MAX];
u8 default_wep_key; u8 default_wep_key;
u8 key_mapping_key; u8 key_mapping_key;
......
...@@ -333,7 +333,7 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv, ...@@ -333,7 +333,7 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv,
IWL_ERROR("index %d not used in uCode key table.\n", IWL_ERROR("index %d not used in uCode key table.\n",
priv->stations[sta_id].sta.key.key_offset); priv->stations[sta_id].sta.key.key_offset);
memset(&priv->stations[sta_id].keyinfo, 0, memset(&priv->stations[sta_id].keyinfo, 0,
sizeof(struct iwl4965_hw_key)); sizeof(struct iwl_hw_key));
memset(&priv->stations[sta_id].sta.key, 0, memset(&priv->stations[sta_id].sta.key, 0,
sizeof(struct iwl4965_keyinfo)); sizeof(struct iwl4965_keyinfo));
priv->stations[sta_id].sta.key.key_flags = priv->stations[sta_id].sta.key.key_flags =
......
...@@ -433,7 +433,7 @@ u8 iwl4965_add_station_flags(struct iwl_priv *priv, const u8 *addr, ...@@ -433,7 +433,7 @@ u8 iwl4965_add_station_flags(struct iwl_priv *priv, const u8 *addr,
{ {
int i; int i;
int index = IWL_INVALID_STATION; int index = IWL_INVALID_STATION;
struct iwl4965_station_entry *station; struct iwl_station_entry *station;
unsigned long flags_spin; unsigned long flags_spin;
DECLARE_MAC_BUF(mac); DECLARE_MAC_BUF(mac);
...@@ -1783,7 +1783,7 @@ static void iwl4965_build_tx_cmd_hwcrypto(struct iwl_priv *priv, ...@@ -1783,7 +1783,7 @@ static void iwl4965_build_tx_cmd_hwcrypto(struct iwl_priv *priv,
struct sk_buff *skb_frag, struct sk_buff *skb_frag,
int sta_id) int sta_id)
{ {
struct iwl4965_hw_key *keyinfo = &priv->stations[sta_id].keyinfo; struct iwl_hw_key *keyinfo = &priv->stations[sta_id].keyinfo;
struct iwl_wep_key *wepkey; struct iwl_wep_key *wepkey;
int keyidx = 0; int keyidx = 0;
...@@ -2617,7 +2617,7 @@ static inline u32 iwl4965_get_scd_ssn(struct iwl4965_tx_resp *tx_resp) ...@@ -2617,7 +2617,7 @@ static inline u32 iwl4965_get_scd_ssn(struct iwl4965_tx_resp *tx_resp)
* iwl4965_tx_status_reply_tx - Handle Tx rspnse for frames in aggregation queue * iwl4965_tx_status_reply_tx - Handle Tx rspnse for frames in aggregation queue
*/ */
static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv, static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv,
struct iwl4965_ht_agg *agg, struct iwl_ht_agg *agg,
struct iwl4965_tx_resp_agg *tx_resp, struct iwl4965_tx_resp_agg *tx_resp,
u16 start_idx) u16 start_idx)
{ {
...@@ -2775,7 +2775,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv, ...@@ -2775,7 +2775,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv,
if (txq->sched_retry) { if (txq->sched_retry) {
const u32 scd_ssn = iwl4965_get_scd_ssn(tx_resp); const u32 scd_ssn = iwl4965_get_scd_ssn(tx_resp);
struct iwl4965_ht_agg *agg = NULL; struct iwl_ht_agg *agg = NULL;
if (!qc) if (!qc)
return; return;
......
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