Skip to content

Commit c1f3bb6

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2 parents dcd6077 + 3c57e86 commit c1f3bb6

89 files changed

Lines changed: 3037 additions & 1517 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/80211.tmpl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@
152152
!Finclude/net/cfg80211.h cfg80211_scan_request
153153
!Finclude/net/cfg80211.h cfg80211_scan_done
154154
!Finclude/net/cfg80211.h cfg80211_bss
155-
!Finclude/net/cfg80211.h cfg80211_inform_bss_frame
156-
!Finclude/net/cfg80211.h cfg80211_inform_bss
155+
!Finclude/net/cfg80211.h cfg80211_inform_bss_width_frame
156+
!Finclude/net/cfg80211.h cfg80211_inform_bss_width
157157
!Finclude/net/cfg80211.h cfg80211_unlink_bss
158158
!Finclude/net/cfg80211.h cfg80211_find_ie
159159
!Finclude/net/cfg80211.h ieee80211_bss_get_ie

‎drivers/bluetooth/btusb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,6 @@ static struct usb_driver btusb_driver = {
16291629
#ifdef CONFIG_PM
16301630
.suspend = btusb_suspend,
16311631
.resume = btusb_resume,
1632-
.reset_resume = btusb_resume,
16331632
#endif
16341633
.id_table = btusb_table,
16351634
.supports_autosuspend = 1,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@ static const struct ieee80211_iface_limit if_limits[] = {
845845
};
846846

847847
static const struct ieee80211_iface_limit if_dfs_limits[] = {
848-
{ .max = 1, .types = BIT(NL80211_IFTYPE_AP) },
848+
{ .max = 1, .types = BIT(NL80211_IFTYPE_AP) |
849+
BIT(NL80211_IFTYPE_ADHOC) },
849850
};
850851

851852
static const struct ieee80211_iface_combination if_comb[] = {

‎drivers/net/wireless/iwlwifi/dvm/ucode.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,14 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv,
330330
enum iwl_ucode_type old_type;
331331
static const u8 alive_cmd[] = { REPLY_ALIVE };
332332

333-
old_type = priv->cur_ucode;
334-
priv->cur_ucode = ucode_type;
335333
fw = iwl_get_ucode_image(priv, ucode_type);
334+
if (WARN_ON(!fw))
335+
return -EINVAL;
336336

337+
old_type = priv->cur_ucode;
338+
priv->cur_ucode = ucode_type;
337339
priv->ucode_loaded = false;
338340

339-
if (!fw)
340-
return -EINVAL;
341-
342341
iwl_init_notification_wait(&priv->notif_wait, &alive_wait,
343342
alive_cmd, ARRAY_SIZE(alive_cmd),
344343
iwl_alive_fn, &alive_data);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ enum iwl_ucode_tlv_flag {
100100
IWL_UCODE_TLV_FLAGS_P2P = BIT(3),
101101
IWL_UCODE_TLV_FLAGS_DW_BC_TABLE = BIT(4),
102102
IWL_UCODE_TLV_FLAGS_NEWBT_COEX = BIT(5),
103-
IWL_UCODE_TLV_FLAGS_UAPSD = BIT(6),
103+
IWL_UCODE_TLV_FLAGS_PM_CMD_SUPPORT = BIT(6),
104104
IWL_UCODE_TLV_FLAGS_SHORT_BL = BIT(7),
105105
IWL_UCODE_TLV_FLAGS_RX_ENERGY_API = BIT(8),
106106
IWL_UCODE_TLV_FLAGS_TIME_EVENT_API_V2 = BIT(9),
@@ -113,6 +113,7 @@ enum iwl_ucode_tlv_flag {
113113
IWL_UCODE_TLV_FLAGS_SCHED_SCAN = BIT(17),
114114
IWL_UCODE_TLV_FLAGS_STA_KEY_CMD = BIT(19),
115115
IWL_UCODE_TLV_FLAGS_DEVICE_PS_CMD = BIT(20),
116+
IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT = BIT(24),
116117
};
117118

118119
/* The default calibrate table size if not specified by firmware file */

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "iwl-csr.h"
3535
#include "iwl-debug.h"
3636
#include "iwl-fh.h"
37-
#include "iwl-csr.h"
3837

3938
#define IWL_POLL_INTERVAL 10 /* microseconds */
4039

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ struct iwl_trans_config {
344344
u8 cmd_queue;
345345
u8 cmd_fifo;
346346
const u8 *no_reclaim_cmds;
347-
int n_no_reclaim_cmds;
347+
unsigned int n_no_reclaim_cmds;
348348

349349
bool rx_buf_size_8k;
350350
bool bc_table_dword;

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,16 @@ static int iwl_mvm_bt_coex_reduced_txp(struct iwl_mvm *mvm, u8 sta_id,
505505
struct iwl_mvm_sta *mvmsta;
506506
int ret;
507507

508-
/* This can happen if the station has been removed right now */
509508
if (sta_id == IWL_MVM_STATION_COUNT)
510509
return 0;
511510

512511
sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
513512
lockdep_is_held(&mvm->mutex));
513+
514+
/* This can happen if the station has been removed right now */
515+
if (IS_ERR_OR_NULL(sta))
516+
return 0;
517+
514518
mvmsta = (void *)sta->drv_priv;
515519

516520
/* nothing to do */
@@ -751,7 +755,7 @@ static void iwl_mvm_bt_coex_notif_handle(struct iwl_mvm *mvm)
751755

752756
cmd.bt_secondary_ci =
753757
iwl_ci_mask[chan->def.chan->hw_value][ci_bw_idx];
754-
cmd.secondary_ch_phy_id = *((u16 *)data.primary->drv_priv);
758+
cmd.secondary_ch_phy_id = *((u16 *)data.secondary->drv_priv);
755759
}
756760

757761
rcu_read_unlock();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static void iwl_dbgfs_update_pm(struct iwl_mvm *mvm,
342342
case MVM_DEBUGFS_PM_DISABLE_POWER_OFF:
343343
IWL_DEBUG_POWER(mvm, "disable_power_off=%d\n", val);
344344
dbgfs_pm->disable_power_off = val;
345+
break;
345346
case MVM_DEBUGFS_PM_LPRX_ENA:
346347
IWL_DEBUG_POWER(mvm, "lprx %s\n", val ? "enabled" : "disabled");
347348
dbgfs_pm->lprx_ena = val;

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,11 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm,
151151
enum iwl_ucode_type old_type = mvm->cur_ucode;
152152
static const u8 alive_cmd[] = { MVM_ALIVE };
153153

154-
mvm->cur_ucode = ucode_type;
155154
fw = iwl_get_ucode_image(mvm, ucode_type);
156-
157-
mvm->ucode_loaded = false;
158-
159-
if (!fw)
155+
if (WARN_ON(!fw))
160156
return -EINVAL;
157+
mvm->cur_ucode = ucode_type;
158+
mvm->ucode_loaded = false;
161159

162160
iwl_init_notification_wait(&mvm->notif_wait, &alive_wait,
163161
alive_cmd, ARRAY_SIZE(alive_cmd),

0 commit comments

Comments
 (0)