diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index da5309e69bdd..b42bb8433a57 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -326,9 +326,9 @@ static u8 iwl3945_remove_station(struct iwl3945_priv *priv, const u8 *addr, int | |||
326 | if (is_ap) | 326 | if (is_ap) |
327 | index = IWL_AP_ID; | 327 | index = IWL_AP_ID; |
328 | else if (is_broadcast_ether_addr(addr)) | 328 | else if (is_broadcast_ether_addr(addr)) |
329 | index = priv->hw_setting.bcast_sta_id; | 329 | index = priv->hw_params.bcast_sta_id; |
330 | else | 330 | else |
331 | for (i = IWL_STA_ID; i < priv->hw_setting.max_stations; i++) | 331 | for (i = IWL_STA_ID; i < priv->hw_params.max_stations; i++) |
332 | if (priv->stations[i].used && | 332 | if (priv->stations[i].used && |
333 | !compare_ether_addr(priv->stations[i].sta.sta.addr, | 333 | !compare_ether_addr(priv->stations[i].sta.sta.addr, |
334 | addr)) { | 334 | addr)) { |
@@ -384,9 +384,9 @@ u8 iwl3945_add_station(struct iwl3945_priv *priv, const u8 *addr, int is_ap, u8 | |||
384 | if (is_ap) | 384 | if (is_ap) |
385 | index = IWL_AP_ID; | 385 | index = IWL_AP_ID; |
386 | else if (is_broadcast_ether_addr(addr)) | 386 | else if (is_broadcast_ether_addr(addr)) |
387 | index = priv->hw_setting.bcast_sta_id; | 387 | index = priv->hw_params.bcast_sta_id; |
388 | else | 388 | else |
389 | for (i = IWL_STA_ID; i < priv->hw_setting.max_stations; i++) { | 389 | for (i = IWL_STA_ID; i < priv->hw_params.max_stations; i++) { |
390 | if (!compare_ether_addr(priv->stations[i].sta.sta.addr, | 390 | if (!compare_ether_addr(priv->stations[i].sta.sta.addr, |
391 | addr)) { | 391 | addr)) { |
392 | index = i; | 392 | index = i; |
@@ -1470,13 +1470,13 @@ int iwl3945_eeprom_init(struct iwl3945_priv *priv) | |||
1470 | return 0; | 1470 | return 0; |
1471 | } | 1471 | } |
1472 | 1472 | ||
1473 | static void iwl3945_unset_hw_setting(struct iwl3945_priv *priv) | 1473 | static void iwl3945_unset_hw_params(struct iwl3945_priv *priv) |
1474 | { | 1474 | { |
1475 | if (priv->hw_setting.shared_virt) | 1475 | if (priv->shared_virt) |
1476 | pci_free_consistent(priv->pci_dev, | 1476 | pci_free_consistent(priv->pci_dev, |
1477 | sizeof(struct iwl3945_shared), | 1477 | sizeof(struct iwl3945_shared), |
1478 | priv->hw_setting.shared_virt, | 1478 | priv->shared_virt, |
1479 | priv->hw_setting.shared_phys); | 1479 | priv->shared_phys); |
1480 | } | 1480 | } |
1481 | 1481 | ||
1482 | /** | 1482 | /** |
@@ -2322,7 +2322,7 @@ static int iwl3945_get_sta_id(struct iwl3945_priv *priv, struct ieee80211_hdr *h | |||
2322 | /* If this frame is broadcast or management, use broadcast station id */ | 2322 | /* If this frame is broadcast or management, use broadcast station id */ |
2323 | if (((fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA) || | 2323 | if (((fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA) || |
2324 | is_multicast_ether_addr(hdr->addr1)) | 2324 | is_multicast_ether_addr(hdr->addr1)) |
2325 | return priv->hw_setting.bcast_sta_id; | 2325 | return priv->hw_params.bcast_sta_id; |
2326 | 2326 | ||
2327 | switch (priv->iw_mode) { | 2327 | switch (priv->iw_mode) { |
2328 | 2328 | ||
@@ -2336,7 +2336,7 @@ static int iwl3945_get_sta_id(struct iwl3945_priv *priv, struct ieee80211_hdr *h | |||
2336 | sta_id = iwl3945_hw_find_station(priv, hdr->addr1); | 2336 | sta_id = iwl3945_hw_find_station(priv, hdr->addr1); |
2337 | if (sta_id != IWL_INVALID_STATION) | 2337 | if (sta_id != IWL_INVALID_STATION) |
2338 | return sta_id; | 2338 | return sta_id; |
2339 | return priv->hw_setting.bcast_sta_id; | 2339 | return priv->hw_params.bcast_sta_id; |
2340 | 2340 | ||
2341 | /* If this frame is going out to an IBSS network, find the station, | 2341 | /* If this frame is going out to an IBSS network, find the station, |
2342 | * or create a new station table entry */ | 2342 | * or create a new station table entry */ |
@@ -2355,16 +2355,16 @@ static int iwl3945_get_sta_id(struct iwl3945_priv *priv, struct ieee80211_hdr *h | |||
2355 | "Defaulting to broadcast...\n", | 2355 | "Defaulting to broadcast...\n", |
2356 | hdr->addr1); | 2356 | hdr->addr1); |
2357 | iwl_print_hex_dump(priv, IWL_DL_DROP, (u8 *) hdr, sizeof(*hdr)); | 2357 | iwl_print_hex_dump(priv, IWL_DL_DROP, (u8 *) hdr, sizeof(*hdr)); |
2358 | return priv->hw_setting.bcast_sta_id; | 2358 | return priv->hw_params.bcast_sta_id; |
2359 | } | 2359 | } |
2360 | /* If we are in monitor mode, use BCAST. This is required for | 2360 | /* If we are in monitor mode, use BCAST. This is required for |
2361 | * packet injection. */ | 2361 | * packet injection. */ |
2362 | case NL80211_IFTYPE_MONITOR: | 2362 | case NL80211_IFTYPE_MONITOR: |
2363 | return priv->hw_setting.bcast_sta_id; | 2363 | return priv->hw_params.bcast_sta_id; |
2364 | 2364 | ||
2365 | default: | 2365 | default: |
2366 | IWL_WARNING("Unknown mode of operation: %d\n", priv->iw_mode); | 2366 | IWL_WARNING("Unknown mode of operation: %d\n", priv->iw_mode); |
2367 | return priv->hw_setting.bcast_sta_id; | 2367 | return priv->hw_params.bcast_sta_id; |
2368 | } | 2368 | } |
2369 | } | 2369 | } |
2370 | 2370 | ||
@@ -2497,7 +2497,7 @@ static int iwl3945_tx_skb(struct iwl3945_priv *priv, struct sk_buff *skb) | |||
2497 | * of the MAC header (device reads on dword boundaries). | 2497 | * of the MAC header (device reads on dword boundaries). |
2498 | * We'll tell device about this padding later. | 2498 | * We'll tell device about this padding later. |
2499 | */ | 2499 | */ |
2500 | len = priv->hw_setting.tx_cmd_len + | 2500 | len = sizeof(struct iwl3945_tx_cmd) + |
2501 | sizeof(struct iwl_cmd_header) + hdr_len; | 2501 | sizeof(struct iwl_cmd_header) + hdr_len; |
2502 | 2502 | ||
2503 | len_org = len; | 2503 | len_org = len; |
@@ -6094,7 +6094,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6094 | iwl3945_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data, | 6094 | iwl3945_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data, |
6095 | IWL_MAX_SCAN_SIZE - sizeof(*scan))); | 6095 | IWL_MAX_SCAN_SIZE - sizeof(*scan))); |
6096 | scan->tx_cmd.tx_flags = TX_CMD_FLG_SEQ_CTL_MSK; | 6096 | scan->tx_cmd.tx_flags = TX_CMD_FLG_SEQ_CTL_MSK; |
6097 | scan->tx_cmd.sta_id = priv->hw_setting.bcast_sta_id; | 6097 | scan->tx_cmd.sta_id = priv->hw_params.bcast_sta_id; |
6098 | scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; | 6098 | scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; |
6099 | 6099 | ||
6100 | /* flags + rate selection */ | 6100 | /* flags + rate selection */ |
@@ -7848,7 +7848,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7848 | * 5. Setup HW Constants | 7848 | * 5. Setup HW Constants |
7849 | * ********************/ | 7849 | * ********************/ |
7850 | /* Device-specific setup */ | 7850 | /* Device-specific setup */ |
7851 | if (iwl3945_hw_set_hw_setting(priv)) { | 7851 | if (iwl3945_hw_set_hw_params(priv)) { |
7852 | IWL_ERROR("failed to set hw settings\n"); | 7852 | IWL_ERROR("failed to set hw settings\n"); |
7853 | goto out_iounmap; | 7853 | goto out_iounmap; |
7854 | } | 7854 | } |
@@ -7971,7 +7971,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7971 | out_release_irq: | 7971 | out_release_irq: |
7972 | destroy_workqueue(priv->workqueue); | 7972 | destroy_workqueue(priv->workqueue); |
7973 | priv->workqueue = NULL; | 7973 | priv->workqueue = NULL; |
7974 | iwl3945_unset_hw_setting(priv); | 7974 | iwl3945_unset_hw_params(priv); |
7975 | 7975 | ||
7976 | out_iounmap: | 7976 | out_iounmap: |
7977 | pci_iounmap(pdev, priv->hw_base); | 7977 | pci_iounmap(pdev, priv->hw_base); |
@@ -8018,7 +8018,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev) | |||
8018 | iwl3945_rx_queue_free(priv, &priv->rxq); | 8018 | iwl3945_rx_queue_free(priv, &priv->rxq); |
8019 | iwl3945_hw_txq_ctx_free(priv); | 8019 | iwl3945_hw_txq_ctx_free(priv); |
8020 | 8020 | ||
8021 | iwl3945_unset_hw_setting(priv); | 8021 | iwl3945_unset_hw_params(priv); |
8022 | iwl3945_clear_stations_table(priv); | 8022 | iwl3945_clear_stations_table(priv); |
8023 | 8023 | ||
8024 | if (priv->mac80211_registered) | 8024 | if (priv->mac80211_registered) |