Skip to content

Commit e08fd97

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts: drivers/net/wireless/brcm80211/Kconfig net/mac80211/util.c
2 parents 251c9ba + a59b40b commit e08fd97

34 files changed

Lines changed: 233 additions & 103 deletions

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3984,18 +3984,20 @@ static void ar9003_hw_quick_drop_apply(struct ath_hw *ah, u16 freq)
39843984
int quick_drop;
39853985
s32 t[3], f[3] = {5180, 5500, 5785};
39863986

3987-
if (!(pBase->miscConfiguration & BIT(1)))
3987+
if (!(pBase->miscConfiguration & BIT(4)))
39883988
return;
39893989

3990-
if (freq < 4000)
3991-
quick_drop = eep->modalHeader2G.quick_drop;
3992-
else {
3993-
t[0] = eep->base_ext1.quick_drop_low;
3994-
t[1] = eep->modalHeader5G.quick_drop;
3995-
t[2] = eep->base_ext1.quick_drop_high;
3996-
quick_drop = ar9003_hw_power_interpolate(freq, f, t, 3);
3990+
if (AR_SREV_9300(ah) || AR_SREV_9580(ah) || AR_SREV_9340(ah)) {
3991+
if (freq < 4000) {
3992+
quick_drop = eep->modalHeader2G.quick_drop;
3993+
} else {
3994+
t[0] = eep->base_ext1.quick_drop_low;
3995+
t[1] = eep->modalHeader5G.quick_drop;
3996+
t[2] = eep->base_ext1.quick_drop_high;
3997+
quick_drop = ar9003_hw_power_interpolate(freq, f, t, 3);
3998+
}
3999+
REG_RMW_FIELD(ah, AR_PHY_AGC, AR_PHY_AGC_QUICK_DROP, quick_drop);
39974000
}
3998-
REG_RMW_FIELD(ah, AR_PHY_AGC, AR_PHY_AGC_QUICK_DROP, quick_drop);
39994001
}
40004002

40014003
static void ar9003_hw_txend_to_xpa_off_apply(struct ath_hw *ah, bool is2ghz)
@@ -4035,7 +4037,7 @@ static void ar9003_hw_xlna_bias_strength_apply(struct ath_hw *ah, bool is2ghz)
40354037
struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep;
40364038
u8 bias;
40374039

4038-
if (!(eep->baseEepHeader.featureEnable & 0x40))
4040+
if (!(eep->baseEepHeader.miscConfiguration & 0x40))
40394041
return;
40404042

40414043
if (!AR_SREV_9300(ah))

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ static void ath9k_hw_set_clockrate(struct ath_hw *ah)
147147
else
148148
clockrate = ATH9K_CLOCK_RATE_5GHZ_OFDM;
149149

150-
if (IS_CHAN_HT40(chan))
151-
clockrate *= 2;
152-
153-
if (ah->curchan) {
150+
if (chan) {
151+
if (IS_CHAN_HT40(chan))
152+
clockrate *= 2;
154153
if (IS_CHAN_HALF_RATE(chan))
155154
clockrate /= 2;
156155
if (IS_CHAN_QUARTER_RATE(chan))

‎drivers/net/wireless/ath/wcn36xx/smd.c‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,13 +2058,20 @@ static void wcn36xx_smd_rsp_process(struct wcn36xx *wcn, void *buf, size_t len)
20582058
case WCN36XX_HAL_DELETE_STA_CONTEXT_IND:
20592059
mutex_lock(&wcn->hal_ind_mutex);
20602060
msg_ind = kmalloc(sizeof(*msg_ind), GFP_KERNEL);
2061-
msg_ind->msg_len = len;
2062-
msg_ind->msg = kmalloc(len, GFP_KERNEL);
2063-
memcpy(msg_ind->msg, buf, len);
2064-
list_add_tail(&msg_ind->list, &wcn->hal_ind_queue);
2065-
queue_work(wcn->hal_ind_wq, &wcn->hal_ind_work);
2066-
wcn36xx_dbg(WCN36XX_DBG_HAL, "indication arrived\n");
2061+
if (msg_ind) {
2062+
msg_ind->msg_len = len;
2063+
msg_ind->msg = kmalloc(len, GFP_KERNEL);
2064+
memcpy(msg_ind->msg, buf, len);
2065+
list_add_tail(&msg_ind->list, &wcn->hal_ind_queue);
2066+
queue_work(wcn->hal_ind_wq, &wcn->hal_ind_work);
2067+
wcn36xx_dbg(WCN36XX_DBG_HAL, "indication arrived\n");
2068+
}
20672069
mutex_unlock(&wcn->hal_ind_mutex);
2070+
if (msg_ind)
2071+
break;
2072+
/* FIXME: Do something smarter then just printing an error. */
2073+
wcn36xx_err("Run out of memory while handling SMD_EVENT (%d)\n",
2074+
msg_header->msg_type);
20682075
break;
20692076
default:
20702077
wcn36xx_err("SMD_EVENT (%d) not supported\n",

‎drivers/net/wireless/brcm80211/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ config BRCMSMAC
66
depends on MAC80211
77
depends on BCMA_POSSIBLE
88
select BCMA
9+
select NEW_LEDS if BCMA_DRIVER_GPIO
10+
select LEDS_CLASS if BCMA_DRIVER_GPIO
911
select BRCMUTIL
1012
select FW_LOADER
1113
select CORDIC

‎drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ static inline int brcmf_sdioh_f0_write_byte(struct brcmf_sdio_dev *sdiodev,
109109
brcmf_err("Disable F2 failed:%d\n",
110110
err_ret);
111111
}
112+
} else {
113+
err_ret = -ENOENT;
112114
}
113115
} else if ((regaddr == SDIO_CCCR_ABORT) ||
114116
(regaddr == SDIO_CCCR_IENx)) {

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
#include "iwl-agn-hw.h"
6868

6969
/* Highest firmware API version supported */
70-
#define IWL7260_UCODE_API_MAX 7
71-
#define IWL3160_UCODE_API_MAX 7
70+
#define IWL7260_UCODE_API_MAX 8
71+
#define IWL3160_UCODE_API_MAX 8
7272

7373
/* Oldest version we won't warn about */
7474
#define IWL7260_UCODE_API_OK 7
@@ -130,6 +130,7 @@ const struct iwl_cfg iwl7260_2ac_cfg = {
130130
.ht_params = &iwl7000_ht_params,
131131
.nvm_ver = IWL7260_NVM_VERSION,
132132
.nvm_calib_ver = IWL7260_TX_POWER_VERSION,
133+
.host_interrupt_operation_mode = true,
133134
};
134135

135136
const struct iwl_cfg iwl7260_2ac_cfg_high_temp = {
@@ -140,6 +141,7 @@ const struct iwl_cfg iwl7260_2ac_cfg_high_temp = {
140141
.nvm_ver = IWL7260_NVM_VERSION,
141142
.nvm_calib_ver = IWL7260_TX_POWER_VERSION,
142143
.high_temp = true,
144+
.host_interrupt_operation_mode = true,
143145
};
144146

145147
const struct iwl_cfg iwl7260_2n_cfg = {
@@ -149,6 +151,7 @@ const struct iwl_cfg iwl7260_2n_cfg = {
149151
.ht_params = &iwl7000_ht_params,
150152
.nvm_ver = IWL7260_NVM_VERSION,
151153
.nvm_calib_ver = IWL7260_TX_POWER_VERSION,
154+
.host_interrupt_operation_mode = true,
152155
};
153156

154157
const struct iwl_cfg iwl7260_n_cfg = {
@@ -158,6 +161,7 @@ const struct iwl_cfg iwl7260_n_cfg = {
158161
.ht_params = &iwl7000_ht_params,
159162
.nvm_ver = IWL7260_NVM_VERSION,
160163
.nvm_calib_ver = IWL7260_TX_POWER_VERSION,
164+
.host_interrupt_operation_mode = true,
161165
};
162166

163167
const struct iwl_cfg iwl3160_2ac_cfg = {
@@ -167,6 +171,7 @@ const struct iwl_cfg iwl3160_2ac_cfg = {
167171
.ht_params = &iwl7000_ht_params,
168172
.nvm_ver = IWL3160_NVM_VERSION,
169173
.nvm_calib_ver = IWL3160_TX_POWER_VERSION,
174+
.host_interrupt_operation_mode = true,
170175
};
171176

172177
const struct iwl_cfg iwl3160_2n_cfg = {
@@ -176,6 +181,7 @@ const struct iwl_cfg iwl3160_2n_cfg = {
176181
.ht_params = &iwl7000_ht_params,
177182
.nvm_ver = IWL3160_NVM_VERSION,
178183
.nvm_calib_ver = IWL3160_TX_POWER_VERSION,
184+
.host_interrupt_operation_mode = true,
179185
};
180186

181187
const struct iwl_cfg iwl3160_n_cfg = {
@@ -185,6 +191,7 @@ const struct iwl_cfg iwl3160_n_cfg = {
185191
.ht_params = &iwl7000_ht_params,
186192
.nvm_ver = IWL3160_NVM_VERSION,
187193
.nvm_calib_ver = IWL3160_TX_POWER_VERSION,
194+
.host_interrupt_operation_mode = true,
188195
};
189196

190197
const struct iwl_cfg iwl7265_2ac_cfg = {
@@ -196,5 +203,23 @@ const struct iwl_cfg iwl7265_2ac_cfg = {
196203
.nvm_calib_ver = IWL7265_TX_POWER_VERSION,
197204
};
198205

206+
const struct iwl_cfg iwl7265_2n_cfg = {
207+
.name = "Intel(R) Dual Band Wireless N 7265",
208+
.fw_name_pre = IWL7265_FW_PRE,
209+
IWL_DEVICE_7000,
210+
.ht_params = &iwl7000_ht_params,
211+
.nvm_ver = IWL7265_NVM_VERSION,
212+
.nvm_calib_ver = IWL7265_TX_POWER_VERSION,
213+
};
214+
215+
const struct iwl_cfg iwl7265_n_cfg = {
216+
.name = "Intel(R) Wireless N 7265",
217+
.fw_name_pre = IWL7265_FW_PRE,
218+
IWL_DEVICE_7000,
219+
.ht_params = &iwl7000_ht_params,
220+
.nvm_ver = IWL7265_NVM_VERSION,
221+
.nvm_calib_ver = IWL7265_TX_POWER_VERSION,
222+
};
223+
199224
MODULE_FIRMWARE(IWL7260_MODULE_FIRMWARE(IWL7260_UCODE_API_OK));
200225
MODULE_FIRMWARE(IWL3160_MODULE_FIRMWARE(IWL3160_UCODE_API_OK));

‎drivers/net/wireless/iwlwifi/iwl-config.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ struct iwl_eeprom_params {
207207
* @rx_with_siso_diversity: 1x1 device with rx antenna diversity
208208
* @internal_wimax_coex: internal wifi/wimax combo device
209209
* @high_temp: Is this NIC is designated to be in high temperature.
210+
* @host_interrupt_operation_mode: device needs host interrupt operation
211+
* mode set
210212
*
211213
* We enable the driver to be backward compatible wrt. hardware features.
212214
* API differences in uCode shouldn't be handled here but through TLVs
@@ -235,6 +237,7 @@ struct iwl_cfg {
235237
enum iwl_led_mode led_mode;
236238
const bool rx_with_siso_diversity;
237239
const bool internal_wimax_coex;
240+
const bool host_interrupt_operation_mode;
238241
bool high_temp;
239242
};
240243

@@ -294,6 +297,8 @@ extern const struct iwl_cfg iwl3160_2ac_cfg;
294297
extern const struct iwl_cfg iwl3160_2n_cfg;
295298
extern const struct iwl_cfg iwl3160_n_cfg;
296299
extern const struct iwl_cfg iwl7265_2ac_cfg;
300+
extern const struct iwl_cfg iwl7265_2n_cfg;
301+
extern const struct iwl_cfg iwl7265_n_cfg;
297302
#endif /* CONFIG_IWLMVM */
298303

299304
#endif /* __IWL_CONFIG_H__ */

‎drivers/net/wireless/iwlwifi/iwl-csr.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,11 @@ enum secure_load_status_reg {
495495
* the CSR_INT_COALESCING is an 8 bit register in 32-usec unit
496496
*
497497
* default interrupt coalescing timer is 64 x 32 = 2048 usecs
498-
* default interrupt coalescing calibration timer is 16 x 32 = 512 usecs
499498
*/
500499
#define IWL_HOST_INT_TIMEOUT_MAX (0xFF)
501500
#define IWL_HOST_INT_TIMEOUT_DEF (0x40)
502501
#define IWL_HOST_INT_TIMEOUT_MIN (0x0)
503-
#define IWL_HOST_INT_CALIB_TIMEOUT_MAX (0xFF)
504-
#define IWL_HOST_INT_CALIB_TIMEOUT_DEF (0x10)
505-
#define IWL_HOST_INT_CALIB_TIMEOUT_MIN (0x0)
502+
#define IWL_HOST_INT_OPER_MODE BIT(31)
506503

507504
/*****************************************************************************
508505
* 7000/3000 series SHR DTS addresses *

‎drivers/net/wireless/iwlwifi/mvm/bt-coex.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ int iwl_send_bt_init_conf(struct iwl_mvm *mvm)
391391
BT_VALID_LUT |
392392
BT_VALID_WIFI_RX_SW_PRIO_BOOST |
393393
BT_VALID_WIFI_TX_SW_PRIO_BOOST |
394-
BT_VALID_MULTI_PRIO_LUT |
395394
BT_VALID_CORUN_LUT_20 |
396395
BT_VALID_CORUN_LUT_40 |
397396
BT_VALID_ANT_ISOLATION |
@@ -842,6 +841,11 @@ static void iwl_mvm_bt_rssi_iterator(void *_data, u8 *mac,
842841

843842
sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id],
844843
lockdep_is_held(&mvm->mutex));
844+
845+
/* This can happen if the station has been removed right now */
846+
if (IS_ERR_OR_NULL(sta))
847+
return;
848+
845849
mvmsta = (void *)sta->drv_priv;
846850

847851
data->num_bss_ifaces++;

‎drivers/net/wireless/iwlwifi/mvm/d3.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ static int iwl_mvm_get_last_nonqos_seq(struct iwl_mvm *mvm,
895895
/* new API returns next, not last-used seqno */
896896
if (mvm->fw->ucode_capa.flags &
897897
IWL_UCODE_TLV_FLAGS_D3_CONTINUITY_API)
898-
err -= 0x10;
898+
err = (u16) (err - 0x10);
899899
}
900900

901901
iwl_free_resp(&cmd);
@@ -1549,7 +1549,7 @@ static bool iwl_mvm_setup_connection_keep(struct iwl_mvm *mvm,
15491549
if (gtkdata.unhandled_cipher)
15501550
return false;
15511551
if (!gtkdata.num_keys)
1552-
return true;
1552+
goto out;
15531553
if (!gtkdata.last_gtk)
15541554
return false;
15551555

@@ -1600,6 +1600,7 @@ static bool iwl_mvm_setup_connection_keep(struct iwl_mvm *mvm,
16001600
(void *)&replay_ctr, GFP_KERNEL);
16011601
}
16021602

1603+
out:
16031604
mvmvif->seqno_valid = true;
16041605
/* +0x10 because the set API expects next-to-use, not last-used */
16051606
mvmvif->seqno = le16_to_cpu(status->non_qos_seq_ctr) + 0x10;

0 commit comments

Comments
 (0)