diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:31:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:02 -0500 |
commit | 6aa0c25435e6383d4a4af88fae8d128200dcd471 (patch) | |
tree | 408006d26672f6fc01c488bb735fbd696b89c8a2 /drivers/net/wireless/iwlegacy | |
parent | 0f8b90f526f097a5c897f52b3595e9af55fc9b59 (diff) |
iwlegacy: get rid of ctxid
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/debug.c | 1 |
5 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index 15dcafbf29da..52cac0cd1064 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -3617,8 +3617,6 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3617 | 3617 | ||
3618 | il->cmd_queue = IL39_CMD_QUEUE_NUM; | 3618 | il->cmd_queue = IL39_CMD_QUEUE_NUM; |
3619 | 3619 | ||
3620 | il->ctx.ctxid = 0; | ||
3621 | |||
3622 | il->ctx.interface_modes = | 3620 | il->ctx.interface_modes = |
3623 | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC); | 3621 | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC); |
3624 | 3622 | ||
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index 33725e14e14e..3209970cf45f 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -6132,8 +6132,6 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6132 | il = hw->priv; | 6132 | il = hw->priv; |
6133 | /* At this point both hw and il are allocated. */ | 6133 | /* At this point both hw and il are allocated. */ |
6134 | 6134 | ||
6135 | il->ctx.ctxid = 0; | ||
6136 | |||
6137 | il->ctx.always_active = true; | 6135 | il->ctx.always_active = true; |
6138 | il->ctx.is_active = true; | 6136 | il->ctx.is_active = true; |
6139 | il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo; | 6137 | il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo; |
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index 19ed86771a2a..7c7ea778d219 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -1951,7 +1951,6 @@ il_prep_station(struct il_priv *il, struct il_rxon_context *ctx, | |||
1951 | station->sta.mode = 0; | 1951 | station->sta.mode = 0; |
1952 | station->sta.sta.sta_id = sta_id; | 1952 | station->sta.sta.sta_id = sta_id; |
1953 | station->sta.station_flags = ctx->station_flags; | 1953 | station->sta.station_flags = ctx->station_flags; |
1954 | station->ctxid = ctx->ctxid; | ||
1955 | 1954 | ||
1956 | if (sta) { | 1955 | if (sta) { |
1957 | struct il_station_priv_common *sta_priv; | 1956 | struct il_station_priv_common *sta_priv; |
@@ -2191,9 +2190,6 @@ il_clear_ucode_stations(struct il_priv *il, struct il_rxon_context *ctx) | |||
2191 | 2190 | ||
2192 | spin_lock_irqsave(&il->sta_lock, flags_spin); | 2191 | spin_lock_irqsave(&il->sta_lock, flags_spin); |
2193 | for (i = 0; i < il->hw_params.max_stations; i++) { | 2192 | for (i = 0; i < il->hw_params.max_stations; i++) { |
2194 | if (ctx && ctx->ctxid != il->stations[i].ctxid) | ||
2195 | continue; | ||
2196 | |||
2197 | if (il->stations[i].used & IL_STA_UCODE_ACTIVE) { | 2193 | if (il->stations[i].used & IL_STA_UCODE_ACTIVE) { |
2198 | D_INFO("Clearing ucode active for station %d\n", i); | 2194 | D_INFO("Clearing ucode active for station %d\n", i); |
2199 | il->stations[i].used &= ~IL_STA_UCODE_ACTIVE; | 2195 | il->stations[i].used &= ~IL_STA_UCODE_ACTIVE; |
@@ -2234,8 +2230,6 @@ il_restore_stations(struct il_priv *il, struct il_rxon_context *ctx) | |||
2234 | D_ASSOC("Restoring all known stations ... start.\n"); | 2230 | D_ASSOC("Restoring all known stations ... start.\n"); |
2235 | spin_lock_irqsave(&il->sta_lock, flags_spin); | 2231 | spin_lock_irqsave(&il->sta_lock, flags_spin); |
2236 | for (i = 0; i < il->hw_params.max_stations; i++) { | 2232 | for (i = 0; i < il->hw_params.max_stations; i++) { |
2237 | if (ctx->ctxid != il->stations[i].ctxid) | ||
2238 | continue; | ||
2239 | if ((il->stations[i].used & IL_STA_DRIVER_ACTIVE) && | 2233 | if ((il->stations[i].used & IL_STA_DRIVER_ACTIVE) && |
2240 | !(il->stations[i].used & IL_STA_UCODE_ACTIVE)) { | 2234 | !(il->stations[i].used & IL_STA_UCODE_ACTIVE)) { |
2241 | D_ASSOC("Restoring sta %pM\n", | 2235 | D_ASSOC("Restoring sta %pM\n", |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 8eac5712415d..8df2286ea05f 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -735,7 +735,7 @@ struct il_qos_info { | |||
735 | struct il_station_entry { | 735 | struct il_station_entry { |
736 | struct il_addsta_cmd sta; | 736 | struct il_addsta_cmd sta; |
737 | struct il_tid_data tid[MAX_TID_COUNT]; | 737 | struct il_tid_data tid[MAX_TID_COUNT]; |
738 | u8 used, ctxid; | 738 | u8 used; |
739 | struct il_hw_key keyinfo; | 739 | struct il_hw_key keyinfo; |
740 | struct il_link_quality_cmd *lq; | 740 | struct il_link_quality_cmd *lq; |
741 | }; | 741 | }; |
@@ -1168,8 +1168,6 @@ struct il_rxon_context { | |||
1168 | 1168 | ||
1169 | bool ht_need_multiple_chains; | 1169 | bool ht_need_multiple_chains; |
1170 | 1170 | ||
1171 | int ctxid; | ||
1172 | |||
1173 | u32 interface_modes, exclusive_interface_modes; | 1171 | u32 interface_modes, exclusive_interface_modes; |
1174 | 1172 | ||
1175 | struct il_qos_info qos_data; | 1173 | struct il_qos_info qos_data; |
diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c index 6e3841beb1df..f3cb45e53c05 100644 --- a/drivers/net/wireless/iwlegacy/debug.c +++ b/drivers/net/wireless/iwlegacy/debug.c | |||
@@ -649,7 +649,6 @@ il_dbgfs_qos_read(struct file *file, char __user *user_buf, size_t count, | |||
649 | char buf[256]; | 649 | char buf[256]; |
650 | const size_t bufsz = sizeof(buf); | 650 | const size_t bufsz = sizeof(buf); |
651 | 651 | ||
652 | pos += scnprintf(buf + pos, bufsz - pos, "context %d:\n", ctx->ctxid); | ||
653 | for (i = 0; i < AC_NUM; i++) { | 652 | for (i = 0; i < AC_NUM; i++) { |
654 | pos += | 653 | pos += |
655 | scnprintf(buf + pos, bufsz - pos, | 654 | scnprintf(buf + pos, bufsz - pos, |