aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2012-02-03 11:31:45 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:56:01 -0500
commit0f8b90f526f097a5c897f52b3595e9af55fc9b59 (patch)
treede05d7aa2d62c70b51140744ae74d350b642cdd0 /drivers/net
parentb16db50a6dc486c3a6c32cd7982a75452cb785c2 (diff)
iwlegacy: get rid of *_devtype
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlegacy/3945-mac.c3
-rw-r--r--drivers/net/wireless/iwlegacy/4965-mac.c4
-rw-r--r--drivers/net/wireless/iwlegacy/common.c6
-rw-r--r--drivers/net/wireless/iwlegacy/common.h1
4 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c
index b11701f58741..15dcafbf29da 100644
--- a/drivers/net/wireless/iwlegacy/3945-mac.c
+++ b/drivers/net/wireless/iwlegacy/3945-mac.c
@@ -3621,9 +3621,6 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3621 3621
3622 il->ctx.interface_modes = 3622 il->ctx.interface_modes =
3623 BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC); 3623 BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC);
3624 il->ctx.ibss_devtype = RXON_DEV_TYPE_IBSS;
3625 il->ctx.station_devtype = RXON_DEV_TYPE_ESS;
3626 il->ctx.unused_devtype = RXON_DEV_TYPE_ESS;
3627 3624
3628 /* 3625 /*
3629 * Disabling hardware scan means that mac80211 will perform scans 3626 * Disabling hardware scan means that mac80211 will perform scans
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c
index af7886243fe0..33725e14e14e 100644
--- a/drivers/net/wireless/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/iwlegacy/4965-mac.c
@@ -6140,10 +6140,6 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
6140 il->ctx.ac_to_queue = il4965_bss_ac_to_queue; 6140 il->ctx.ac_to_queue = il4965_bss_ac_to_queue;
6141 il->ctx.exclusive_interface_modes = BIT(NL80211_IFTYPE_ADHOC); 6141 il->ctx.exclusive_interface_modes = BIT(NL80211_IFTYPE_ADHOC);
6142 il->ctx.interface_modes = BIT(NL80211_IFTYPE_STATION); 6142 il->ctx.interface_modes = BIT(NL80211_IFTYPE_STATION);
6143 il->ctx.ap_devtype = RXON_DEV_TYPE_AP;
6144 il->ctx.ibss_devtype = RXON_DEV_TYPE_IBSS;
6145 il->ctx.station_devtype = RXON_DEV_TYPE_ESS;
6146 il->ctx.unused_devtype = RXON_DEV_TYPE_ESS;
6147 6143
6148 SET_IEEE80211_DEV(hw, &pdev->dev); 6144 SET_IEEE80211_DEV(hw, &pdev->dev);
6149 6145
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c
index b7567a8063be..19ed86771a2a 100644
--- a/drivers/net/wireless/iwlegacy/common.c
+++ b/drivers/net/wireless/iwlegacy/common.c
@@ -4002,17 +4002,17 @@ il_connection_init_rx_config(struct il_priv *il, struct il_rxon_context *ctx)
4002 memset(&il->staging, 0, sizeof(il->staging)); 4002 memset(&il->staging, 0, sizeof(il->staging));
4003 4003
4004 if (!ctx->vif) { 4004 if (!ctx->vif) {
4005 il->staging.dev_type = ctx->unused_devtype; 4005 il->staging.dev_type = RXON_DEV_TYPE_ESS;
4006 } else 4006 } else
4007 switch (ctx->vif->type) { 4007 switch (ctx->vif->type) {
4008 4008
4009 case NL80211_IFTYPE_STATION: 4009 case NL80211_IFTYPE_STATION:
4010 il->staging.dev_type = ctx->station_devtype; 4010 il->staging.dev_type = RXON_DEV_TYPE_ESS;
4011 il->staging.filter_flags = RXON_FILTER_ACCEPT_GRP_MSK; 4011 il->staging.filter_flags = RXON_FILTER_ACCEPT_GRP_MSK;
4012 break; 4012 break;
4013 4013
4014 case NL80211_IFTYPE_ADHOC: 4014 case NL80211_IFTYPE_ADHOC:
4015 il->staging.dev_type = ctx->ibss_devtype; 4015 il->staging.dev_type = RXON_DEV_TYPE_IBSS;
4016 il->staging.flags = RXON_FLG_SHORT_PREAMBLE_MSK; 4016 il->staging.flags = RXON_FLG_SHORT_PREAMBLE_MSK;
4017 il->staging.filter_flags = 4017 il->staging.filter_flags =
4018 RXON_FILTER_BCON_AWARE_MSK | 4018 RXON_FILTER_BCON_AWARE_MSK |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h
index 66d0c1dd5894..8eac5712415d 100644
--- a/drivers/net/wireless/iwlegacy/common.h
+++ b/drivers/net/wireless/iwlegacy/common.h
@@ -1171,7 +1171,6 @@ struct il_rxon_context {
1171 int ctxid; 1171 int ctxid;
1172 1172
1173 u32 interface_modes, exclusive_interface_modes; 1173 u32 interface_modes, exclusive_interface_modes;
1174 u8 unused_devtype, ap_devtype, ibss_devtype, station_devtype;
1175 1174
1176 struct il_qos_info qos_data; 1175 struct il_qos_info qos_data;
1177 1176