aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-02-18 17:03:41 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-18 17:03:41 -0500
commitb67afe7f43afd2f5cd98798993561920c1684c12 (patch)
treee45a0e41c91a1d199fd865b011ed0d25f5497bb9 /drivers/net/wireless
parentdb28569adc692d9fb8a2d2d8e7ebab7fd5481f10 (diff)
parent28bec7b845e10b68e6ba1ade5de0fc566690fc61 (diff)
Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Conflicts: drivers/bluetooth/ath3k.c drivers/bluetooth/btusb.c
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c1
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h8
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c8
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c10
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c7
-rw-r--r--drivers/net/wireless/ath/carl9170/rx.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c6
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c2
-rw-r--r--drivers/net/wireless/wl1251/main.c3
11 files changed, 22 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index d673ab2f6cda..62ce2f4e8605 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1281,6 +1281,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,
1281 case AR5K_RF5111: 1281 case AR5K_RF5111:
1282 ret = ath5k_hw_rf5111_channel(ah, channel); 1282 ret = ath5k_hw_rf5111_channel(ah, channel);
1283 break; 1283 break;
1284 case AR5K_RF2317:
1284 case AR5K_RF2425: 1285 case AR5K_RF2425:
1285 ret = ath5k_hw_rf2425_channel(ah, channel); 1286 ret = ath5k_hw_rf2425_channel(ah, channel);
1286 break; 1287 break;
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 4d60583b0f69..a224c56448de 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -21,7 +21,6 @@
21#include <linux/device.h> 21#include <linux/device.h>
22#include <linux/leds.h> 22#include <linux/leds.h>
23#include <linux/completion.h> 23#include <linux/completion.h>
24#include <linux/pm_qos_params.h>
25 24
26#include "debug.h" 25#include "debug.h"
27#include "common.h" 26#include "common.h"
@@ -57,8 +56,6 @@ struct ath_node;
57 56
58#define A_MAX(a, b) ((a) > (b) ? (a) : (b)) 57#define A_MAX(a, b) ((a) > (b) ? (a) : (b))
59 58
60#define ATH9K_PM_QOS_DEFAULT_VALUE 55
61
62#define TSF_TO_TU(_h,_l) \ 59#define TSF_TO_TU(_h,_l) \
63 ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10)) 60 ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
64 61
@@ -218,6 +215,7 @@ struct ath_frame_info {
218struct ath_buf_state { 215struct ath_buf_state {
219 u8 bf_type; 216 u8 bf_type;
220 u8 bfs_paprd; 217 u8 bfs_paprd;
218 unsigned long bfs_paprd_timestamp;
221 enum ath9k_internal_frame_type bfs_ftype; 219 enum ath9k_internal_frame_type bfs_ftype;
222}; 220};
223 221
@@ -602,7 +600,6 @@ struct ath_softc {
602 struct work_struct paprd_work; 600 struct work_struct paprd_work;
603 struct work_struct hw_check_work; 601 struct work_struct hw_check_work;
604 struct completion paprd_complete; 602 struct completion paprd_complete;
605 bool paprd_pending;
606 603
607 unsigned int hw_busy_count; 604 unsigned int hw_busy_count;
608 605
@@ -649,8 +646,6 @@ struct ath_softc {
649 struct ath_descdma txsdma; 646 struct ath_descdma txsdma;
650 647
651 struct ath_ant_comb ant_comb; 648 struct ath_ant_comb ant_comb;
652
653 struct pm_qos_request_list pm_qos_req;
654}; 649};
655 650
656void ath9k_tasklet(unsigned long data); 651void ath9k_tasklet(unsigned long data);
@@ -665,7 +660,6 @@ static inline void ath_read_cachesize(struct ath_common *common, int *csz)
665extern struct ieee80211_ops ath9k_ops; 660extern struct ieee80211_ops ath9k_ops;
666extern int ath9k_modparam_nohwcrypt; 661extern int ath9k_modparam_nohwcrypt;
667extern int led_blink; 662extern int led_blink;
668extern int ath9k_pm_qos_value;
669extern bool is_ath9k_unloaded; 663extern bool is_ath9k_unloaded;
670 664
671irqreturn_t ath_isr(int irq, void *dev); 665irqreturn_t ath_isr(int irq, void *dev);
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index e5c1eead98a2..f66c882a39e2 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -41,10 +41,6 @@ static int ath9k_btcoex_enable;
41module_param_named(btcoex_enable, ath9k_btcoex_enable, int, 0444); 41module_param_named(btcoex_enable, ath9k_btcoex_enable, int, 0444);
42MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence"); 42MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
43 43
44int ath9k_pm_qos_value = ATH9K_PM_QOS_DEFAULT_VALUE;
45module_param_named(pmqos, ath9k_pm_qos_value, int, S_IRUSR | S_IRGRP | S_IROTH);
46MODULE_PARM_DESC(pmqos, "User specified PM-QOS value");
47
48bool is_ath9k_unloaded; 44bool is_ath9k_unloaded;
49/* We use the hw_value as an index into our private channel structure */ 45/* We use the hw_value as an index into our private channel structure */
50 46
@@ -760,9 +756,6 @@ int ath9k_init_device(u16 devid, struct ath_softc *sc, u16 subsysid,
760 ath_init_leds(sc); 756 ath_init_leds(sc);
761 ath_start_rfkill_poll(sc); 757 ath_start_rfkill_poll(sc);
762 758
763 pm_qos_add_request(&sc->pm_qos_req, PM_QOS_CPU_DMA_LATENCY,
764 PM_QOS_DEFAULT_VALUE);
765
766 return 0; 759 return 0;
767 760
768error_world: 761error_world:
@@ -819,7 +812,6 @@ void ath9k_deinit_device(struct ath_softc *sc)
819 ath9k_ps_restore(sc); 812 ath9k_ps_restore(sc);
820 813
821 ieee80211_unregister_hw(hw); 814 ieee80211_unregister_hw(hw);
822 pm_qos_remove_request(&sc->pm_qos_req);
823 ath_rx_cleanup(sc); 815 ath_rx_cleanup(sc);
824 ath_tx_cleanup(sc); 816 ath_tx_cleanup(sc);
825 ath9k_deinit_softc(sc); 817 ath9k_deinit_softc(sc);
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 31f0fad72391..1d2c7c3cc5ca 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -342,7 +342,6 @@ static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int
342 tx_info->control.rates[1].idx = -1; 342 tx_info->control.rates[1].idx = -1;
343 343
344 init_completion(&sc->paprd_complete); 344 init_completion(&sc->paprd_complete);
345 sc->paprd_pending = true;
346 txctl.paprd = BIT(chain); 345 txctl.paprd = BIT(chain);
347 346
348 if (ath_tx_start(hw, skb, &txctl) != 0) { 347 if (ath_tx_start(hw, skb, &txctl) != 0) {
@@ -353,7 +352,6 @@ static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int
353 352
354 time_left = wait_for_completion_timeout(&sc->paprd_complete, 353 time_left = wait_for_completion_timeout(&sc->paprd_complete,
355 msecs_to_jiffies(ATH_PAPRD_TIMEOUT)); 354 msecs_to_jiffies(ATH_PAPRD_TIMEOUT));
356 sc->paprd_pending = false;
357 355
358 if (!time_left) 356 if (!time_left)
359 ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_CALIBRATE, 357 ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_CALIBRATE,
@@ -1119,12 +1117,6 @@ static int ath9k_start(struct ieee80211_hw *hw)
1119 ath9k_btcoex_timer_resume(sc); 1117 ath9k_btcoex_timer_resume(sc);
1120 } 1118 }
1121 1119
1122 /* User has the option to provide pm-qos value as a module
1123 * parameter rather than using the default value of
1124 * 'ATH9K_PM_QOS_DEFAULT_VALUE'.
1125 */
1126 pm_qos_update_request(&sc->pm_qos_req, ath9k_pm_qos_value);
1127
1128 if (ah->caps.pcie_lcr_extsync_en && common->bus_ops->extn_synch_en) 1120 if (ah->caps.pcie_lcr_extsync_en && common->bus_ops->extn_synch_en)
1129 common->bus_ops->extn_synch_en(common); 1121 common->bus_ops->extn_synch_en(common);
1130 1122
@@ -1269,8 +1261,6 @@ static void ath9k_stop(struct ieee80211_hw *hw)
1269 1261
1270 sc->sc_flags |= SC_OP_INVALID; 1262 sc->sc_flags |= SC_OP_INVALID;
1271 1263
1272 pm_qos_update_request(&sc->pm_qos_req, PM_QOS_DEFAULT_VALUE);
1273
1274 mutex_unlock(&sc->mutex); 1264 mutex_unlock(&sc->mutex);
1275 1265
1276 ath_dbg(common, ATH_DBG_CONFIG, "Driver halt\n"); 1266 ath_dbg(common, ATH_DBG_CONFIG, "Driver halt\n");
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 8d89aa958f1b..bc614acb96de 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1753,6 +1753,9 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
1753 ar9003_hw_set_paprd_txdesc(sc->sc_ah, bf->bf_desc, 1753 ar9003_hw_set_paprd_txdesc(sc->sc_ah, bf->bf_desc,
1754 bf->bf_state.bfs_paprd); 1754 bf->bf_state.bfs_paprd);
1755 1755
1756 if (txctl->paprd)
1757 bf->bf_state.bfs_paprd_timestamp = jiffies;
1758
1756 ath_tx_send_normal(sc, txctl->txq, tid, &bf_head); 1759 ath_tx_send_normal(sc, txctl->txq, tid, &bf_head);
1757 } 1760 }
1758 1761
@@ -1910,7 +1913,9 @@ static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
1910 bf->bf_buf_addr = 0; 1913 bf->bf_buf_addr = 0;
1911 1914
1912 if (bf->bf_state.bfs_paprd) { 1915 if (bf->bf_state.bfs_paprd) {
1913 if (!sc->paprd_pending) 1916 if (time_after(jiffies,
1917 bf->bf_state.bfs_paprd_timestamp +
1918 msecs_to_jiffies(ATH_PAPRD_TIMEOUT)))
1914 dev_kfree_skb_any(skb); 1919 dev_kfree_skb_any(skb);
1915 else 1920 else
1916 complete(&sc->paprd_complete); 1921 complete(&sc->paprd_complete);
diff --git a/drivers/net/wireless/ath/carl9170/rx.c b/drivers/net/wireless/ath/carl9170/rx.c
index 939a0e96ed1f..84866a4b8350 100644
--- a/drivers/net/wireless/ath/carl9170/rx.c
+++ b/drivers/net/wireless/ath/carl9170/rx.c
@@ -564,7 +564,7 @@ static void carl9170_ps_beacon(struct ar9170 *ar, void *data, unsigned int len)
564 cam = ieee80211_check_tim(tim_ie, tim_len, ar->common.curaid); 564 cam = ieee80211_check_tim(tim_ie, tim_len, ar->common.curaid);
565 565
566 /* 2. Maybe the AP wants to send multicast/broadcast data? */ 566 /* 2. Maybe the AP wants to send multicast/broadcast data? */
567 cam = !!(tim_ie->bitmap_ctrl & 0x01); 567 cam |= !!(tim_ie->bitmap_ctrl & 0x01);
568 568
569 if (!cam) { 569 if (!cam) {
570 /* back to low-power land. */ 570 /* back to low-power land. */
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 58213e72d107..5b6932c2193a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -2734,7 +2734,6 @@ static struct iwl_lib_ops iwl3945_lib = {
2734 .isr_ops = { 2734 .isr_ops = {
2735 .isr = iwl_isr_legacy, 2735 .isr = iwl_isr_legacy,
2736 }, 2736 },
2737 .check_plcp_health = iwl3945_good_plcp_health,
2738 2737
2739 .debugfs_ops = { 2738 .debugfs_ops = {
2740 .rx_stats_read = iwl3945_ucode_rx_stats_read, 2739 .rx_stats_read = iwl3945_ucode_rx_stats_read,
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index aa32b1e05dff..f6493f77610d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -678,6 +678,8 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
678 .fw_name_pre = IWL6050_FW_PRE, \ 678 .fw_name_pre = IWL6050_FW_PRE, \
679 .ucode_api_max = IWL6050_UCODE_API_MAX, \ 679 .ucode_api_max = IWL6050_UCODE_API_MAX, \
680 .ucode_api_min = IWL6050_UCODE_API_MIN, \ 680 .ucode_api_min = IWL6050_UCODE_API_MIN, \
681 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
682 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
681 .ops = &iwl6050_ops, \ 683 .ops = &iwl6050_ops, \
682 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \ 684 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
683 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ 685 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index a3af656aab3d..abd0461bd307 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1183,6 +1183,9 @@ static void iwl_irq_tasklet_legacy(struct iwl_priv *priv)
1183 /* only Re-enable if disabled by irq */ 1183 /* only Re-enable if disabled by irq */
1184 if (test_bit(STATUS_INT_ENABLED, &priv->status)) 1184 if (test_bit(STATUS_INT_ENABLED, &priv->status))
1185 iwl_enable_interrupts(priv); 1185 iwl_enable_interrupts(priv);
1186 /* Re-enable RF_KILL if it occurred */
1187 else if (handled & CSR_INT_BIT_RF_KILL)
1188 iwl_enable_rfkill_int(priv);
1186 1189
1187#ifdef CONFIG_IWLWIFI_DEBUG 1190#ifdef CONFIG_IWLWIFI_DEBUG
1188 if (iwl_get_debug_level(priv) & (IWL_DL_ISR)) { 1191 if (iwl_get_debug_level(priv) & (IWL_DL_ISR)) {
@@ -1397,6 +1400,9 @@ static void iwl_irq_tasklet(struct iwl_priv *priv)
1397 /* only Re-enable if disabled by irq */ 1400 /* only Re-enable if disabled by irq */
1398 if (test_bit(STATUS_INT_ENABLED, &priv->status)) 1401 if (test_bit(STATUS_INT_ENABLED, &priv->status))
1399 iwl_enable_interrupts(priv); 1402 iwl_enable_interrupts(priv);
1403 /* Re-enable RF_KILL if it occurred */
1404 else if (handled & CSR_INT_BIT_RF_KILL)
1405 iwl_enable_rfkill_int(priv);
1400} 1406}
1401 1407
1402/* the threshold ratio of actual_ack_cnt to expected_ack_cnt in percent */ 1408/* the threshold ratio of actual_ack_cnt to expected_ack_cnt in percent */
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 8f4dfc3d8023..6ac0ff236893 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -1119,6 +1119,8 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
1119 { PCI_DEVICE(0x1814, 0x3390), PCI_DEVICE_DATA(&rt2800pci_ops) }, 1119 { PCI_DEVICE(0x1814, 0x3390), PCI_DEVICE_DATA(&rt2800pci_ops) },
1120#endif 1120#endif
1121#ifdef CONFIG_RT2800PCI_RT35XX 1121#ifdef CONFIG_RT2800PCI_RT35XX
1122 { PCI_DEVICE(0x1432, 0x7711), PCI_DEVICE_DATA(&rt2800pci_ops) },
1123 { PCI_DEVICE(0x1432, 0x7722), PCI_DEVICE_DATA(&rt2800pci_ops) },
1122 { PCI_DEVICE(0x1814, 0x3060), PCI_DEVICE_DATA(&rt2800pci_ops) }, 1124 { PCI_DEVICE(0x1814, 0x3060), PCI_DEVICE_DATA(&rt2800pci_ops) },
1123 { PCI_DEVICE(0x1814, 0x3062), PCI_DEVICE_DATA(&rt2800pci_ops) }, 1125 { PCI_DEVICE(0x1814, 0x3062), PCI_DEVICE_DATA(&rt2800pci_ops) },
1124 { PCI_DEVICE(0x1814, 0x3562), PCI_DEVICE_DATA(&rt2800pci_ops) }, 1126 { PCI_DEVICE(0x1814, 0x3562), PCI_DEVICE_DATA(&rt2800pci_ops) },
diff --git a/drivers/net/wireless/wl1251/main.c b/drivers/net/wireless/wl1251/main.c
index 1c8b0775d849..5a1c13878eaf 100644
--- a/drivers/net/wireless/wl1251/main.c
+++ b/drivers/net/wireless/wl1251/main.c
@@ -1050,6 +1050,9 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw,
1050 1050
1051 if (changed & BSS_CHANGED_BEACON) { 1051 if (changed & BSS_CHANGED_BEACON) {
1052 beacon = ieee80211_beacon_get(hw, vif); 1052 beacon = ieee80211_beacon_get(hw, vif);
1053 if (!beacon)
1054 goto out_sleep;
1055
1053 ret = wl1251_cmd_template_set(wl, CMD_BEACON, beacon->data, 1056 ret = wl1251_cmd_template_set(wl, CMD_BEACON, beacon->data,
1054 beacon->len); 1057 beacon->len);
1055 1058