diff options
| author | David S. Miller <davem@davemloft.net> | 2010-08-19 19:54:13 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-08-19 19:54:13 -0400 |
| commit | 48d3ff82698cb0094684aed70446e0a5cbb1a4d0 (patch) | |
| tree | 4f3554f1e82d17d60d0e1e3bf95dfea1120f0374 | |
| parent | 1aef70ef125165e0114a8e475636eff242a52030 (diff) | |
| parent | 6a017e043a8c5e4f1e7c1152bc6477da8066f5f6 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
24 files changed, 174 insertions, 137 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index a105087af963..f9aa1bc0a947 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
| @@ -732,7 +732,7 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan) | |||
| 732 | 732 | ||
| 733 | /* Nothing to do for ADMtek BBP */ | 733 | /* Nothing to do for ADMtek BBP */ |
| 734 | } else if (priv->bbp_type != ADM8211_TYPE_ADMTEK) | 734 | } else if (priv->bbp_type != ADM8211_TYPE_ADMTEK) |
| 735 | wiphy_debug(dev->wiphy, "unsupported bbp type %d\n", | 735 | wiphy_debug(dev->wiphy, "unsupported BBP type %d\n", |
| 736 | priv->bbp_type); | 736 | priv->bbp_type); |
| 737 | 737 | ||
| 738 | ADM8211_RESTORE(); | 738 | ADM8211_RESTORE(); |
| @@ -1032,7 +1032,7 @@ static int adm8211_hw_init_bbp(struct ieee80211_hw *dev) | |||
| 1032 | break; | 1032 | break; |
| 1033 | } | 1033 | } |
| 1034 | } else | 1034 | } else |
| 1035 | wiphy_debug(dev->wiphy, "unsupported bbp %d\n", priv->bbp_type); | 1035 | wiphy_debug(dev->wiphy, "unsupported BBP %d\n", priv->bbp_type); |
| 1036 | 1036 | ||
| 1037 | ADM8211_CSR_WRITE(SYNRF, 0); | 1037 | ADM8211_CSR_WRITE(SYNRF, 0); |
| 1038 | 1038 | ||
| @@ -1525,7 +1525,7 @@ static int adm8211_start(struct ieee80211_hw *dev) | |||
| 1525 | retval = request_irq(priv->pdev->irq, adm8211_interrupt, | 1525 | retval = request_irq(priv->pdev->irq, adm8211_interrupt, |
| 1526 | IRQF_SHARED, "adm8211", dev); | 1526 | IRQF_SHARED, "adm8211", dev); |
| 1527 | if (retval) { | 1527 | if (retval) { |
| 1528 | wiphy_err(dev->wiphy, "failed to register irq handler\n"); | 1528 | wiphy_err(dev->wiphy, "failed to register IRQ handler\n"); |
| 1529 | goto fail; | 1529 | goto fail; |
| 1530 | } | 1530 | } |
| 1531 | 1531 | ||
| @@ -1902,7 +1902,7 @@ static int __devinit adm8211_probe(struct pci_dev *pdev, | |||
| 1902 | goto err_free_eeprom; | 1902 | goto err_free_eeprom; |
| 1903 | } | 1903 | } |
| 1904 | 1904 | ||
| 1905 | wiphy_info(dev->wiphy, "hwaddr %pm, rev 0x%02x\n", | 1905 | wiphy_info(dev->wiphy, "hwaddr %pM, Rev 0x%02x\n", |
| 1906 | dev->wiphy->perm_addr, pdev->revision); | 1906 | dev->wiphy->perm_addr, pdev->revision); |
| 1907 | 1907 | ||
| 1908 | return 0; | 1908 | return 0; |
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index d5140a87f073..1128fa8c9ed5 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
| @@ -655,7 +655,7 @@ static int at76_get_hw_config(struct at76_priv *priv) | |||
| 655 | exit: | 655 | exit: |
| 656 | kfree(hwcfg); | 656 | kfree(hwcfg); |
| 657 | if (ret < 0) | 657 | if (ret < 0) |
| 658 | wiphy_err(priv->hw->wiphy, "cannot get hw config (error %d)\n", | 658 | wiphy_err(priv->hw->wiphy, "cannot get HW Config (error %d)\n", |
| 659 | ret); | 659 | ret); |
| 660 | 660 | ||
| 661 | return ret; | 661 | return ret; |
| @@ -960,7 +960,7 @@ static void at76_dump_mib_mac_addr(struct at76_priv *priv) | |||
| 960 | sizeof(struct mib_mac_addr)); | 960 | sizeof(struct mib_mac_addr)); |
| 961 | if (ret < 0) { | 961 | if (ret < 0) { |
| 962 | wiphy_err(priv->hw->wiphy, | 962 | wiphy_err(priv->hw->wiphy, |
| 963 | "at76_get_mib (mac_addr) failed: %d\n", ret); | 963 | "at76_get_mib (MAC_ADDR) failed: %d\n", ret); |
| 964 | goto exit; | 964 | goto exit; |
| 965 | } | 965 | } |
| 966 | 966 | ||
| @@ -989,7 +989,7 @@ static void at76_dump_mib_mac_wep(struct at76_priv *priv) | |||
| 989 | sizeof(struct mib_mac_wep)); | 989 | sizeof(struct mib_mac_wep)); |
| 990 | if (ret < 0) { | 990 | if (ret < 0) { |
| 991 | wiphy_err(priv->hw->wiphy, | 991 | wiphy_err(priv->hw->wiphy, |
| 992 | "at76_get_mib (mac_wep) failed: %d\n", ret); | 992 | "at76_get_mib (MAC_WEP) failed: %d\n", ret); |
| 993 | goto exit; | 993 | goto exit; |
| 994 | } | 994 | } |
| 995 | 995 | ||
| @@ -1026,7 +1026,7 @@ static void at76_dump_mib_mac_mgmt(struct at76_priv *priv) | |||
| 1026 | sizeof(struct mib_mac_mgmt)); | 1026 | sizeof(struct mib_mac_mgmt)); |
| 1027 | if (ret < 0) { | 1027 | if (ret < 0) { |
| 1028 | wiphy_err(priv->hw->wiphy, | 1028 | wiphy_err(priv->hw->wiphy, |
| 1029 | "at76_get_mib (mac_mgmt) failed: %d\n", ret); | 1029 | "at76_get_mib (MAC_MGMT) failed: %d\n", ret); |
| 1030 | goto exit; | 1030 | goto exit; |
| 1031 | } | 1031 | } |
| 1032 | 1032 | ||
| @@ -1062,7 +1062,7 @@ static void at76_dump_mib_mac(struct at76_priv *priv) | |||
| 1062 | ret = at76_get_mib(priv->udev, MIB_MAC, m, sizeof(struct mib_mac)); | 1062 | ret = at76_get_mib(priv->udev, MIB_MAC, m, sizeof(struct mib_mac)); |
| 1063 | if (ret < 0) { | 1063 | if (ret < 0) { |
| 1064 | wiphy_err(priv->hw->wiphy, | 1064 | wiphy_err(priv->hw->wiphy, |
| 1065 | "at76_get_mib (mac) failed: %d\n", ret); | 1065 | "at76_get_mib (MAC) failed: %d\n", ret); |
| 1066 | goto exit; | 1066 | goto exit; |
| 1067 | } | 1067 | } |
| 1068 | 1068 | ||
| @@ -1099,7 +1099,7 @@ static void at76_dump_mib_phy(struct at76_priv *priv) | |||
| 1099 | ret = at76_get_mib(priv->udev, MIB_PHY, m, sizeof(struct mib_phy)); | 1099 | ret = at76_get_mib(priv->udev, MIB_PHY, m, sizeof(struct mib_phy)); |
| 1100 | if (ret < 0) { | 1100 | if (ret < 0) { |
| 1101 | wiphy_err(priv->hw->wiphy, | 1101 | wiphy_err(priv->hw->wiphy, |
| 1102 | "at76_get_mib (phy) failed: %d\n", ret); | 1102 | "at76_get_mib (PHY) failed: %d\n", ret); |
| 1103 | goto exit; | 1103 | goto exit; |
| 1104 | } | 1104 | } |
| 1105 | 1105 | ||
| @@ -1132,7 +1132,7 @@ static void at76_dump_mib_local(struct at76_priv *priv) | |||
| 1132 | ret = at76_get_mib(priv->udev, MIB_LOCAL, m, sizeof(struct mib_local)); | 1132 | ret = at76_get_mib(priv->udev, MIB_LOCAL, m, sizeof(struct mib_local)); |
| 1133 | if (ret < 0) { | 1133 | if (ret < 0) { |
| 1134 | wiphy_err(priv->hw->wiphy, | 1134 | wiphy_err(priv->hw->wiphy, |
| 1135 | "at76_get_mib (local) failed: %d\n", ret); | 1135 | "at76_get_mib (LOCAL) failed: %d\n", ret); |
| 1136 | goto exit; | 1136 | goto exit; |
| 1137 | } | 1137 | } |
| 1138 | 1138 | ||
| @@ -1158,7 +1158,7 @@ static void at76_dump_mib_mdomain(struct at76_priv *priv) | |||
| 1158 | sizeof(struct mib_mdomain)); | 1158 | sizeof(struct mib_mdomain)); |
| 1159 | if (ret < 0) { | 1159 | if (ret < 0) { |
| 1160 | wiphy_err(priv->hw->wiphy, | 1160 | wiphy_err(priv->hw->wiphy, |
| 1161 | "at76_get_mib (mdomain) failed: %d\n", ret); | 1161 | "at76_get_mib (MDOMAIN) failed: %d\n", ret); |
| 1162 | goto exit; | 1162 | goto exit; |
| 1163 | } | 1163 | } |
| 1164 | 1164 | ||
| @@ -1229,7 +1229,7 @@ static int at76_submit_rx_urb(struct at76_priv *priv) | |||
| 1229 | struct sk_buff *skb = priv->rx_skb; | 1229 | struct sk_buff *skb = priv->rx_skb; |
| 1230 | 1230 | ||
| 1231 | if (!priv->rx_urb) { | 1231 | if (!priv->rx_urb) { |
| 1232 | wiphy_err(priv->hw->wiphy, "%s: priv->rx_urb is null\n", | 1232 | wiphy_err(priv->hw->wiphy, "%s: priv->rx_urb is NULL\n", |
| 1233 | __func__); | 1233 | __func__); |
| 1234 | return -EFAULT; | 1234 | return -EFAULT; |
| 1235 | } | 1235 | } |
| @@ -1792,7 +1792,7 @@ static int at76_mac80211_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
| 1792 | wiphy_err(priv->hw->wiphy, "error in tx submit urb: %d\n", ret); | 1792 | wiphy_err(priv->hw->wiphy, "error in tx submit urb: %d\n", ret); |
| 1793 | if (ret == -EINVAL) | 1793 | if (ret == -EINVAL) |
| 1794 | wiphy_err(priv->hw->wiphy, | 1794 | wiphy_err(priv->hw->wiphy, |
| 1795 | "-einval: tx urb %p hcpriv %p complete %p\n", | 1795 | "-EINVAL: tx urb %p hcpriv %p complete %p\n", |
| 1796 | priv->tx_urb, | 1796 | priv->tx_urb, |
| 1797 | priv->tx_urb->hcpriv, priv->tx_urb->complete); | 1797 | priv->tx_urb->hcpriv, priv->tx_urb->complete); |
| 1798 | } | 1798 | } |
| @@ -2310,7 +2310,7 @@ static int at76_init_new_device(struct at76_priv *priv, | |||
| 2310 | 2310 | ||
| 2311 | priv->mac80211_registered = 1; | 2311 | priv->mac80211_registered = 1; |
| 2312 | 2312 | ||
| 2313 | wiphy_info(priv->hw->wiphy, "usb %s, mac %pm, firmware %d.%d.%d-%d\n", | 2313 | wiphy_info(priv->hw->wiphy, "USB %s, MAC %pM, firmware %d.%d.%d-%d\n", |
| 2314 | dev_name(&interface->dev), priv->mac_addr, | 2314 | dev_name(&interface->dev), priv->mac_addr, |
| 2315 | priv->fw_version.major, priv->fw_version.minor, | 2315 | priv->fw_version.major, priv->fw_version.minor, |
| 2316 | priv->fw_version.patch, priv->fw_version.build); | 2316 | priv->fw_version.patch, priv->fw_version.build); |
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index c67b05f3bcbd..debfb0fbc7c5 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
| @@ -245,7 +245,7 @@ static void __ar9170_dump_txstats(struct ar9170 *ar) | |||
| 245 | { | 245 | { |
| 246 | int i; | 246 | int i; |
| 247 | 247 | ||
| 248 | wiphy_debug(ar->hw->wiphy, "qos queue stats\n"); | 248 | wiphy_debug(ar->hw->wiphy, "QoS queue stats\n"); |
| 249 | 249 | ||
| 250 | for (i = 0; i < __AR9170_NUM_TXQ; i++) | 250 | for (i = 0; i < __AR9170_NUM_TXQ; i++) |
| 251 | wiphy_debug(ar->hw->wiphy, | 251 | wiphy_debug(ar->hw->wiphy, |
| @@ -387,7 +387,7 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar, | |||
| 387 | if (mac && compare_ether_addr(ieee80211_get_DA(hdr), mac)) { | 387 | if (mac && compare_ether_addr(ieee80211_get_DA(hdr), mac)) { |
| 388 | #ifdef AR9170_QUEUE_DEBUG | 388 | #ifdef AR9170_QUEUE_DEBUG |
| 389 | wiphy_debug(ar->hw->wiphy, | 389 | wiphy_debug(ar->hw->wiphy, |
| 390 | "skip frame => da %pm != %pm\n", | 390 | "skip frame => DA %pM != %pM\n", |
| 391 | mac, ieee80211_get_DA(hdr)); | 391 | mac, ieee80211_get_DA(hdr)); |
| 392 | ar9170_print_txheader(ar, skb); | 392 | ar9170_print_txheader(ar, skb); |
| 393 | #endif /* AR9170_QUEUE_DEBUG */ | 393 | #endif /* AR9170_QUEUE_DEBUG */ |
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 1189dbb6e2a6..996e9d7d7586 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
| @@ -2723,14 +2723,6 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv) | |||
| 2723 | 2723 | ||
| 2724 | packet = &priv->rx_buffers[i]; | 2724 | packet = &priv->rx_buffers[i]; |
| 2725 | 2725 | ||
| 2726 | /* Sync the DMA for the STATUS buffer so CPU is sure to get | ||
| 2727 | * the correct values */ | ||
| 2728 | pci_dma_sync_single_for_cpu(priv->pci_dev, | ||
| 2729 | sq->nic + | ||
| 2730 | sizeof(struct ipw2100_status) * i, | ||
| 2731 | sizeof(struct ipw2100_status), | ||
| 2732 | PCI_DMA_FROMDEVICE); | ||
| 2733 | |||
| 2734 | /* Sync the DMA for the RX buffer so CPU is sure to get | 2726 | /* Sync the DMA for the RX buffer so CPU is sure to get |
| 2735 | * the correct values */ | 2727 | * the correct values */ |
| 2736 | pci_dma_sync_single_for_cpu(priv->pci_dev, packet->dma_addr, | 2728 | pci_dma_sync_single_for_cpu(priv->pci_dev, packet->dma_addr, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index fec026212326..0b779a41a142 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
| @@ -265,7 +265,7 @@ struct iwl_cfg iwl1000_bgn_cfg = { | |||
| 265 | .support_ct_kill_exit = true, | 265 | .support_ct_kill_exit = true, |
| 266 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF, | 266 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF, |
| 267 | .chain_noise_scale = 1000, | 267 | .chain_noise_scale = 1000, |
| 268 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 268 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 269 | .max_event_log_size = 128, | 269 | .max_event_log_size = 128, |
| 270 | .ucode_tracing = true, | 270 | .ucode_tracing = true, |
| 271 | .sensitivity_calib_by_driver = true, | 271 | .sensitivity_calib_by_driver = true, |
| @@ -297,7 +297,7 @@ struct iwl_cfg iwl1000_bg_cfg = { | |||
| 297 | .support_ct_kill_exit = true, | 297 | .support_ct_kill_exit = true, |
| 298 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF, | 298 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF, |
| 299 | .chain_noise_scale = 1000, | 299 | .chain_noise_scale = 1000, |
| 300 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 300 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 301 | .max_event_log_size = 128, | 301 | .max_event_log_size = 128, |
| 302 | .ucode_tracing = true, | 302 | .ucode_tracing = true, |
| 303 | .sensitivity_calib_by_driver = true, | 303 | .sensitivity_calib_by_driver = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 6950a783913b..8ccfcd08218d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
| @@ -2731,7 +2731,7 @@ static struct iwl_cfg iwl3945_bg_cfg = { | |||
| 2731 | .led_compensation = 64, | 2731 | .led_compensation = 64, |
| 2732 | .broken_powersave = true, | 2732 | .broken_powersave = true, |
| 2733 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 2733 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 2734 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 2734 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 2735 | .max_event_log_size = 512, | 2735 | .max_event_log_size = 512, |
| 2736 | .tx_power_by_driver = true, | 2736 | .tx_power_by_driver = true, |
| 2737 | }; | 2737 | }; |
| @@ -2752,7 +2752,7 @@ static struct iwl_cfg iwl3945_abg_cfg = { | |||
| 2752 | .led_compensation = 64, | 2752 | .led_compensation = 64, |
| 2753 | .broken_powersave = true, | 2753 | .broken_powersave = true, |
| 2754 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 2754 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 2755 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 2755 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 2756 | .max_event_log_size = 512, | 2756 | .max_event_log_size = 512, |
| 2757 | .tx_power_by_driver = true, | 2757 | .tx_power_by_driver = true, |
| 2758 | }; | 2758 | }; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index d6da356608fa..d92b72909233 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
| @@ -2322,7 +2322,7 @@ struct iwl_cfg iwl4965_agn_cfg = { | |||
| 2322 | .led_compensation = 61, | 2322 | .led_compensation = 61, |
| 2323 | .chain_noise_num_beacons = IWL4965_CAL_NUM_BEACONS, | 2323 | .chain_noise_num_beacons = IWL4965_CAL_NUM_BEACONS, |
| 2324 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 2324 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 2325 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 2325 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 2326 | .temperature_kelvin = true, | 2326 | .temperature_kelvin = true, |
| 2327 | .max_event_log_size = 512, | 2327 | .max_event_log_size = 512, |
| 2328 | .tx_power_by_driver = true, | 2328 | .tx_power_by_driver = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index aacf3770f075..48bdcd8d2e94 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
| @@ -510,7 +510,7 @@ struct iwl_cfg iwl5300_agn_cfg = { | |||
| 510 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 510 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 511 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 511 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 512 | .chain_noise_scale = 1000, | 512 | .chain_noise_scale = 1000, |
| 513 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 513 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 514 | .max_event_log_size = 512, | 514 | .max_event_log_size = 512, |
| 515 | .ucode_tracing = true, | 515 | .ucode_tracing = true, |
| 516 | .sensitivity_calib_by_driver = true, | 516 | .sensitivity_calib_by_driver = true, |
| @@ -541,7 +541,7 @@ struct iwl_cfg iwl5100_bgn_cfg = { | |||
| 541 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 541 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 542 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 542 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 543 | .chain_noise_scale = 1000, | 543 | .chain_noise_scale = 1000, |
| 544 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 544 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 545 | .max_event_log_size = 512, | 545 | .max_event_log_size = 512, |
| 546 | .ucode_tracing = true, | 546 | .ucode_tracing = true, |
| 547 | .sensitivity_calib_by_driver = true, | 547 | .sensitivity_calib_by_driver = true, |
| @@ -570,7 +570,7 @@ struct iwl_cfg iwl5100_abg_cfg = { | |||
| 570 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 570 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 571 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 571 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 572 | .chain_noise_scale = 1000, | 572 | .chain_noise_scale = 1000, |
| 573 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 573 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 574 | .max_event_log_size = 512, | 574 | .max_event_log_size = 512, |
| 575 | .ucode_tracing = true, | 575 | .ucode_tracing = true, |
| 576 | .sensitivity_calib_by_driver = true, | 576 | .sensitivity_calib_by_driver = true, |
| @@ -601,7 +601,7 @@ struct iwl_cfg iwl5100_agn_cfg = { | |||
| 601 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 601 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 602 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 602 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 603 | .chain_noise_scale = 1000, | 603 | .chain_noise_scale = 1000, |
| 604 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 604 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 605 | .max_event_log_size = 512, | 605 | .max_event_log_size = 512, |
| 606 | .ucode_tracing = true, | 606 | .ucode_tracing = true, |
| 607 | .sensitivity_calib_by_driver = true, | 607 | .sensitivity_calib_by_driver = true, |
| @@ -632,7 +632,7 @@ struct iwl_cfg iwl5350_agn_cfg = { | |||
| 632 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 632 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 633 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 633 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 634 | .chain_noise_scale = 1000, | 634 | .chain_noise_scale = 1000, |
| 635 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 635 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 636 | .max_event_log_size = 512, | 636 | .max_event_log_size = 512, |
| 637 | .ucode_tracing = true, | 637 | .ucode_tracing = true, |
| 638 | .sensitivity_calib_by_driver = true, | 638 | .sensitivity_calib_by_driver = true, |
| @@ -663,7 +663,7 @@ struct iwl_cfg iwl5150_agn_cfg = { | |||
| 663 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 663 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 664 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 664 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 665 | .chain_noise_scale = 1000, | 665 | .chain_noise_scale = 1000, |
| 666 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 666 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 667 | .max_event_log_size = 512, | 667 | .max_event_log_size = 512, |
| 668 | .ucode_tracing = true, | 668 | .ucode_tracing = true, |
| 669 | .sensitivity_calib_by_driver = true, | 669 | .sensitivity_calib_by_driver = true, |
| @@ -693,7 +693,7 @@ struct iwl_cfg iwl5150_abg_cfg = { | |||
| 693 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 693 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 694 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 694 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
| 695 | .chain_noise_scale = 1000, | 695 | .chain_noise_scale = 1000, |
| 696 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 696 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 697 | .max_event_log_size = 512, | 697 | .max_event_log_size = 512, |
| 698 | .ucode_tracing = true, | 698 | .ucode_tracing = true, |
| 699 | .sensitivity_calib_by_driver = true, | 699 | .sensitivity_calib_by_driver = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index af4fd50f3405..cee06b968de8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
| @@ -388,7 +388,7 @@ struct iwl_cfg iwl6000g2a_2agn_cfg = { | |||
| 388 | .support_ct_kill_exit = true, | 388 | .support_ct_kill_exit = true, |
| 389 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 389 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 390 | .chain_noise_scale = 1000, | 390 | .chain_noise_scale = 1000, |
| 391 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 391 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 392 | .max_event_log_size = 512, | 392 | .max_event_log_size = 512, |
| 393 | .ucode_tracing = true, | 393 | .ucode_tracing = true, |
| 394 | .sensitivity_calib_by_driver = true, | 394 | .sensitivity_calib_by_driver = true, |
| @@ -424,7 +424,7 @@ struct iwl_cfg iwl6000g2a_2abg_cfg = { | |||
| 424 | .support_ct_kill_exit = true, | 424 | .support_ct_kill_exit = true, |
| 425 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 425 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 426 | .chain_noise_scale = 1000, | 426 | .chain_noise_scale = 1000, |
| 427 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 427 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 428 | .max_event_log_size = 512, | 428 | .max_event_log_size = 512, |
| 429 | .sensitivity_calib_by_driver = true, | 429 | .sensitivity_calib_by_driver = true, |
| 430 | .chain_noise_calib_by_driver = true, | 430 | .chain_noise_calib_by_driver = true, |
| @@ -459,7 +459,7 @@ struct iwl_cfg iwl6000g2a_2bg_cfg = { | |||
| 459 | .support_ct_kill_exit = true, | 459 | .support_ct_kill_exit = true, |
| 460 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 460 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 461 | .chain_noise_scale = 1000, | 461 | .chain_noise_scale = 1000, |
| 462 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 462 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 463 | .max_event_log_size = 512, | 463 | .max_event_log_size = 512, |
| 464 | .sensitivity_calib_by_driver = true, | 464 | .sensitivity_calib_by_driver = true, |
| 465 | .chain_noise_calib_by_driver = true, | 465 | .chain_noise_calib_by_driver = true, |
| @@ -496,7 +496,7 @@ struct iwl_cfg iwl6000g2b_2agn_cfg = { | |||
| 496 | .support_ct_kill_exit = true, | 496 | .support_ct_kill_exit = true, |
| 497 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 497 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 498 | .chain_noise_scale = 1000, | 498 | .chain_noise_scale = 1000, |
| 499 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 499 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 500 | .max_event_log_size = 512, | 500 | .max_event_log_size = 512, |
| 501 | .sensitivity_calib_by_driver = true, | 501 | .sensitivity_calib_by_driver = true, |
| 502 | .chain_noise_calib_by_driver = true, | 502 | .chain_noise_calib_by_driver = true, |
| @@ -532,7 +532,7 @@ struct iwl_cfg iwl6000g2b_2abg_cfg = { | |||
| 532 | .support_ct_kill_exit = true, | 532 | .support_ct_kill_exit = true, |
| 533 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 533 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 534 | .chain_noise_scale = 1000, | 534 | .chain_noise_scale = 1000, |
| 535 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 535 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 536 | .max_event_log_size = 512, | 536 | .max_event_log_size = 512, |
| 537 | .sensitivity_calib_by_driver = true, | 537 | .sensitivity_calib_by_driver = true, |
| 538 | .chain_noise_calib_by_driver = true, | 538 | .chain_noise_calib_by_driver = true, |
| @@ -570,7 +570,7 @@ struct iwl_cfg iwl6000g2b_2bgn_cfg = { | |||
| 570 | .support_ct_kill_exit = true, | 570 | .support_ct_kill_exit = true, |
| 571 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 571 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 572 | .chain_noise_scale = 1000, | 572 | .chain_noise_scale = 1000, |
| 573 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 573 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 574 | .max_event_log_size = 512, | 574 | .max_event_log_size = 512, |
| 575 | .sensitivity_calib_by_driver = true, | 575 | .sensitivity_calib_by_driver = true, |
| 576 | .chain_noise_calib_by_driver = true, | 576 | .chain_noise_calib_by_driver = true, |
| @@ -606,7 +606,7 @@ struct iwl_cfg iwl6000g2b_2bg_cfg = { | |||
| 606 | .support_ct_kill_exit = true, | 606 | .support_ct_kill_exit = true, |
| 607 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 607 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 608 | .chain_noise_scale = 1000, | 608 | .chain_noise_scale = 1000, |
| 609 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 609 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 610 | .max_event_log_size = 512, | 610 | .max_event_log_size = 512, |
| 611 | .sensitivity_calib_by_driver = true, | 611 | .sensitivity_calib_by_driver = true, |
| 612 | .chain_noise_calib_by_driver = true, | 612 | .chain_noise_calib_by_driver = true, |
| @@ -644,7 +644,7 @@ struct iwl_cfg iwl6000g2b_bgn_cfg = { | |||
| 644 | .support_ct_kill_exit = true, | 644 | .support_ct_kill_exit = true, |
| 645 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 645 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 646 | .chain_noise_scale = 1000, | 646 | .chain_noise_scale = 1000, |
| 647 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 647 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 648 | .max_event_log_size = 512, | 648 | .max_event_log_size = 512, |
| 649 | .sensitivity_calib_by_driver = true, | 649 | .sensitivity_calib_by_driver = true, |
| 650 | .chain_noise_calib_by_driver = true, | 650 | .chain_noise_calib_by_driver = true, |
| @@ -680,7 +680,7 @@ struct iwl_cfg iwl6000g2b_bg_cfg = { | |||
| 680 | .support_ct_kill_exit = true, | 680 | .support_ct_kill_exit = true, |
| 681 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 681 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 682 | .chain_noise_scale = 1000, | 682 | .chain_noise_scale = 1000, |
| 683 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 683 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
| 684 | .max_event_log_size = 512, | 684 | .max_event_log_size = 512, |
| 685 | .sensitivity_calib_by_driver = true, | 685 | .sensitivity_calib_by_driver = true, |
| 686 | .chain_noise_calib_by_driver = true, | 686 | .chain_noise_calib_by_driver = true, |
| @@ -721,7 +721,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = { | |||
| 721 | .support_ct_kill_exit = true, | 721 | .support_ct_kill_exit = true, |
| 722 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 722 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 723 | .chain_noise_scale = 1000, | 723 | .chain_noise_scale = 1000, |
| 724 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 724 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 725 | .max_event_log_size = 1024, | 725 | .max_event_log_size = 1024, |
| 726 | .ucode_tracing = true, | 726 | .ucode_tracing = true, |
| 727 | .sensitivity_calib_by_driver = true, | 727 | .sensitivity_calib_by_driver = true, |
| @@ -756,7 +756,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = { | |||
| 756 | .support_ct_kill_exit = true, | 756 | .support_ct_kill_exit = true, |
| 757 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 757 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 758 | .chain_noise_scale = 1000, | 758 | .chain_noise_scale = 1000, |
| 759 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 759 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 760 | .max_event_log_size = 1024, | 760 | .max_event_log_size = 1024, |
| 761 | .ucode_tracing = true, | 761 | .ucode_tracing = true, |
| 762 | .sensitivity_calib_by_driver = true, | 762 | .sensitivity_calib_by_driver = true, |
| @@ -791,7 +791,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = { | |||
| 791 | .support_ct_kill_exit = true, | 791 | .support_ct_kill_exit = true, |
| 792 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 792 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 793 | .chain_noise_scale = 1000, | 793 | .chain_noise_scale = 1000, |
| 794 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 794 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 795 | .max_event_log_size = 1024, | 795 | .max_event_log_size = 1024, |
| 796 | .ucode_tracing = true, | 796 | .ucode_tracing = true, |
| 797 | .sensitivity_calib_by_driver = true, | 797 | .sensitivity_calib_by_driver = true, |
| @@ -828,7 +828,7 @@ struct iwl_cfg iwl6050_2agn_cfg = { | |||
| 828 | .support_ct_kill_exit = true, | 828 | .support_ct_kill_exit = true, |
| 829 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 829 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 830 | .chain_noise_scale = 1500, | 830 | .chain_noise_scale = 1500, |
| 831 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 831 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 832 | .max_event_log_size = 1024, | 832 | .max_event_log_size = 1024, |
| 833 | .ucode_tracing = true, | 833 | .ucode_tracing = true, |
| 834 | .sensitivity_calib_by_driver = true, | 834 | .sensitivity_calib_by_driver = true, |
| @@ -866,7 +866,7 @@ struct iwl_cfg iwl6050g2_bgn_cfg = { | |||
| 866 | .support_ct_kill_exit = true, | 866 | .support_ct_kill_exit = true, |
| 867 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 867 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 868 | .chain_noise_scale = 1500, | 868 | .chain_noise_scale = 1500, |
| 869 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 869 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 870 | .max_event_log_size = 1024, | 870 | .max_event_log_size = 1024, |
| 871 | .ucode_tracing = true, | 871 | .ucode_tracing = true, |
| 872 | .sensitivity_calib_by_driver = true, | 872 | .sensitivity_calib_by_driver = true, |
| @@ -902,7 +902,7 @@ struct iwl_cfg iwl6050_2abg_cfg = { | |||
| 902 | .support_ct_kill_exit = true, | 902 | .support_ct_kill_exit = true, |
| 903 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 903 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 904 | .chain_noise_scale = 1500, | 904 | .chain_noise_scale = 1500, |
| 905 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 905 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 906 | .max_event_log_size = 1024, | 906 | .max_event_log_size = 1024, |
| 907 | .ucode_tracing = true, | 907 | .ucode_tracing = true, |
| 908 | .sensitivity_calib_by_driver = true, | 908 | .sensitivity_calib_by_driver = true, |
| @@ -940,7 +940,7 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
| 940 | .support_ct_kill_exit = true, | 940 | .support_ct_kill_exit = true, |
| 941 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 941 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 942 | .chain_noise_scale = 1000, | 942 | .chain_noise_scale = 1000, |
| 943 | .monitor_recover_period = IWL_MONITORING_PERIOD, | 943 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
| 944 | .max_event_log_size = 1024, | 944 | .max_event_log_size = 1024, |
| 945 | .ucode_tracing = true, | 945 | .ucode_tracing = true, |
| 946 | .sensitivity_calib_by_driver = true, | 946 | .sensitivity_calib_by_driver = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index c1882fd8345d..10d7b9b7f064 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
| @@ -3667,6 +3667,49 @@ out_exit: | |||
| 3667 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 3667 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
| 3668 | } | 3668 | } |
| 3669 | 3669 | ||
| 3670 | static void iwlagn_configure_filter(struct ieee80211_hw *hw, | ||
| 3671 | unsigned int changed_flags, | ||
| 3672 | unsigned int *total_flags, | ||
| 3673 | u64 multicast) | ||
| 3674 | { | ||
| 3675 | struct iwl_priv *priv = hw->priv; | ||
| 3676 | __le32 filter_or = 0, filter_nand = 0; | ||
| 3677 | |||
| 3678 | #define CHK(test, flag) do { \ | ||
| 3679 | if (*total_flags & (test)) \ | ||
| 3680 | filter_or |= (flag); \ | ||
| 3681 | else \ | ||
| 3682 | filter_nand |= (flag); \ | ||
| 3683 | } while (0) | ||
| 3684 | |||
| 3685 | IWL_DEBUG_MAC80211(priv, "Enter: changed: 0x%x, total: 0x%x\n", | ||
| 3686 | changed_flags, *total_flags); | ||
| 3687 | |||
| 3688 | CHK(FIF_OTHER_BSS | FIF_PROMISC_IN_BSS, RXON_FILTER_PROMISC_MSK); | ||
| 3689 | CHK(FIF_CONTROL, RXON_FILTER_CTL2HOST_MSK); | ||
| 3690 | CHK(FIF_BCN_PRBRESP_PROMISC, RXON_FILTER_BCON_AWARE_MSK); | ||
| 3691 | |||
| 3692 | #undef CHK | ||
| 3693 | |||
| 3694 | mutex_lock(&priv->mutex); | ||
| 3695 | |||
| 3696 | priv->staging_rxon.filter_flags &= ~filter_nand; | ||
| 3697 | priv->staging_rxon.filter_flags |= filter_or; | ||
| 3698 | |||
| 3699 | iwlcore_commit_rxon(priv); | ||
| 3700 | |||
| 3701 | mutex_unlock(&priv->mutex); | ||
| 3702 | |||
| 3703 | /* | ||
| 3704 | * Receiving all multicast frames is always enabled by the | ||
| 3705 | * default flags setup in iwl_connection_init_rx_config() | ||
| 3706 | * since we currently do not support programming multicast | ||
| 3707 | * filters into the device. | ||
| 3708 | */ | ||
| 3709 | *total_flags &= FIF_OTHER_BSS | FIF_ALLMULTI | FIF_PROMISC_IN_BSS | | ||
| 3710 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | ||
| 3711 | } | ||
| 3712 | |||
| 3670 | static void iwl_mac_flush(struct ieee80211_hw *hw, bool drop) | 3713 | static void iwl_mac_flush(struct ieee80211_hw *hw, bool drop) |
| 3671 | { | 3714 | { |
| 3672 | struct iwl_priv *priv = hw->priv; | 3715 | struct iwl_priv *priv = hw->priv; |
| @@ -3867,7 +3910,7 @@ static struct ieee80211_ops iwl_hw_ops = { | |||
| 3867 | .add_interface = iwl_mac_add_interface, | 3910 | .add_interface = iwl_mac_add_interface, |
| 3868 | .remove_interface = iwl_mac_remove_interface, | 3911 | .remove_interface = iwl_mac_remove_interface, |
| 3869 | .config = iwl_mac_config, | 3912 | .config = iwl_mac_config, |
| 3870 | .configure_filter = iwl_configure_filter, | 3913 | .configure_filter = iwlagn_configure_filter, |
| 3871 | .set_key = iwl_mac_set_key, | 3914 | .set_key = iwl_mac_set_key, |
| 3872 | .update_tkip_key = iwl_mac_update_tkip_key, | 3915 | .update_tkip_key = iwl_mac_update_tkip_key, |
| 3873 | .conf_tx = iwl_mac_conf_tx, | 3916 | .conf_tx = iwl_mac_conf_tx, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 2c03c6e20a72..07dbc2796448 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
| @@ -1328,51 +1328,6 @@ out: | |||
| 1328 | EXPORT_SYMBOL(iwl_apm_init); | 1328 | EXPORT_SYMBOL(iwl_apm_init); |
| 1329 | 1329 | ||
| 1330 | 1330 | ||
| 1331 | |||
| 1332 | void iwl_configure_filter(struct ieee80211_hw *hw, | ||
| 1333 | unsigned int changed_flags, | ||
| 1334 | unsigned int *total_flags, | ||
| 1335 | u64 multicast) | ||
| 1336 | { | ||
| 1337 | struct iwl_priv *priv = hw->priv; | ||
| 1338 | __le32 filter_or = 0, filter_nand = 0; | ||
| 1339 | |||
| 1340 | #define CHK(test, flag) do { \ | ||
| 1341 | if (*total_flags & (test)) \ | ||
| 1342 | filter_or |= (flag); \ | ||
| 1343 | else \ | ||
| 1344 | filter_nand |= (flag); \ | ||
| 1345 | } while (0) | ||
| 1346 | |||
| 1347 | IWL_DEBUG_MAC80211(priv, "Enter: changed: 0x%x, total: 0x%x\n", | ||
| 1348 | changed_flags, *total_flags); | ||
| 1349 | |||
| 1350 | CHK(FIF_OTHER_BSS | FIF_PROMISC_IN_BSS, RXON_FILTER_PROMISC_MSK); | ||
| 1351 | CHK(FIF_CONTROL, RXON_FILTER_CTL2HOST_MSK); | ||
| 1352 | CHK(FIF_BCN_PRBRESP_PROMISC, RXON_FILTER_BCON_AWARE_MSK); | ||
| 1353 | |||
| 1354 | #undef CHK | ||
| 1355 | |||
| 1356 | mutex_lock(&priv->mutex); | ||
| 1357 | |||
| 1358 | priv->staging_rxon.filter_flags &= ~filter_nand; | ||
| 1359 | priv->staging_rxon.filter_flags |= filter_or; | ||
| 1360 | |||
| 1361 | iwlcore_commit_rxon(priv); | ||
| 1362 | |||
| 1363 | mutex_unlock(&priv->mutex); | ||
| 1364 | |||
| 1365 | /* | ||
| 1366 | * Receiving all multicast frames is always enabled by the | ||
| 1367 | * default flags setup in iwl_connection_init_rx_config() | ||
| 1368 | * since we currently do not support programming multicast | ||
| 1369 | * filters into the device. | ||
| 1370 | */ | ||
| 1371 | *total_flags &= FIF_OTHER_BSS | FIF_ALLMULTI | FIF_PROMISC_IN_BSS | | ||
| 1372 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | ||
| 1373 | } | ||
| 1374 | EXPORT_SYMBOL(iwl_configure_filter); | ||
| 1375 | |||
| 1376 | int iwl_set_hw_params(struct iwl_priv *priv) | 1331 | int iwl_set_hw_params(struct iwl_priv *priv) |
| 1377 | { | 1332 | { |
| 1378 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; | 1333 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 4a71dfb10a15..5e6ee3da6bbf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
| @@ -372,9 +372,6 @@ int iwl_set_decrypted_flag(struct iwl_priv *priv, | |||
| 372 | u32 decrypt_res, | 372 | u32 decrypt_res, |
| 373 | struct ieee80211_rx_status *stats); | 373 | struct ieee80211_rx_status *stats); |
| 374 | void iwl_irq_handle_error(struct iwl_priv *priv); | 374 | void iwl_irq_handle_error(struct iwl_priv *priv); |
| 375 | void iwl_configure_filter(struct ieee80211_hw *hw, | ||
| 376 | unsigned int changed_flags, | ||
| 377 | unsigned int *total_flags, u64 multicast); | ||
| 378 | int iwl_set_hw_params(struct iwl_priv *priv); | 375 | int iwl_set_hw_params(struct iwl_priv *priv); |
| 379 | void iwl_post_associate(struct iwl_priv *priv, struct ieee80211_vif *vif); | 376 | void iwl_post_associate(struct iwl_priv *priv, struct ieee80211_vif *vif); |
| 380 | void iwl_bss_info_changed(struct ieee80211_hw *hw, | 377 | void iwl_bss_info_changed(struct ieee80211_hw *hw, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index f35bcad56e36..2e97cd2fa98a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
| @@ -1049,7 +1049,8 @@ struct iwl_event_log { | |||
| 1049 | #define IWL_DELAY_NEXT_FORCE_FW_RELOAD (HZ*5) | 1049 | #define IWL_DELAY_NEXT_FORCE_FW_RELOAD (HZ*5) |
| 1050 | 1050 | ||
| 1051 | /* timer constants use to monitor and recover stuck tx queues in mSecs */ | 1051 | /* timer constants use to monitor and recover stuck tx queues in mSecs */ |
| 1052 | #define IWL_MONITORING_PERIOD (1000) | 1052 | #define IWL_DEF_MONITORING_PERIOD (1000) |
| 1053 | #define IWL_LONG_MONITORING_PERIOD (5000) | ||
| 1053 | #define IWL_ONE_HUNDRED_MSECS (100) | 1054 | #define IWL_ONE_HUNDRED_MSECS (100) |
| 1054 | #define IWL_SIXTY_SECS (60000) | 1055 | #define IWL_SIXTY_SECS (60000) |
| 1055 | 1056 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 70c4b8fba0ee..59a308b02f95 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
| @@ -3391,6 +3391,55 @@ static int iwl3945_mac_sta_add(struct ieee80211_hw *hw, | |||
| 3391 | 3391 | ||
| 3392 | return 0; | 3392 | return 0; |
| 3393 | } | 3393 | } |
| 3394 | |||
| 3395 | static void iwl3945_configure_filter(struct ieee80211_hw *hw, | ||
| 3396 | unsigned int changed_flags, | ||
| 3397 | unsigned int *total_flags, | ||
| 3398 | u64 multicast) | ||
| 3399 | { | ||
| 3400 | struct iwl_priv *priv = hw->priv; | ||
| 3401 | __le32 filter_or = 0, filter_nand = 0; | ||
| 3402 | |||
| 3403 | #define CHK(test, flag) do { \ | ||
| 3404 | if (*total_flags & (test)) \ | ||
| 3405 | filter_or |= (flag); \ | ||
| 3406 | else \ | ||
| 3407 | filter_nand |= (flag); \ | ||
| 3408 | } while (0) | ||
| 3409 | |||
| 3410 | IWL_DEBUG_MAC80211(priv, "Enter: changed: 0x%x, total: 0x%x\n", | ||
| 3411 | changed_flags, *total_flags); | ||
| 3412 | |||
| 3413 | CHK(FIF_OTHER_BSS | FIF_PROMISC_IN_BSS, RXON_FILTER_PROMISC_MSK); | ||
| 3414 | CHK(FIF_CONTROL, RXON_FILTER_CTL2HOST_MSK); | ||
| 3415 | CHK(FIF_BCN_PRBRESP_PROMISC, RXON_FILTER_BCON_AWARE_MSK); | ||
| 3416 | |||
| 3417 | #undef CHK | ||
| 3418 | |||
| 3419 | mutex_lock(&priv->mutex); | ||
| 3420 | |||
| 3421 | priv->staging_rxon.filter_flags &= ~filter_nand; | ||
| 3422 | priv->staging_rxon.filter_flags |= filter_or; | ||
| 3423 | |||
| 3424 | /* | ||
| 3425 | * Committing directly here breaks for some reason, | ||
| 3426 | * but we'll eventually commit the filter flags | ||
| 3427 | * change anyway. | ||
| 3428 | */ | ||
| 3429 | |||
| 3430 | mutex_unlock(&priv->mutex); | ||
| 3431 | |||
| 3432 | /* | ||
| 3433 | * Receiving all multicast frames is always enabled by the | ||
| 3434 | * default flags setup in iwl_connection_init_rx_config() | ||
| 3435 | * since we currently do not support programming multicast | ||
| 3436 | * filters into the device. | ||
| 3437 | */ | ||
| 3438 | *total_flags &= FIF_OTHER_BSS | FIF_ALLMULTI | FIF_PROMISC_IN_BSS | | ||
| 3439 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | ||
| 3440 | } | ||
| 3441 | |||
| 3442 | |||
| 3394 | /***************************************************************************** | 3443 | /***************************************************************************** |
| 3395 | * | 3444 | * |
| 3396 | * sysfs attributes | 3445 | * sysfs attributes |
| @@ -3796,7 +3845,7 @@ static struct ieee80211_ops iwl3945_hw_ops = { | |||
| 3796 | .add_interface = iwl_mac_add_interface, | 3845 | .add_interface = iwl_mac_add_interface, |
| 3797 | .remove_interface = iwl_mac_remove_interface, | 3846 | .remove_interface = iwl_mac_remove_interface, |
| 3798 | .config = iwl_mac_config, | 3847 | .config = iwl_mac_config, |
| 3799 | .configure_filter = iwl_configure_filter, | 3848 | .configure_filter = iwl3945_configure_filter, |
| 3800 | .set_key = iwl3945_mac_set_key, | 3849 | .set_key = iwl3945_mac_set_key, |
| 3801 | .conf_tx = iwl_mac_conf_tx, | 3850 | .conf_tx = iwl_mac_conf_tx, |
| 3802 | .reset_tsf = iwl_mac_reset_tsf, | 3851 | .reset_tsf = iwl_mac_reset_tsf, |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 01ad7f77383a..86fa8abdd66f 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
| @@ -486,7 +486,7 @@ static bool mac80211_hwsim_tx_frame(struct ieee80211_hw *hw, | |||
| 486 | struct ieee80211_rx_status rx_status; | 486 | struct ieee80211_rx_status rx_status; |
| 487 | 487 | ||
| 488 | if (data->idle) { | 488 | if (data->idle) { |
| 489 | wiphy_debug(hw->wiphy, "trying to tx when idle - reject\n"); | 489 | wiphy_debug(hw->wiphy, "Trying to TX when idle - reject\n"); |
| 490 | return false; | 490 | return false; |
| 491 | } | 491 | } |
| 492 | 492 | ||
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index d761ed2d8af4..f152a25be59f 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
| @@ -910,14 +910,14 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index) | |||
| 910 | 910 | ||
| 911 | rxq->rxd = pci_alloc_consistent(priv->pdev, size, &rxq->rxd_dma); | 911 | rxq->rxd = pci_alloc_consistent(priv->pdev, size, &rxq->rxd_dma); |
| 912 | if (rxq->rxd == NULL) { | 912 | if (rxq->rxd == NULL) { |
| 913 | wiphy_err(hw->wiphy, "failed to alloc rx descriptors\n"); | 913 | wiphy_err(hw->wiphy, "failed to alloc RX descriptors\n"); |
| 914 | return -ENOMEM; | 914 | return -ENOMEM; |
| 915 | } | 915 | } |
| 916 | memset(rxq->rxd, 0, size); | 916 | memset(rxq->rxd, 0, size); |
| 917 | 917 | ||
| 918 | rxq->buf = kmalloc(MWL8K_RX_DESCS * sizeof(*rxq->buf), GFP_KERNEL); | 918 | rxq->buf = kmalloc(MWL8K_RX_DESCS * sizeof(*rxq->buf), GFP_KERNEL); |
| 919 | if (rxq->buf == NULL) { | 919 | if (rxq->buf == NULL) { |
| 920 | wiphy_err(hw->wiphy, "failed to alloc rx skbuff list\n"); | 920 | wiphy_err(hw->wiphy, "failed to alloc RX skbuff list\n"); |
| 921 | pci_free_consistent(priv->pdev, size, rxq->rxd, rxq->rxd_dma); | 921 | pci_free_consistent(priv->pdev, size, rxq->rxd, rxq->rxd_dma); |
| 922 | return -ENOMEM; | 922 | return -ENOMEM; |
| 923 | } | 923 | } |
| @@ -1145,14 +1145,14 @@ static int mwl8k_txq_init(struct ieee80211_hw *hw, int index) | |||
| 1145 | 1145 | ||
| 1146 | txq->txd = pci_alloc_consistent(priv->pdev, size, &txq->txd_dma); | 1146 | txq->txd = pci_alloc_consistent(priv->pdev, size, &txq->txd_dma); |
| 1147 | if (txq->txd == NULL) { | 1147 | if (txq->txd == NULL) { |
| 1148 | wiphy_err(hw->wiphy, "failed to alloc tx descriptors\n"); | 1148 | wiphy_err(hw->wiphy, "failed to alloc TX descriptors\n"); |
| 1149 | return -ENOMEM; | 1149 | return -ENOMEM; |
| 1150 | } | 1150 | } |
| 1151 | memset(txq->txd, 0, size); | 1151 | memset(txq->txd, 0, size); |
| 1152 | 1152 | ||
| 1153 | txq->skb = kmalloc(MWL8K_TX_DESCS * sizeof(*txq->skb), GFP_KERNEL); | 1153 | txq->skb = kmalloc(MWL8K_TX_DESCS * sizeof(*txq->skb), GFP_KERNEL); |
| 1154 | if (txq->skb == NULL) { | 1154 | if (txq->skb == NULL) { |
| 1155 | wiphy_err(hw->wiphy, "failed to alloc tx skbuff list\n"); | 1155 | wiphy_err(hw->wiphy, "failed to alloc TX skbuff list\n"); |
| 1156 | pci_free_consistent(priv->pdev, size, txq->txd, txq->txd_dma); | 1156 | pci_free_consistent(priv->pdev, size, txq->txd, txq->txd_dma); |
| 1157 | return -ENOMEM; | 1157 | return -ENOMEM; |
| 1158 | } | 1158 | } |
| @@ -1573,7 +1573,7 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd) | |||
| 1573 | PCI_DMA_BIDIRECTIONAL); | 1573 | PCI_DMA_BIDIRECTIONAL); |
| 1574 | 1574 | ||
| 1575 | if (!timeout) { | 1575 | if (!timeout) { |
| 1576 | wiphy_err(hw->wiphy, "command %s timeout after %u ms\n", | 1576 | wiphy_err(hw->wiphy, "Command %s timeout after %u ms\n", |
| 1577 | mwl8k_cmd_name(cmd->code, buf, sizeof(buf)), | 1577 | mwl8k_cmd_name(cmd->code, buf, sizeof(buf)), |
| 1578 | MWL8K_CMD_TIMEOUT_MS); | 1578 | MWL8K_CMD_TIMEOUT_MS); |
| 1579 | rc = -ETIMEDOUT; | 1579 | rc = -ETIMEDOUT; |
| @@ -1584,11 +1584,11 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd) | |||
| 1584 | 1584 | ||
| 1585 | rc = cmd->result ? -EINVAL : 0; | 1585 | rc = cmd->result ? -EINVAL : 0; |
| 1586 | if (rc) | 1586 | if (rc) |
| 1587 | wiphy_err(hw->wiphy, "command %s error 0x%x\n", | 1587 | wiphy_err(hw->wiphy, "Command %s error 0x%x\n", |
| 1588 | mwl8k_cmd_name(cmd->code, buf, sizeof(buf)), | 1588 | mwl8k_cmd_name(cmd->code, buf, sizeof(buf)), |
| 1589 | le16_to_cpu(cmd->result)); | 1589 | le16_to_cpu(cmd->result)); |
| 1590 | else if (ms > 2000) | 1590 | else if (ms > 2000) |
| 1591 | wiphy_notice(hw->wiphy, "command %s took %d ms\n", | 1591 | wiphy_notice(hw->wiphy, "Command %s took %d ms\n", |
| 1592 | mwl8k_cmd_name(cmd->code, | 1592 | mwl8k_cmd_name(cmd->code, |
| 1593 | buf, sizeof(buf)), | 1593 | buf, sizeof(buf)), |
| 1594 | ms); | 1594 | ms); |
| @@ -3210,7 +3210,7 @@ static int mwl8k_start(struct ieee80211_hw *hw) | |||
| 3210 | rc = request_irq(priv->pdev->irq, mwl8k_interrupt, | 3210 | rc = request_irq(priv->pdev->irq, mwl8k_interrupt, |
| 3211 | IRQF_SHARED, MWL8K_NAME, hw); | 3211 | IRQF_SHARED, MWL8K_NAME, hw); |
| 3212 | if (rc) { | 3212 | if (rc) { |
| 3213 | wiphy_err(hw->wiphy, "failed to register irq handler\n"); | 3213 | wiphy_err(hw->wiphy, "failed to register IRQ handler\n"); |
| 3214 | return -EIO; | 3214 | return -EIO; |
| 3215 | } | 3215 | } |
| 3216 | 3216 | ||
| @@ -3926,7 +3926,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 3926 | 3926 | ||
| 3927 | priv->sram = pci_iomap(pdev, 0, 0x10000); | 3927 | priv->sram = pci_iomap(pdev, 0, 0x10000); |
| 3928 | if (priv->sram == NULL) { | 3928 | if (priv->sram == NULL) { |
| 3929 | wiphy_err(hw->wiphy, "cannot map device sram\n"); | 3929 | wiphy_err(hw->wiphy, "Cannot map device SRAM\n"); |
| 3930 | goto err_iounmap; | 3930 | goto err_iounmap; |
| 3931 | } | 3931 | } |
| 3932 | 3932 | ||
| @@ -3938,7 +3938,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 3938 | if (priv->regs == NULL) { | 3938 | if (priv->regs == NULL) { |
| 3939 | priv->regs = pci_iomap(pdev, 2, 0x10000); | 3939 | priv->regs = pci_iomap(pdev, 2, 0x10000); |
| 3940 | if (priv->regs == NULL) { | 3940 | if (priv->regs == NULL) { |
| 3941 | wiphy_err(hw->wiphy, "cannot map device registers\n"); | 3941 | wiphy_err(hw->wiphy, "Cannot map device registers\n"); |
| 3942 | goto err_iounmap; | 3942 | goto err_iounmap; |
| 3943 | } | 3943 | } |
| 3944 | } | 3944 | } |
| @@ -3950,14 +3950,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 3950 | /* Ask userland hotplug daemon for the device firmware */ | 3950 | /* Ask userland hotplug daemon for the device firmware */ |
| 3951 | rc = mwl8k_request_firmware(priv); | 3951 | rc = mwl8k_request_firmware(priv); |
| 3952 | if (rc) { | 3952 | if (rc) { |
| 3953 | wiphy_err(hw->wiphy, "firmware files not found\n"); | 3953 | wiphy_err(hw->wiphy, "Firmware files not found\n"); |
| 3954 | goto err_stop_firmware; | 3954 | goto err_stop_firmware; |
| 3955 | } | 3955 | } |
| 3956 | 3956 | ||
| 3957 | /* Load firmware into hardware */ | 3957 | /* Load firmware into hardware */ |
| 3958 | rc = mwl8k_load_firmware(hw); | 3958 | rc = mwl8k_load_firmware(hw); |
| 3959 | if (rc) { | 3959 | if (rc) { |
| 3960 | wiphy_err(hw->wiphy, "cannot start firmware\n"); | 3960 | wiphy_err(hw->wiphy, "Cannot start firmware\n"); |
| 3961 | goto err_stop_firmware; | 3961 | goto err_stop_firmware; |
| 3962 | } | 3962 | } |
| 3963 | 3963 | ||
| @@ -4047,7 +4047,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 4047 | rc = request_irq(priv->pdev->irq, mwl8k_interrupt, | 4047 | rc = request_irq(priv->pdev->irq, mwl8k_interrupt, |
| 4048 | IRQF_SHARED, MWL8K_NAME, hw); | 4048 | IRQF_SHARED, MWL8K_NAME, hw); |
| 4049 | if (rc) { | 4049 | if (rc) { |
| 4050 | wiphy_err(hw->wiphy, "failed to register irq handler\n"); | 4050 | wiphy_err(hw->wiphy, "failed to register IRQ handler\n"); |
| 4051 | goto err_free_queues; | 4051 | goto err_free_queues; |
| 4052 | } | 4052 | } |
| 4053 | 4053 | ||
| @@ -4067,7 +4067,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 4067 | rc = mwl8k_cmd_get_hw_spec_sta(hw); | 4067 | rc = mwl8k_cmd_get_hw_spec_sta(hw); |
| 4068 | } | 4068 | } |
| 4069 | if (rc) { | 4069 | if (rc) { |
| 4070 | wiphy_err(hw->wiphy, "cannot initialise firmware\n"); | 4070 | wiphy_err(hw->wiphy, "Cannot initialise firmware\n"); |
| 4071 | goto err_free_irq; | 4071 | goto err_free_irq; |
| 4072 | } | 4072 | } |
| 4073 | 4073 | ||
| @@ -4081,14 +4081,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 4081 | /* Turn radio off */ | 4081 | /* Turn radio off */ |
| 4082 | rc = mwl8k_cmd_radio_disable(hw); | 4082 | rc = mwl8k_cmd_radio_disable(hw); |
| 4083 | if (rc) { | 4083 | if (rc) { |
| 4084 | wiphy_err(hw->wiphy, "cannot disable\n"); | 4084 | wiphy_err(hw->wiphy, "Cannot disable\n"); |
| 4085 | goto err_free_irq; | 4085 | goto err_free_irq; |
| 4086 | } | 4086 | } |
| 4087 | 4087 | ||
| 4088 | /* Clear MAC address */ | 4088 | /* Clear MAC address */ |
| 4089 | rc = mwl8k_cmd_set_mac_addr(hw, NULL, "\x00\x00\x00\x00\x00\x00"); | 4089 | rc = mwl8k_cmd_set_mac_addr(hw, NULL, "\x00\x00\x00\x00\x00\x00"); |
| 4090 | if (rc) { | 4090 | if (rc) { |
| 4091 | wiphy_err(hw->wiphy, "cannot clear mac address\n"); | 4091 | wiphy_err(hw->wiphy, "Cannot clear MAC address\n"); |
| 4092 | goto err_free_irq; | 4092 | goto err_free_irq; |
| 4093 | } | 4093 | } |
| 4094 | 4094 | ||
| @@ -4098,7 +4098,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
| 4098 | 4098 | ||
| 4099 | rc = ieee80211_register_hw(hw); | 4099 | rc = ieee80211_register_hw(hw); |
| 4100 | if (rc) { | 4100 | if (rc) { |
| 4101 | wiphy_err(hw->wiphy, "cannot register device\n"); | 4101 | wiphy_err(hw->wiphy, "Cannot register device\n"); |
| 4102 | goto err_free_queues; | 4102 | goto err_free_queues; |
| 4103 | } | 4103 | } |
| 4104 | 4104 | ||
diff --git a/drivers/net/wireless/p54/eeprom.c b/drivers/net/wireless/p54/eeprom.c index d687cb7f2a59..78347041ec40 100644 --- a/drivers/net/wireless/p54/eeprom.c +++ b/drivers/net/wireless/p54/eeprom.c | |||
| @@ -167,7 +167,7 @@ static int p54_generate_band(struct ieee80211_hw *dev, | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | if (j == 0) { | 169 | if (j == 0) { |
| 170 | wiphy_err(dev->wiphy, "disabling totally damaged %d GHz band\n", | 170 | wiphy_err(dev->wiphy, "Disabling totally damaged %d GHz band\n", |
| 171 | (band == IEEE80211_BAND_2GHZ) ? 2 : 5); | 171 | (band == IEEE80211_BAND_2GHZ) ? 2 : 5); |
| 172 | 172 | ||
| 173 | ret = -ENODATA; | 173 | ret = -ENODATA; |
| @@ -695,12 +695,12 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len) | |||
| 695 | u8 perm_addr[ETH_ALEN]; | 695 | u8 perm_addr[ETH_ALEN]; |
| 696 | 696 | ||
| 697 | wiphy_warn(dev->wiphy, | 697 | wiphy_warn(dev->wiphy, |
| 698 | "invalid hwaddr! using randomly generated mac addr\n"); | 698 | "Invalid hwaddr! Using randomly generated MAC addr\n"); |
| 699 | random_ether_addr(perm_addr); | 699 | random_ether_addr(perm_addr); |
| 700 | SET_IEEE80211_PERM_ADDR(dev, perm_addr); | 700 | SET_IEEE80211_PERM_ADDR(dev, perm_addr); |
| 701 | } | 701 | } |
| 702 | 702 | ||
| 703 | wiphy_info(dev->wiphy, "hwaddr %pm, mac:isl38%02x rf:%s\n", | 703 | wiphy_info(dev->wiphy, "hwaddr %pM, MAC:isl38%02x RF:%s\n", |
| 704 | dev->wiphy->perm_addr, priv->version, | 704 | dev->wiphy->perm_addr, priv->version, |
| 705 | p54_rf_chips[priv->rxhw]); | 705 | p54_rf_chips[priv->rxhw]); |
| 706 | 706 | ||
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c index 47006bca4852..15b20c29a604 100644 --- a/drivers/net/wireless/p54/fwio.c +++ b/drivers/net/wireless/p54/fwio.c | |||
| @@ -125,7 +125,7 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw) | |||
| 125 | 125 | ||
| 126 | if (fw_version) | 126 | if (fw_version) |
| 127 | wiphy_info(priv->hw->wiphy, | 127 | wiphy_info(priv->hw->wiphy, |
| 128 | "fw rev %s - softmac protocol %x.%x\n", | 128 | "FW rev %s - Softmac protocol %x.%x\n", |
| 129 | fw_version, priv->fw_var >> 8, priv->fw_var & 0xff); | 129 | fw_version, priv->fw_var >> 8, priv->fw_var & 0xff); |
| 130 | 130 | ||
| 131 | if (priv->fw_var < 0x500) | 131 | if (priv->fw_var < 0x500) |
diff --git a/drivers/net/wireless/p54/led.c b/drivers/net/wireless/p54/led.c index ea91f5cce6b3..3837e1eec5f4 100644 --- a/drivers/net/wireless/p54/led.c +++ b/drivers/net/wireless/p54/led.c | |||
| @@ -58,7 +58,7 @@ static void p54_update_leds(struct work_struct *work) | |||
| 58 | err = p54_set_leds(priv); | 58 | err = p54_set_leds(priv); |
| 59 | if (err && net_ratelimit()) | 59 | if (err && net_ratelimit()) |
| 60 | wiphy_err(priv->hw->wiphy, | 60 | wiphy_err(priv->hw->wiphy, |
| 61 | "failed to update leds (%d).\n", err); | 61 | "failed to update LEDs (%d).\n", err); |
| 62 | 62 | ||
| 63 | if (rerun) | 63 | if (rerun) |
| 64 | ieee80211_queue_delayed_work(priv->hw, &priv->led_work, | 64 | ieee80211_queue_delayed_work(priv->hw, &priv->led_work, |
| @@ -103,7 +103,7 @@ static int p54_register_led(struct p54_common *priv, | |||
| 103 | err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); | 103 | err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); |
| 104 | if (err) | 104 | if (err) |
| 105 | wiphy_err(priv->hw->wiphy, | 105 | wiphy_err(priv->hw->wiphy, |
| 106 | "failed to register %s led.\n", name); | 106 | "Failed to register %s LED.\n", name); |
| 107 | else | 107 | else |
| 108 | led->registered = 1; | 108 | led->registered = 1; |
| 109 | 109 | ||
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index 822f8dc26e9c..1eacba4daa5b 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c | |||
| @@ -466,7 +466,7 @@ static int p54p_open(struct ieee80211_hw *dev) | |||
| 466 | P54P_READ(dev_int); | 466 | P54P_READ(dev_int); |
| 467 | 467 | ||
| 468 | if (!wait_for_completion_interruptible_timeout(&priv->boot_comp, HZ)) { | 468 | if (!wait_for_completion_interruptible_timeout(&priv->boot_comp, HZ)) { |
| 469 | wiphy_err(dev->wiphy, "cannot boot firmware!\n"); | 469 | wiphy_err(dev->wiphy, "Cannot boot firmware!\n"); |
| 470 | p54p_stop(dev); | 470 | p54p_stop(dev); |
| 471 | return -ETIMEDOUT; | 471 | return -ETIMEDOUT; |
| 472 | } | 472 | } |
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c index 427b46f558ed..173aec3d6e7e 100644 --- a/drivers/net/wireless/p54/txrx.c +++ b/drivers/net/wireless/p54/txrx.c | |||
| @@ -540,7 +540,7 @@ static void p54_rx_trap(struct p54_common *priv, struct sk_buff *skb) | |||
| 540 | case P54_TRAP_BEACON_TX: | 540 | case P54_TRAP_BEACON_TX: |
| 541 | break; | 541 | break; |
| 542 | case P54_TRAP_RADAR: | 542 | case P54_TRAP_RADAR: |
| 543 | wiphy_info(priv->hw->wiphy, "radar (freq:%d mhz)\n", freq); | 543 | wiphy_info(priv->hw->wiphy, "radar (freq:%d MHz)\n", freq); |
| 544 | break; | 544 | break; |
| 545 | case P54_TRAP_NO_BEACON: | 545 | case P54_TRAP_NO_BEACON: |
| 546 | if (priv->vif) | 546 | if (priv->vif) |
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c index b50c39aaec05..30107ce78dfb 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c | |||
| @@ -445,7 +445,7 @@ static int rtl8180_init_rx_ring(struct ieee80211_hw *dev) | |||
| 445 | &priv->rx_ring_dma); | 445 | &priv->rx_ring_dma); |
| 446 | 446 | ||
| 447 | if (!priv->rx_ring || (unsigned long)priv->rx_ring & 0xFF) { | 447 | if (!priv->rx_ring || (unsigned long)priv->rx_ring & 0xFF) { |
| 448 | wiphy_err(dev->wiphy, "cannot allocate rx ring\n"); | 448 | wiphy_err(dev->wiphy, "Cannot allocate RX ring\n"); |
| 449 | return -ENOMEM; | 449 | return -ENOMEM; |
| 450 | } | 450 | } |
| 451 | 451 | ||
| @@ -502,7 +502,7 @@ static int rtl8180_init_tx_ring(struct ieee80211_hw *dev, | |||
| 502 | 502 | ||
| 503 | ring = pci_alloc_consistent(priv->pdev, sizeof(*ring) * entries, &dma); | 503 | ring = pci_alloc_consistent(priv->pdev, sizeof(*ring) * entries, &dma); |
| 504 | if (!ring || (unsigned long)ring & 0xFF) { | 504 | if (!ring || (unsigned long)ring & 0xFF) { |
| 505 | wiphy_err(dev->wiphy, "cannot allocate tx ring (prio = %d)\n", | 505 | wiphy_err(dev->wiphy, "Cannot allocate TX ring (prio = %d)\n", |
| 506 | prio); | 506 | prio); |
| 507 | return -ENOMEM; | 507 | return -ENOMEM; |
| 508 | } | 508 | } |
| @@ -568,7 +568,7 @@ static int rtl8180_start(struct ieee80211_hw *dev) | |||
| 568 | ret = request_irq(priv->pdev->irq, rtl8180_interrupt, | 568 | ret = request_irq(priv->pdev->irq, rtl8180_interrupt, |
| 569 | IRQF_SHARED, KBUILD_MODNAME, dev); | 569 | IRQF_SHARED, KBUILD_MODNAME, dev); |
| 570 | if (ret) { | 570 | if (ret) { |
| 571 | wiphy_err(dev->wiphy, "failed to register irq handler\n"); | 571 | wiphy_err(dev->wiphy, "failed to register IRQ handler\n"); |
| 572 | goto err_free_rings; | 572 | goto err_free_rings; |
| 573 | } | 573 | } |
| 574 | 574 | ||
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index 5738a55c1b06..98e0351c1dd6 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
| @@ -573,7 +573,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev) | |||
| 573 | } while (--i); | 573 | } while (--i); |
| 574 | 574 | ||
| 575 | if (!i) { | 575 | if (!i) { |
| 576 | wiphy_err(dev->wiphy, "reset timeout!\n"); | 576 | wiphy_err(dev->wiphy, "Reset timeout!\n"); |
| 577 | return -ETIMEDOUT; | 577 | return -ETIMEDOUT; |
| 578 | } | 578 | } |
| 579 | 579 | ||
| @@ -1526,7 +1526,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, | |||
| 1526 | mutex_init(&priv->conf_mutex); | 1526 | mutex_init(&priv->conf_mutex); |
| 1527 | skb_queue_head_init(&priv->b_tx_status.queue); | 1527 | skb_queue_head_init(&priv->b_tx_status.queue); |
| 1528 | 1528 | ||
| 1529 | wiphy_info(dev->wiphy, "hwaddr %pm, %s v%d + %s, rfkill mask %d\n", | 1529 | wiphy_info(dev->wiphy, "hwaddr %pM, %s V%d + %s, rfkill mask %d\n", |
| 1530 | mac_addr, chip_name, priv->asic_rev, priv->rf->name, | 1530 | mac_addr, chip_name, priv->asic_rev, priv->rf->name, |
| 1531 | priv->rfkill_mask); | 1531 | priv->rfkill_mask); |
| 1532 | 1532 | ||
diff --git a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c index fd96f9112322..97eebdcf7eb9 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c +++ b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c | |||
| @@ -366,7 +366,7 @@ static void rtl8225_rf_init(struct ieee80211_hw *dev) | |||
| 366 | rtl8225_write(dev, 0x02, 0x044d); | 366 | rtl8225_write(dev, 0x02, 0x044d); |
| 367 | msleep(100); | 367 | msleep(100); |
| 368 | if (!(rtl8225_read(dev, 6) & (1 << 7))) | 368 | if (!(rtl8225_read(dev, 6) & (1 << 7))) |
| 369 | wiphy_warn(dev->wiphy, "rf calibration failed! %x\n", | 369 | wiphy_warn(dev->wiphy, "RF Calibration Failed! %x\n", |
| 370 | rtl8225_read(dev, 6)); | 370 | rtl8225_read(dev, 6)); |
| 371 | } | 371 | } |
| 372 | 372 | ||
| @@ -735,7 +735,7 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev) | |||
| 735 | rtl8225_write(dev, 0x02, 0x044D); | 735 | rtl8225_write(dev, 0x02, 0x044D); |
| 736 | msleep(100); | 736 | msleep(100); |
| 737 | if (!(rtl8225_read(dev, 6) & (1 << 7))) | 737 | if (!(rtl8225_read(dev, 6) & (1 << 7))) |
| 738 | wiphy_warn(dev->wiphy, "rf calibration failed! %x\n", | 738 | wiphy_warn(dev->wiphy, "RF Calibration Failed! %x\n", |
| 739 | rtl8225_read(dev, 6)); | 739 | rtl8225_read(dev, 6)); |
| 740 | } | 740 | } |
| 741 | 741 | ||
