pull request: wireless 2014-06-27
Subsystems (8)
Dave,
Please pull the following batch of fixes for the 3.16 stream...
For the mac80211 bits, Johannes says:
"We have a fix from Eliad for a time calculation, a fix from Max for head/tailroom when sending authentication packets, a revert that Felix requested since the patch in question broke regulatory and a fix from myself for an issue with a new command that we advertised in the wrong place."
For the bluetooth bits, Gustavo says:
"A few fixes for 3.16. This pull request contains a NULL dereference fix, and some security/pairing fixes."
For the iwlwifi bits, Emmanuel says:
"I have here a fix from Eliad for scheduled scan: it fixes a firmware assertion. Arik reverts a patch I made that didn't take into account that 3160 doesn't have UAPSD and hence, we can't assume that all newer firmwares support the feature. Here too, the visible effect is a firmware assertion. Along with that, we have a few fixes and additions to the device list."
For the ath10k bits, Kalle says:
"Bartosz fixed an issue where we were not able to create 8 vdevs when using DFS. Michal removed a false warning which was just confusing people."
On top of that...
Arend van Spriel fixes a 'divide by zero' regression in brcmfmac.
Amitkumar Karwar corrects a transmit timeout in mwifiex.
---
The following changes since commit e940f5d6ba6a01f8dbb870854d5205d322452730:
ipv6: Fix MLD Query message check (2014-06-27 00:21:50 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem
for you to fetch changes up to f9fa39e9ace5a8abbe9597c2970828ced67261da:
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem (2014-06-27 13:35:56 -0400)
----------------------------------------------------------------
Amitkumar Karwar (1):
mwifiex: fix Tx timeout issue
Arend van Spriel (1):
brcmfmac: assign chip id and rev in bus interface after brcmf_usb_dlneeded
Arik Nemtsov (1):
Revert "iwlwifi: remove IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT flag"
Bartosz Markowski (1):
ath10k: fix 8th virtual AP interface with DFS
Eliad Peller (2):
cfg80211: fix elapsed_jiffies calculation
iwlwifi: mvm: rework sched scan channel configuration
Johan Hedberg (3):
Bluetooth: Fix overriding higher security level in SMP
Bluetooth: Refactor authentication method lookup into its own function
Bluetooth: Fix rejecting pairing in case of insufficient capabilities
Johannes Berg (2):
Revert "cfg80211: Use 5MHz bandwidth by default when checking usable channels"
nl80211: move set_qos_map command into split state
John W. Linville (5):
Merge git://git.kernel.org/.../jberg/mac80211
Merge branch 'for-john' of git://git.kernel.org/.../iwlwifi/iwlwifi-fixes
Merge branch 'for-upstream' of git://git.kernel.org/.../bluetooth/bluetooth
Merge branch 'ath-current' of git://github.com/kvalo/ath
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Loic Poulain (1):
Bluetooth: Ignore H5 non-link packets in non-active state
Lukasz Rymanowski (1):
Bluetooth: Fix for ACL disconnect when pairing fails
Marcel Holtmann (1):
Revert "Bluetooth: Add a new PID/VID 0cf3/e005 for AR3012."
Max Stepanov (1):
mac80211: WEP extra head/tail room in ieee80211_send_auth
Michal Kazior (1):
ath10k: remove unnecessary htt rx corruption check
Oren Givon (1):
iwlwifi: update the 7265 series HW IDs
drivers/bluetooth/ath3k.c | 2 - drivers/bluetooth/btusb.c | 1 - drivers/bluetooth/hci_h5.c | 1 + drivers/net/wireless/ath/ath10k/core.c | 6 ++- drivers/net/wireless/ath/ath10k/htt_rx.c | 18 -------- drivers/net/wireless/brcm80211/brcmfmac/usb.c | 5 ++- drivers/net/wireless/iwlwifi/iwl-fw.h | 1 + drivers/net/wireless/iwlwifi/mvm/mac80211.c | 7 +++ drivers/net/wireless/iwlwifi/mvm/scan.c | 65 ++++++++------------------- drivers/net/wireless/iwlwifi/pcie/drv.c | 3 +- drivers/net/wireless/mwifiex/main.c | 1 + net/bluetooth/hci_conn.c | 12 ++++- net/bluetooth/smp.c | 60 +++++++++++++++++++------ net/mac80211/util.c | 5 ++- net/wireless/core.h | 2 +- net/wireless/nl80211.c | 11 +++-- net/wireless/reg.c | 22 +++------ 17 files changed, 112 insertions(+), 110 deletions(-)
drivers/bluetooth/ath3k.c +0 -2
@@ -90,7 +90,6 @@ static const struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x0b05, 0x17d0) }, { USB_DEVICE(0x0CF3, 0x0036) }, { USB_DEVICE(0x0CF3, 0x3004) }, - { USB_DEVICE(0x0CF3, 0x3005) }, { USB_DEVICE(0x0CF3, 0x3008) }, { USB_DEVICE(0x0CF3, 0x311D) }, { USB_DEVICE(0x0CF3, 0x311E) },
@@ -140,7 +139,6 @@ static const struct usb_device_id ath3k_blist_tbl[] = { { USB_DEVICE(0x0b05, 0x17d0), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0CF3, 0x0036), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, - { USB_DEVICE(0x0cf3, 0x3005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311D), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311E), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +0 -1
@@ -162,7 +162,6 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x0b05, 0x17d0), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x0036), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, - { USB_DEVICE(0x0cf3, 0x3005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311d), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311e), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/hci_h5.c +1 -0
@@ -406,6 +406,7 @@ static int h5_rx_3wire_hdr(struct hci_uart *hu, unsigned char c) H5_HDR_PKT_TYPE(hdr) != HCI_3WIRE_LINK_PKT) {BT_ERR ("Non-link packet received in non-active state" );h5_reset_rx (h5); +return 0 ; } h5->rx_func = h5_rx_payload;
drivers/net/wireless/ath/ath10k/core.c +5 -1
@@ -795,7 +795,11 @@ int ath10k_core_start(struct ath10k *ar)if (status) goto err_htc_stop; - ar->free_vdev_map = (1 <<TARGET_NUM_VDEVS ) -1 ; +if (test_bit (ATH10K_FW_FEATURE_WMI_10X , ar->fw_features)) + ar->free_vdev_map = (1 <<TARGET_10X_NUM_VDEVS ) -1 ; +else + ar->free_vdev_map = (1 <<TARGET_NUM_VDEVS ) -1 ; +INIT_LIST_HEAD (&ar->arvifs);if (!test_bit (ATH10K_FLAG_FIRST_BOOT_DONE , &ar->dev_flags))
drivers/net/wireless/ath/ath10k/htt_rx.c +0 -18
@@ -312,7 +312,6 @@ static int ath10k_htt_rx_amsdu_pop(struct ath10k_htt *htt,int msdu_len, msdu_chaining =0 ;struct sk_buff *msdu;struct htt_rx_desc *rx_desc; -bool corrupted = false;lockdep_assert_held (&htt->rx_ring.lock);
@@ -439,9 +438,6 @@ static int ath10k_htt_rx_amsdu_pop(struct ath10k_htt *htt, last_msdu =__le32_to_cpu (rx_desc->msdu_end.info0) &RX_MSDU_END_INFO0_LAST_MSDU ; -if (msdu_chaining && !last_msdu) - corrupted = true; -if (last_msdu) { msdu->next =NULL ;break ;
@@ -457,20 +453,6 @@ static int ath10k_htt_rx_amsdu_pop(struct ath10k_htt *htt, msdu_chaining =-1 ;/* -* Apparently FW sometimes reports weird chained MSDU sequences with -* more than one rx descriptor. This seems like a bug but needs more -* analyzing. For the time being fix it by dropping such sequences to -* avoid blowing up the host system. -*/ -if (corrupted) { -ath10k_warn ("failed to pop chained msdus, dropping\n" ); -ath10k_htt_rx_free_msdu_chain (*head_msdu); - *head_msdu =NULL ; - *tail_msdu =NULL ; - msdu_chaining = -EINVAL ; - } - -/* * Don't refill the ring yet. * * First, the elements popped here are still in use - it is not
drivers/net/wireless/brcm80211/brcmfmac/usb.c +3 -2
@@ -1184,8 +1184,6 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo) bus->bus_priv.usb = bus_pub;dev_set_drvdata (dev, bus); bus->ops = &brcmf_usb_bus_ops; - bus->chip = bus_pub->devid; - bus->chiprev = bus_pub->chiprev; bus->proto_type =BRCMF_PROTO_BCDC ; bus->always_use_fws_queue = true;
@@ -1194,6 +1192,9 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo)if (ret) goto fail; } + bus->chip = bus_pub->devid; + bus->chiprev = bus_pub->chiprev; +/* request firmware here */ brcmf_fw_get_firmwares (dev,0 ,brcmf_usb_get_fwname (devinfo),NULL , brcmf_usb_probe_phase2);
drivers/net/wireless/iwlwifi/iwl-fw.h +1 -0
@@ -88,6 +88,7 @@* P2P client interfaces simultaneously if they are in different bindings. * @IWL_UCODE_TLV_FLAGS_P2P_BSS_PS_SCM: support power save on BSS station and * P2P client interfaces simultaneously if they are in same bindings. +* @IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT: General support for uAPSD * @IWL_UCODE_TLV_FLAGS_P2P_PS_UAPSD: P2P client supports uAPSD power save * @IWL_UCODE_TLV_FLAGS_BCAST_FILTERING: uCode supports broadcast filtering. * @IWL_UCODE_TLV_FLAGS_GO_UAPSD: AP/GO interfaces support uAPSD clients
drivers/net/wireless/iwlwifi/mvm/mac80211.c +7 -0
@@ -303,6 +303,13 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) hw->uapsd_max_sp_len =IWL_UAPSD_MAX_SP ; } +if (mvm->fw->ucode_capa.flags &IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT && + !iwlwifi_mod_params.uapsd_disable) { + hw->flags |=IEEE80211_HW_SUPPORTS_UAPSD ; + hw->uapsd_queues =IWL_UAPSD_AC_INFO ; + hw->uapsd_max_sp_len =IWL_UAPSD_MAX_SP ; + } + hw->sta_data_size =sizeof (struct iwl_mvm_sta ); hw->vif_data_size =sizeof (struct iwl_mvm_vif ); hw->chanctx_data_size =sizeof (u16);
drivers/net/wireless/iwlwifi/mvm/scan.c +19 -46
110 lines not on this page · raw message
drivers/net/wireless/iwlwifi/pcie/drv.c +2 -1
@@ -367,6 +367,7 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { {IWL_PCI_DEVICE(0x095A, 0x5012, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x5412, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x5410, iwl7265_2ac_cfg)}, + {IWL_PCI_DEVICE(0x095A, 0x5510, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x5400, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x1010, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x5000, iwl7265_2n_cfg)},
@@ -380,7 +381,7 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { {IWL_PCI_DEVICE(0x095A, 0x9110, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9112, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9210, iwl7265_2ac_cfg)}, - {IWL_PCI_DEVICE(0x095A, 0x9200, iwl7265_2ac_cfg)}, + {IWL_PCI_DEVICE(0x095B, 0x9200, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9510, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9310, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9410, iwl7265_2ac_cfg)},
drivers/net/wireless/mwifiex/main.c +1 -0
@@ -645,6 +645,7 @@ mwifiex_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } tx_info =MWIFIEX_SKB_TXCB (skb); +memset (tx_info,0 ,sizeof (*tx_info)); tx_info->bss_num = priv->bss_num; tx_info->bss_type = priv->bss_type; tx_info->pkt_len = skb->len;
net/bluetooth/hci_conn.c +11 -1
@@ -289,10 +289,20 @@ static void hci_conn_timeout(struct work_struct *work) { struct hci_conn *conn = container_of(work, struct hci_conn, disc_work.work); +int refcnt =atomic_read (&conn->refcnt);BT_DBG ("hcon %p state %s" , conn,state_to_string (conn->state)); -if (atomic_read (&conn->refcnt)) +WARN_ON (refcnt <0 ); + +/* FIXME: It was observed that in pairing failed scenario, refcnt +* drops below 0. Probably this is because l2cap_conn_del calls +* l2cap_chan_del for each channel, and inside l2cap_chan_del conn is +* dropped. After that loop hci_chan_del is called which also drops +* conn. For now make sure that ACL is alive if refcnt is higher then 0, +* otherwise drop it. +*/ +if (refcnt >0 )return ;switch (conn->state) {
net/bluetooth/smp.c +46 -14
124 lines not on this page · raw message
net/mac80211/util.c +3 -2
@@ -1096,11 +1096,12 @@ void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata,int err;/* 24 + 6 = header + auth_algo + auth_transaction + status_code */ - skb =dev_alloc_skb (local->hw.extra_tx_headroom +24 +6 + extra_len); + skb =dev_alloc_skb (local->hw.extra_tx_headroom +IEEE80211_WEP_IV_LEN + +24 +6 + extra_len +IEEE80211_WEP_ICV_LEN );if (!skb)return ; -skb_reserve (skb, local->hw.extra_tx_headroom); +skb_reserve (skb, local->hw.extra_tx_headroom +IEEE80211_WEP_IV_LEN ); mgmt = (struct ieee80211_mgmt *)skb_put (skb,24 +6 );memset (mgmt,0 ,24 +6 );
net/wireless/core.h +1 -1
@@ -424,7 +424,7 @@ static inline unsigned int elapsed_jiffies_msecs(unsigned long start)if (end >= start)return jiffies_to_msecs (end - start); -return jiffies_to_msecs (end + (MAX_JIFFY_OFFSET - start) +1 ); +return jiffies_to_msecs (end + (ULONG_MAX - start) +1 ); }void
net/wireless/nl80211.c +5 -6
@@ -1497,18 +1497,17 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev, }CMD (start_p2p_device,START_P2P_DEVICE );CMD (set_mcast_rate,SET_MCAST_RATE ); +#ifdef CONFIG_NL80211_TESTMODE +CMD (testmode_cmd,TESTMODE ); +#endif if (state->split) {CMD (crit_proto_start,CRIT_PROTOCOL_START );CMD (crit_proto_stop,CRIT_PROTOCOL_STOP );if (rdev->wiphy.flags &WIPHY_FLAG_HAS_CHANNEL_SWITCH )CMD (channel_switch,CHANNEL_SWITCH ); +CMD (set_qos_map,SET_QOS_MAP ); } -CMD (set_qos_map,SET_QOS_MAP ); - -#ifdef CONFIG_NL80211_TESTMODE -CMD (testmode_cmd,TESTMODE ); -#endif - +/* add into the if now */ #undef CMDif (rdev->ops->connect || rdev->ops->auth) {
net/wireless/reg.c +7 -15
@@ -935,7 +935,7 @@ freq_reg_info_regd(struct wiphy *wiphy, u32 center_freq,if (!band_rule_found) band_rule_found =freq_in_rule_band (fr, center_freq); - bw_fits =reg_does_bw_fit (fr, center_freq,MHZ_TO_KHZ (5 )); + bw_fits =reg_does_bw_fit (fr, center_freq,MHZ_TO_KHZ (20 ));if (band_rule_found && bw_fits)return rr;
@@ -1019,10 +1019,10 @@ static void chan_reg_rule_print_dbg(const struct ieee80211_regdomain *regd, }#endif -/* Find an ieee80211_reg_rule such that a 5MHz channel with frequency -* chan->center_freq fits there. -* If there is no such reg_rule, disable the channel, otherwise set the -* flags corresponding to the bandwidths allowed in the particular reg_rule +/* +* Note that right now we assume the desired channel bandwidth +* is always 20 MHz for each individual channel (HT40 uses 20 MHz +* per channel, the primary and the extension channel). */ static void handle_channel(struct wiphy *wiphy, enum nl80211_reg_initiator initiator,
@@ -1083,12 +1083,8 @@ static void handle_channel(struct wiphy *wiphy,if (reg_rule->flags &NL80211_RRF_AUTO_BW ) max_bandwidth_khz =reg_get_max_bandwidth (regd, reg_rule); -if (max_bandwidth_khz <MHZ_TO_KHZ (10 )) - bw_flags =IEEE80211_CHAN_NO_10MHZ ; -if (max_bandwidth_khz <MHZ_TO_KHZ (20 )) - bw_flags |=IEEE80211_CHAN_NO_20MHZ ;if (max_bandwidth_khz <MHZ_TO_KHZ (40 )) - bw_flags |=IEEE80211_CHAN_NO_HT40 ; + bw_flags =IEEE80211_CHAN_NO_HT40 ;if (max_bandwidth_khz <MHZ_TO_KHZ (80 )) bw_flags |=IEEE80211_CHAN_NO_80MHZ ;if (max_bandwidth_khz <MHZ_TO_KHZ (160 ))
@@ -1522,12 +1518,8 @@ static void handle_channel_custom(struct wiphy *wiphy,if (reg_rule->flags &NL80211_RRF_AUTO_BW ) max_bandwidth_khz =reg_get_max_bandwidth (regd, reg_rule); -if (max_bandwidth_khz <MHZ_TO_KHZ (10 )) - bw_flags =IEEE80211_CHAN_NO_10MHZ ; -if (max_bandwidth_khz <MHZ_TO_KHZ (20 )) - bw_flags |=IEEE80211_CHAN_NO_20MHZ ;if (max_bandwidth_khz <MHZ_TO_KHZ (40 )) - bw_flags |=IEEE80211_CHAN_NO_HT40 ; + bw_flags =IEEE80211_CHAN_NO_HT40 ;if (max_bandwidth_khz <MHZ_TO_KHZ (80 )) bw_flags |=IEEE80211_CHAN_NO_80MHZ ;if (max_bandwidth_khz <MHZ_TO_KHZ (160 ))
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
David Miller
maintainerFrom: "John W. Linville" <[email protected]>
Date: Fri, 27 Jun 2014 14:43:06 -0400
Quoted 1 line
Please pull the following batch of fixes for the 3.16 stream...
Pulled, thanks John.