Skip to content

Commit b67afe7

Browse files
committed
Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Conflicts: drivers/bluetooth/ath3k.c drivers/bluetooth/btusb.c
2 parents db28569 + 28bec7b commit b67afe7

21 files changed

Lines changed: 51 additions & 34 deletions

File tree

‎drivers/bluetooth/ath3k.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ static struct usb_device_id ath3k_table[] = {
6969
/* Atheros AR3012 with sflash firmware*/
7070
{ USB_DEVICE(0x0CF3, 0x3004) },
7171

72+
/* Atheros AR5BBU12 with sflash firmware */
73+
{ USB_DEVICE(0x0489, 0xE02C) },
74+
7275
{ } /* Terminating entry */
7376
};
7477

‎drivers/bluetooth/btusb.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ static struct usb_device_id blacklist_table[] = {
108108
/* Atheros 3012 with sflash firmware */
109109
{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_IGNORE },
110110

111+
/* Atheros AR5BBU12 with sflash firmware */
112+
{ USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
113+
111114
/* Broadcom BCM2035 */
112115
{ USB_DEVICE(0x0a5c, 0x2035), .driver_info = BTUSB_WRONG_SCO_MTU },
113116
{ USB_DEVICE(0x0a5c, 0x200a), .driver_info = BTUSB_WRONG_SCO_MTU },
@@ -828,7 +831,7 @@ static void btusb_work(struct work_struct *work)
828831

829832
if (hdev->conn_hash.sco_num > 0) {
830833
if (!test_bit(BTUSB_DID_ISO_RESUME, &data->flags)) {
831-
err = usb_autopm_get_interface(data->isoc);
834+
err = usb_autopm_get_interface(data->isoc ? data->isoc : data->intf);
832835
if (err < 0) {
833836
clear_bit(BTUSB_ISOC_RUNNING, &data->flags);
834837
usb_kill_anchored_urbs(&data->isoc_anchor);
@@ -857,7 +860,7 @@ static void btusb_work(struct work_struct *work)
857860

858861
__set_isoc_interface(hdev, 0);
859862
if (test_and_clear_bit(BTUSB_DID_ISO_RESUME, &data->flags))
860-
usb_autopm_put_interface(data->isoc);
863+
usb_autopm_put_interface(data->isoc ? data->isoc : data->intf);
861864
}
862865
}
863866

‎drivers/net/wireless/ath/ath5k/phy.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,
12811281
case AR5K_RF5111:
12821282
ret = ath5k_hw_rf5111_channel(ah, channel);
12831283
break;
1284+
case AR5K_RF2317:
12841285
case AR5K_RF2425:
12851286
ret = ath5k_hw_rf2425_channel(ah, channel);
12861287
break;

‎drivers/net/wireless/ath/ath9k/ath9k.h‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/device.h>
2222
#include <linux/leds.h>
2323
#include <linux/completion.h>
24-
#include <linux/pm_qos_params.h>
2524

2625
#include "debug.h"
2726
#include "common.h"
@@ -57,8 +56,6 @@ struct ath_node;
5756

5857
#define A_MAX(a, b) ((a) > (b) ? (a) : (b))
5958

60-
#define ATH9K_PM_QOS_DEFAULT_VALUE 55
61-
6259
#define TSF_TO_TU(_h,_l) \
6360
((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
6461

@@ -218,6 +215,7 @@ struct ath_frame_info {
218215
struct ath_buf_state {
219216
u8 bf_type;
220217
u8 bfs_paprd;
218+
unsigned long bfs_paprd_timestamp;
221219
enum ath9k_internal_frame_type bfs_ftype;
222220
};
223221

@@ -602,7 +600,6 @@ struct ath_softc {
602600
struct work_struct paprd_work;
603601
struct work_struct hw_check_work;
604602
struct completion paprd_complete;
605-
bool paprd_pending;
606603

607604
unsigned int hw_busy_count;
608605

@@ -649,8 +646,6 @@ struct ath_softc {
649646
struct ath_descdma txsdma;
650647

651648
struct ath_ant_comb ant_comb;
652-
653-
struct pm_qos_request_list pm_qos_req;
654649
};
655650

656651
void ath9k_tasklet(unsigned long data);
@@ -665,7 +660,6 @@ static inline void ath_read_cachesize(struct ath_common *common, int *csz)
665660
extern struct ieee80211_ops ath9k_ops;
666661
extern int ath9k_modparam_nohwcrypt;
667662
extern int led_blink;
668-
extern int ath9k_pm_qos_value;
669663
extern bool is_ath9k_unloaded;
670664

671665
irqreturn_t ath_isr(int irq, void *dev);

‎drivers/net/wireless/ath/ath9k/init.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ static int ath9k_btcoex_enable;
4141
module_param_named(btcoex_enable, ath9k_btcoex_enable, int, 0444);
4242
MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
4343

44-
int ath9k_pm_qos_value = ATH9K_PM_QOS_DEFAULT_VALUE;
45-
module_param_named(pmqos, ath9k_pm_qos_value, int, S_IRUSR | S_IRGRP | S_IROTH);
46-
MODULE_PARM_DESC(pmqos, "User specified PM-QOS value");
47-
4844
bool is_ath9k_unloaded;
4945
/* We use the hw_value as an index into our private channel structure */
5046

@@ -760,9 +756,6 @@ int ath9k_init_device(u16 devid, struct ath_softc *sc, u16 subsysid,
760756
ath_init_leds(sc);
761757
ath_start_rfkill_poll(sc);
762758

763-
pm_qos_add_request(&sc->pm_qos_req, PM_QOS_CPU_DMA_LATENCY,
764-
PM_QOS_DEFAULT_VALUE);
765-
766759
return 0;
767760

768761
error_world:
@@ -819,7 +812,6 @@ void ath9k_deinit_device(struct ath_softc *sc)
819812
ath9k_ps_restore(sc);
820813

821814
ieee80211_unregister_hw(hw);
822-
pm_qos_remove_request(&sc->pm_qos_req);
823815
ath_rx_cleanup(sc);
824816
ath_tx_cleanup(sc);
825817
ath9k_deinit_softc(sc);

‎drivers/net/wireless/ath/ath9k/main.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int
342342
tx_info->control.rates[1].idx = -1;
343343

344344
init_completion(&sc->paprd_complete);
345-
sc->paprd_pending = true;
346345
txctl.paprd = BIT(chain);
347346

348347
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
353352

354353
time_left = wait_for_completion_timeout(&sc->paprd_complete,
355354
msecs_to_jiffies(ATH_PAPRD_TIMEOUT));
356-
sc->paprd_pending = false;
357355

358356
if (!time_left)
359357
ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_CALIBRATE,
@@ -1119,12 +1117,6 @@ static int ath9k_start(struct ieee80211_hw *hw)
11191117
ath9k_btcoex_timer_resume(sc);
11201118
}
11211119

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-
11281120
if (ah->caps.pcie_lcr_extsync_en && common->bus_ops->extn_synch_en)
11291121
common->bus_ops->extn_synch_en(common);
11301122

@@ -1269,8 +1261,6 @@ static void ath9k_stop(struct ieee80211_hw *hw)
12691261

12701262
sc->sc_flags |= SC_OP_INVALID;
12711263

1272-
pm_qos_update_request(&sc->pm_qos_req, PM_QOS_DEFAULT_VALUE);
1273-
12741264
mutex_unlock(&sc->mutex);
12751265

12761266
ath_dbg(common, ATH_DBG_CONFIG, "Driver halt\n");

‎drivers/net/wireless/ath/ath9k/xmit.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,9 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
17531753
ar9003_hw_set_paprd_txdesc(sc->sc_ah, bf->bf_desc,
17541754
bf->bf_state.bfs_paprd);
17551755

1756+
if (txctl->paprd)
1757+
bf->bf_state.bfs_paprd_timestamp = jiffies;
1758+
17561759
ath_tx_send_normal(sc, txctl->txq, tid, &bf_head);
17571760
}
17581761

@@ -1910,7 +1913,9 @@ static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
19101913
bf->bf_buf_addr = 0;
19111914

19121915
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)))
19141919
dev_kfree_skb_any(skb);
19151920
else
19161921
complete(&sc->paprd_complete);

‎drivers/net/wireless/ath/carl9170/rx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static void carl9170_ps_beacon(struct ar9170 *ar, void *data, unsigned int len)
564564
cam = ieee80211_check_tim(tim_ie, tim_len, ar->common.curaid);
565565

566566
/* 2. Maybe the AP wants to send multicast/broadcast data? */
567-
cam = !!(tim_ie->bitmap_ctrl & 0x01);
567+
cam |= !!(tim_ie->bitmap_ctrl & 0x01);
568568

569569
if (!cam) {
570570
/* back to low-power land. */

‎drivers/net/wireless/iwlwifi/iwl-3945.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,6 @@ static struct iwl_lib_ops iwl3945_lib = {
27342734
.isr_ops = {
27352735
.isr = iwl_isr_legacy,
27362736
},
2737-
.check_plcp_health = iwl3945_good_plcp_health,
27382737

27392738
.debugfs_ops = {
27402739
.rx_stats_read = iwl3945_ucode_rx_stats_read,

‎drivers/net/wireless/iwlwifi/iwl-6000.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
678678
.fw_name_pre = IWL6050_FW_PRE, \
679679
.ucode_api_max = IWL6050_UCODE_API_MAX, \
680680
.ucode_api_min = IWL6050_UCODE_API_MIN, \
681+
.valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
682+
.valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
681683
.ops = &iwl6050_ops, \
682684
.eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
683685
.eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \

0 commit comments

Comments
 (0)