diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:31:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:55:59 -0500 |
commit | 8f9e56455310a3d75e8239db9729acb2b31dbdad (patch) | |
tree | 26eef96072718fe8793f1034f22c75211ef6ca2a /drivers/net/wireless | |
parent | d98e294231a29699848fd0e923d91fe979e13802 (diff) |
iwlegacy: get rid of ap_sta_id
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 2 |
4 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index 4a01acbf3a27..8072ae8b0ce8 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -3619,7 +3619,6 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3619 | 3619 | ||
3620 | il->ctx.ctxid = 0; | 3620 | il->ctx.ctxid = 0; |
3621 | 3621 | ||
3622 | il->ctx.ap_sta_id = IL_AP_ID; | ||
3623 | il->ctx.interface_modes = | 3622 | il->ctx.interface_modes = |
3624 | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC); | 3623 | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC); |
3625 | il->ctx.ibss_devtype = RXON_DEV_TYPE_IBSS; | 3624 | il->ctx.ibss_devtype = RXON_DEV_TYPE_IBSS; |
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index a2955a45c332..f2b03cd243b5 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -2906,7 +2906,7 @@ il4965_set_default_wep_key(struct il_priv *il, struct il_rxon_context *ctx, | |||
2906 | 2906 | ||
2907 | keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; | 2907 | keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; |
2908 | keyconf->hw_key_idx = HW_KEY_DEFAULT; | 2908 | keyconf->hw_key_idx = HW_KEY_DEFAULT; |
2909 | il->stations[ctx->ap_sta_id].keyinfo.cipher = keyconf->cipher; | 2909 | il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher; |
2910 | 2910 | ||
2911 | ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; | 2911 | ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; |
2912 | memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, | 2912 | memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, |
@@ -6135,7 +6135,6 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6135 | 6135 | ||
6136 | il->ctx.always_active = true; | 6136 | il->ctx.always_active = true; |
6137 | il->ctx.is_active = true; | 6137 | il->ctx.is_active = true; |
6138 | il->ctx.ap_sta_id = IL_AP_ID; | ||
6139 | il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo; | 6138 | il->ctx.ac_to_fifo = il4965_bss_ac_to_fifo; |
6140 | il->ctx.ac_to_queue = il4965_bss_ac_to_queue; | 6139 | il->ctx.ac_to_queue = il4965_bss_ac_to_queue; |
6141 | il->ctx.exclusive_interface_modes = BIT(NL80211_IFTYPE_ADHOC); | 6140 | il->ctx.exclusive_interface_modes = BIT(NL80211_IFTYPE_ADHOC); |
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index b95f832b14ea..d30a2062992b 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -1899,7 +1899,7 @@ il_prep_station(struct il_priv *il, struct il_rxon_context *ctx, | |||
1899 | u16 rate; | 1899 | u16 rate; |
1900 | 1900 | ||
1901 | if (is_ap) | 1901 | if (is_ap) |
1902 | sta_id = ctx->ap_sta_id; | 1902 | sta_id = IL_AP_ID; |
1903 | else if (is_broadcast_ether_addr(addr)) | 1903 | else if (is_broadcast_ether_addr(addr)) |
1904 | sta_id = ctx->bcast_sta_id; | 1904 | sta_id = ctx->bcast_sta_id; |
1905 | else | 1905 | else |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 46835f932bfc..cf7352f45cdb 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -1173,7 +1173,7 @@ struct il_rxon_context { | |||
1173 | 1173 | ||
1174 | struct il_qos_info qos_data; | 1174 | struct il_qos_info qos_data; |
1175 | 1175 | ||
1176 | u8 bcast_sta_id, ap_sta_id; | 1176 | u8 bcast_sta_id; |
1177 | 1177 | ||
1178 | struct il_wep_key wep_keys[WEP_KEYS_MAX]; | 1178 | struct il_wep_key wep_keys[WEP_KEYS_MAX]; |
1179 | u8 key_mapping_keys; | 1179 | u8 key_mapping_keys; |