pull request: wireless 2012-05-30
Subsystems (8)
Dave,
Here is a batch of fixes intended for 3.5. They have spent a little time in linux-next, and for the most part they are reasonably small and obvious.
Claudio Pisa gives us a one-line fix to correct a check for QoS NoAck frames.
Dan Carpenter fixes an integer overflow issue in the NFC code.
Emmanuel Grumbach fixes a WARNING related to management of iwlwifi's Transmit Frame Descriptor rings.
Eyal Shapira fixes some build breakage in the wlcore module when CONFIG_PM is not defined. Eyal also fixes a mac80211 issue where some block ack state info wasn't getting handle properly across a suspend.
Felix gives us a load of fixes this time. The ath5k one ensures that users of multiple virtual interfaces can continue doing so, since "cfg80211: enforce lack of interface combinations" would otherwise prevent that. An ath9k fix stops rx dma when stopping tx, preventing some "Failed to stop Tx DMA!" messages. Another ath9k fix prevents a use-after-free bug. Felix also updates some ath9k_hw hardware initialization values, in order to prevent issues with "Tx being flakey and Rx not working at all" and to avoid stability issues with AR933X devices.
Grazvydas Ignotas fixes an oops in wl1251 related to enabling irqs.
Hauke Mehrtens provides a brcmfmac fix to avoid a failure to allocate memory for the device firmware.
Johannes removes some code to support an unavailable batch of firmware for the iwlwifi devices. This provides much of the iwlwifi bulk in this pull request. Johannes also provides a fix for an iwlwifi memory leak.
Meenakshi Venkataraman provides a trio of iwlwifi fixes. One adds a needed firmware update when BT traffic load changes. Another removes the use of shadow registers, which was leading to synchronization problems between the driver and firmware. The last avoids a WARNING that came when the driver inappropriately sent firmware commands even when a prerequisite command failed.
Last but not least, Soumik Das provides a mac80211 fix for a race that resulted in a timeout and a disconnection.
Please let me know if there are problems!
Thanks,
John
---
The following changes since commit 3fdcbd453152329002f12dfda0be90b714458164:
drop_monitor: Add module alias to enable automatic module loading (2012-05-29 22:33:56 -0400)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem
Claudio Pisa (1):
mac80211: fix flag check for QoS NOACK frames
Dan Carpenter (1):
NFC: potential integer overflow problem in check_crc()
Emmanuel Grumbach (1):
iwlwifi: fix the Transmit Frame Descriptor rings
Eyal Shapira (2):
wlcore: fix undefined symbols when CONFIG_PM is not defined
mac80211: fix ADDBA declined after suspend with wowlan
Felix Fietkau (5):
ath5k: add possible wiphy interface combinations
ath9k: stop rx dma before stopping tx
ath9k: fix a use-after-free-bug when ath_tx_setup_buffer() fails
ath9k_hw: update AR933x initvals to fix issues with high power devices
ath9k_hw: apply internal regulator settings on AR933x
Grazvydas Ignotas (1):
wl1251: fix oops on early interrupt
Hauke Mehrtens (1):
brcmfmac: use vmalloc to allocate mem for the firmware
Johannes Berg (2):
iwlwifi: remove ucode16 option
iwlwifi: fix memory leak if opmode fails to init
John W. Linville (1):
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Meenakshi Venkataraman (3):
iwlwifi: update BT traffic load states correctly
iwlwifi: do not use shadow registers by default
iwlwifi: do not send lq cmd when station add fails
Soumik Das (1):
mac80211: Fix race in checking AP status by sending null frame
drivers/net/wireless/ath/ath5k/base.c | 19 ++ drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 +- drivers/net/wireless/ath/ath9k/ar9003_eeprom.h | 3 + .../net/wireless/ath/ath9k/ar9330_1p1_initvals.h | 178 ++++++------ drivers/net/wireless/ath/ath9k/hw.c | 3 + drivers/net/wireless/ath/ath9k/main.c | 7 +- drivers/net/wireless/ath/ath9k/xmit.c | 16 +- drivers/net/wireless/brcm80211/brcmfmac/usb.c | 5 +- drivers/net/wireless/iwlwifi/Kconfig | 8 - drivers/net/wireless/iwlwifi/Makefile | 1 - drivers/net/wireless/iwlwifi/iwl-2000.c | 4 +- drivers/net/wireless/iwlwifi/iwl-6000.c | 6 +- drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 1 + drivers/net/wireless/iwlwifi/iwl-agn-sta.c | 2 +- drivers/net/wireless/iwlwifi/iwl-drv.c | 18 +- drivers/net/wireless/iwlwifi/iwl-phy-db.c | 288 -------------------- drivers/net/wireless/iwlwifi/iwl-phy-db.h | 129 --------- drivers/net/wireless/iwlwifi/iwl-trans-pcie-int.h | 2 +- drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c | 22 +- drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | 4 +- drivers/net/wireless/ti/wl1251/sdio.c | 2 +- drivers/net/wireless/ti/wl1251/spi.c | 3 +- drivers/net/wireless/ti/wlcore/acx.c | 2 + drivers/net/wireless/ti/wlcore/acx.h | 4 +- drivers/net/wireless/ti/wlcore/rx.c | 2 + drivers/nfc/pn544_hci.c | 2 +- net/mac80211/mlme.c | 3 +- net/mac80211/tx.c | 2 +- net/mac80211/util.c | 12 +- 29 files changed, 184 insertions(+), 566 deletions(-) delete mode 100644 drivers/net/wireless/iwlwifi/iwl-phy-db.c delete mode 100644 drivers/net/wireless/iwlwifi/iwl-phy-db.h
drivers/net/wireless/ath/ath5k/base.c +19 -0
@@ -2415,6 +2415,22 @@ ath5k_tx_complete_poll_work(struct work_struct *work)* Initialization routines * \*************************/ +static const struct ieee80211_iface_limit if_limits[] = { + { .max =2048 , .types =BIT (NL80211_IFTYPE_STATION ) }, + { .max =4 , .types = +#ifdef CONFIG_MAC80211_MESH +BIT (NL80211_IFTYPE_MESH_POINT ) | +#endif +BIT (NL80211_IFTYPE_AP ) }, +}; + +static const struct ieee80211_iface_combination if_comb = { + .limits = if_limits, + .n_limits =ARRAY_SIZE (if_limits), + .max_interfaces =2048 , + .num_different_channels =1 , +}; +int __devinit ath5k_init_ah (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops) {
@@ -2436,6 +2452,9 @@ ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)BIT (NL80211_IFTYPE_ADHOC ) |BIT (NL80211_IFTYPE_MESH_POINT ); + hw->wiphy->iface_combinations = &if_comb; + hw->wiphy->n_iface_combinations =1 ; +/* SW support for IBSS_RSN is provided by mac80211 */ hw->wiphy->flags |=WIPHY_FLAG_IBSS_RSN ;
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +1 -1
@@ -3809,7 +3809,7 @@ static bool is_pmu_set(struct ath_hw *ah, u32 pmu_reg, int pmu_set)return true; } -static void ar9003_hw_internal_regulator_apply (struct ath_hw *ah) +void ar9003_hw_internal_regulator_apply (struct ath_hw *ah) {int internal_regulator =ath9k_hw_ar9300_get_eeprom (ah,EEP_INTERNAL_REGULATOR );
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h +3 -0
@@ -334,4 +334,7 @@ u8 *ar9003_get_spur_chan_ptr(struct ath_hw *ah, bool is_2ghz);unsigned int ar9003_get_paprd_scale_factor (struct ath_hw *ah,struct ath9k_channel *chan); + +void ar9003_hw_internal_regulator_apply (struct ath_hw *ah); +#endif
drivers/net/wireless/ath/ath9k/ar9330_1p1_initvals.h +90 -88
283 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/hw.c +3 -0
@@ -1468,6 +1468,9 @@ static bool ath9k_hw_chip_reset(struct ath_hw *ah,return false; ah->chip_fullsleep = false; + +if (AR_SREV_9330 (ah)) +ar9003_hw_internal_regulator_apply (ah);ath9k_hw_init_pll (ah, chan);ath9k_hw_set_rfmode (ah, chan);
drivers/net/wireless/ath/ath9k/main.c +4 -3
@@ -239,7 +239,7 @@ static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush) {struct ath_hw *ah = sc->sc_ah;struct ath_common *common =ath9k_hw_common (ah); -bool ret; +bool ret = true;ieee80211_stop_queues (sc->hw);
@@ -250,11 +250,12 @@ static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush)ath9k_debug_samp_bb_mac (sc);ath9k_hw_disable_interrupts (ah); - ret =ath_drain_all_txq (sc, retry_tx); -if (!ath_stoprecv (sc)) ret = false; +if (!ath_drain_all_txq (sc, retry_tx)) + ret = false; +if (!flush) {if (ah->caps.hw_caps &ATH9K_HW_CAP_EDMA )ath_rx_tasklet (sc,1 , true);
drivers/net/wireless/ath/ath9k/xmit.c +10 -6
@@ -64,7 +64,8 @@ static void ath_tx_update_baw(struct ath_softc *sc, struct ath_atx_tid *tid,static struct ath_buf *ath_tx_setup_buffer (struct ath_softc *sc,struct ath_txq *txq,struct ath_atx_tid *tid, -struct sk_buff *skb); +struct sk_buff *skb, +bool dequeue);enum {MCS_HT20 ,
@@ -811,7 +812,7 @@ static enum ATH_AGGR_STATUS ath_tx_form_aggr(struct ath_softc *sc, fi =get_frame_info (skb); bf = fi->bf;if (!fi->bf) - bf =ath_tx_setup_buffer (sc, txq, tid, skb); + bf =ath_tx_setup_buffer (sc, txq, tid, skb, true);if (!bf)continue ;
@@ -1726,7 +1727,7 @@ static void ath_tx_send_ampdu(struct ath_softc *sc, struct ath_atx_tid *tid,return ; } - bf =ath_tx_setup_buffer (sc, txctl->txq, tid, skb); + bf =ath_tx_setup_buffer (sc, txctl->txq, tid, skb, false);if (!bf)return ;
@@ -1753,7 +1754,7 @@ static void ath_tx_send_normal(struct ath_softc *sc, struct ath_txq *txq, bf = fi->bf;if (!bf) - bf =ath_tx_setup_buffer (sc, txq, tid, skb); + bf =ath_tx_setup_buffer (sc, txq, tid, skb, false);if (!bf)return ;
@@ -1814,7 +1815,8 @@ u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate)static struct ath_buf *ath_tx_setup_buffer (struct ath_softc *sc,struct ath_txq *txq,struct ath_atx_tid *tid, -struct sk_buff *skb) +struct sk_buff *skb, +bool dequeue) {struct ath_common *common =ath9k_hw_common (sc->sc_ah);struct ath_frame_info *fi =get_frame_info (skb);
@@ -1863,6 +1865,8 @@ static struct ath_buf *ath_tx_setup_buffer(struct ath_softc *sc,return bf; error: +if (dequeue) +__skb_unlink (skb, &tid->buf_q);dev_kfree_skb_any (skb);return NULL ; }
@@ -1893,7 +1897,7 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct sk_buff *skb,*/ ath_tx_send_ampdu (sc, tid, skb, txctl); }else { - bf =ath_tx_setup_buffer (sc, txctl->txq, tid, skb); + bf =ath_tx_setup_buffer (sc, txctl->txq, tid, skb, false);if (!bf)return ;
drivers/net/wireless/brcm80211/brcmfmac/usb.c +3 -2
@@ -28,6 +28,7 @@#include <linux/uaccess.h> #include <linux/firmware.h> #include <linux/usb.h> +#include <linux/vmalloc.h> #include <net/cfg80211.h> #include <defs.h>
@@ -1239,7 +1240,7 @@ static int brcmf_usb_get_fw(struct brcmf_usbdev_info *devinfo)return -EINVAL ; } - devinfo->image =kmalloc (fw->size,GFP_ATOMIC );/* plus nvram */ + devinfo->image =vmalloc (fw->size);/* plus nvram */ if (!devinfo->image)return -ENOMEM ;
@@ -1603,7 +1604,7 @@ static struct usb_driver brcmf_usbdrvr = {void brcmf_usb_exit (void ) {usb_deregister (&brcmf_usbdrvr); -kfree (g_image.data); +vfree (g_image.data); g_image.data =NULL ; g_image.len =0 ; }
drivers/net/wireless/iwlwifi/Kconfig +0 -8
@@ -137,11 +137,3 @@ config IWLWIFI_EXPERIMENTAL_MFP even if the microcode doesn't advertise it. Say Y only if you want to experiment with MFP. - -config IWLWIFI_UCODE16 - bool "support uCode 16.0" - depends on IWLWIFI - help - This option enables support for uCode version 16.0. - - Say Y if you want to use 16.0 microcode.
drivers/net/wireless/iwlwifi/Makefile +0 -1
@@ -18,7 +18,6 @@ iwlwifi-objs += iwl-notif-wait.o iwlwifi-objs += iwl-trans-pcie.o iwl-trans-pcie-rx.o iwl-trans-pcie-tx.o -iwlwifi-$(CONFIG_IWLWIFI_UCODE16) += iwl-phy-db.o iwlwifi-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o iwlwifi-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o iwlwifi-$(CONFIG_IWLWIFI_DEVICE_TESTMODE) += iwl-testmode.o
drivers/net/wireless/iwlwifi/iwl-2000.c +2 -2
@@ -79,7 +79,7 @@ static const struct iwl_base_params iwl2000_base_params = { .chain_noise_scale = 1000, .wd_timeout = IWL_DEF_WD_TIMEOUT, .max_event_log_size = 512, - .shadow_reg_enable = true, + .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ .hd_v2 = true, };
@@ -97,7 +97,7 @@ static const struct iwl_base_params iwl2030_base_params = { .chain_noise_scale = 1000, .wd_timeout = IWL_LONG_WD_TIMEOUT, .max_event_log_size = 512, - .shadow_reg_enable = true, + .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ .hd_v2 = true, };
drivers/net/wireless/iwlwifi/iwl-6000.c +3 -3
@@ -86,7 +86,7 @@ static const struct iwl_base_params iwl6000_base_params = { .chain_noise_scale = 1000, .wd_timeout = IWL_DEF_WD_TIMEOUT, .max_event_log_size = 512, - .shadow_reg_enable = true, + .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ };static const struct iwl_base_params iwl6050_base_params = {
@@ -102,7 +102,7 @@ static const struct iwl_base_params iwl6050_base_params = { .chain_noise_scale = 1500, .wd_timeout = IWL_DEF_WD_TIMEOUT, .max_event_log_size = 1024, - .shadow_reg_enable = true, + .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ };static const struct iwl_base_params iwl6000_g2_base_params = {
@@ -118,7 +118,7 @@ static const struct iwl_base_params iwl6000_g2_base_params = { .chain_noise_scale = 1000, .wd_timeout = IWL_LONG_WD_TIMEOUT, .max_event_log_size = 512, - .shadow_reg_enable = true, + .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ };static const struct iwl_ht_params iwl6000_ht_params = {
drivers/net/wireless/iwlwifi/iwl-agn-rs.c +1 -0
@@ -884,6 +884,7 @@ static void rs_bt_update_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx,if ((priv->bt_traffic_load != priv->last_bt_traffic_load) || (priv->bt_full_concurrent != full_concurrent)) { priv->bt_full_concurrent = full_concurrent; + priv->last_bt_traffic_load = priv->bt_traffic_load;/* Update uCode's rate table. */ tbl = &(lq_sta->lq_info[lq_sta->active_tbl]);
drivers/net/wireless/iwlwifi/iwl-agn-sta.c +1 -1
@@ -772,7 +772,7 @@ void iwl_restore_stations(struct iwl_priv *priv, struct iwl_rxon_context *ctx) ~IWL_STA_DRIVER_ACTIVE ; priv->stations[i].used &= ~IWL_STA_UCODE_INPROGRESS ; -spin_unlock_bh (&priv->sta_lock); +continue ; }/* * Rate scaling has already been initialized, send
drivers/net/wireless/iwlwifi/iwl-drv.c +9 -9
@@ -657,17 +657,17 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv,return -EINVAL ; } -static int alloc_pci_desc (struct iwl_drv *drv, -struct iwl_firmware_pieces *pieces, -enum iwl_ucode_type type) +static int iwl_alloc_ucode (struct iwl_drv *drv, +struct iwl_firmware_pieces *pieces, +enum iwl_ucode_type type) {int i;for (i =0 ; i <IWL_UCODE_SECTION_MAX &&get_sec_size (pieces, type, i); i++)if (iwl_alloc_fw_desc (drv, &(drv->fw.img[type].sec[i]), -get_sec (pieces, type, i))) -return -1 ; +get_sec (pieces, type, i))) +return -ENOMEM ;return 0 ; }
@@ -825,8 +825,8 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)* 1) unmodified from disk * 2) backup cache for save/restore during power-downs */ for (i =0 ; i <IWL_UCODE_TYPE_MAX ; i++) -if (alloc_pci_desc (drv, &pieces, i)) - goto err_pci_alloc; +if (iwl_alloc_ucode (drv, &pieces, i)) + goto out_free_fw;/* Now that we can no longer fail, copy information */
@@ -866,7 +866,7 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context) drv->op_mode = iwl_dvm_ops.start (drv->trans, drv->cfg, &drv->fw);if (!drv->op_mode) - goto out_unbind; + goto out_free_fw;return ;
@@ -877,7 +877,7 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context) goto out_unbind;return ; - err_pci_alloc: + out_free_fw:IWL_ERR (drv,"failed to allocate pci memory\n" );iwl_dealloc_ucode (drv);release_firmware (ucode_raw);
drivers/net/wireless/iwlwifi/iwl-phy-db.c deleted +0 -288
288 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-phy-db.h deleted +0 -129
129 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-trans-pcie-int.h +1 -1
@@ -347,7 +347,7 @@ void iwl_trans_tx_queue_set_status(struct iwl_trans *trans,void iwl_trans_pcie_tx_agg_setup (struct iwl_trans *trans,int queue,int fifo,int sta_id,int tid,int frame_limit,u16 ssn);void iwlagn_txq_free_tfd (struct iwl_trans *trans,struct iwl_tx_queue *txq, -int index,enum dma_data_direction dma_dir); +enum dma_data_direction dma_dir);int iwl_tx_queue_reclaim (struct iwl_trans *trans,int txq_id,int index,struct sk_buff_head *skbs);int iwl_queue_space (const struct iwl_queue *q);
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c +14 -8
@@ -204,33 +204,39 @@ static void iwlagn_unmap_tfd(struct iwl_trans *trans, struct iwl_cmd_meta *meta,for (i =1 ; i < num_tbs; i++)dma_unmap_single (trans->dev,iwl_tfd_tb_get_addr (tfd, i),iwl_tfd_tb_get_len (tfd, i), dma_dir); + + tfd->num_tbs =0 ; }/** * iwlagn_txq_free_tfd - Free all chunks referenced by TFD [txq->q.read_ptr] * @trans - transport private data * @txq - tx queue -* @index - the index of the TFD to be freed -*@dma_dir - the direction of the DMA mapping +* @dma_dir - the direction of the DMA mapping * * Does NOT advance any TFD circular buffer read/write indexes * Does NOT free the TFD itself (which is within circular buffer) */ void iwlagn_txq_free_tfd (struct iwl_trans *trans,struct iwl_tx_queue *txq, -int index,enum dma_data_direction dma_dir) +enum dma_data_direction dma_dir) {struct iwl_tfd *tfd_tmp = txq->tfds; +/* rd_ptr is bounded by n_bd and idx is bounded by n_window */ +int rd_ptr = txq->q.read_ptr; +int idx =get_cmd_index (&txq->q, rd_ptr); +lockdep_assert_held (&txq->lock); -iwlagn_unmap_tfd (trans, &txq->entries[index].meta, - &tfd_tmp[index], dma_dir); +/* We have only q->n_window txq->entries, but we use q->n_bd tfds */ +iwlagn_unmap_tfd (trans, &txq->entries[idx].meta, + &tfd_tmp[rd_ptr], dma_dir);/* free SKB */ if (txq->entries) {struct sk_buff *skb; - skb = txq->entries[index].skb; + skb = txq->entries[idx].skb;/* Can be called from irqs-disabled context * If skb is not NULL, it means that the whole queue is being
@@ -238,7 +244,7 @@ void iwlagn_txq_free_tfd(struct iwl_trans *trans, struct iwl_tx_queue *txq,*/ if (skb) {iwl_op_mode_free_skb (trans->op_mode, skb); - txq->entries[index].skb =NULL ; + txq->entries[idx].skb =NULL ; } } }
@@ -973,7 +979,7 @@ int iwl_tx_queue_reclaim(struct iwl_trans *trans, int txq_id, int index,iwlagn_txq_inval_byte_cnt_tbl (trans, txq); -iwlagn_txq_free_tfd (trans, txq, txq->q.read_ptr,DMA_TO_DEVICE ); +iwlagn_txq_free_tfd (trans, txq,DMA_TO_DEVICE ); freed++; }
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c +1 -3
@@ -435,9 +435,7 @@ static void iwl_tx_queue_unmap(struct iwl_trans *trans, int txq_id)spin_lock_bh (&txq->lock);while (q->write_ptr != q->read_ptr) { -/* The read_ptr needs to bound by q->n_window */ -iwlagn_txq_free_tfd (trans, txq,get_cmd_index (q, q->read_ptr), - dma_dir); +iwlagn_txq_free_tfd (trans, txq, dma_dir); q->read_ptr =iwl_queue_inc_wrap (q->read_ptr, q->n_bd); }spin_unlock_bh (&txq->lock);
drivers/net/wireless/ti/wl1251/sdio.c +1 -1
@@ -260,6 +260,7 @@ static int wl1251_sdio_probe(struct sdio_func *func, }if (wl->irq) { +irq_set_status_flags (wl->irq,IRQ_NOAUTOEN ); ret =request_irq (wl->irq, wl1251_line_irq,0 ,"wl1251" , wl);if (ret <0 ) {wl1251_error ("request_irq() failed: %d" , ret);
@@ -267,7 +268,6 @@ static int wl1251_sdio_probe(struct sdio_func *func, }irq_set_irq_type (wl->irq,IRQ_TYPE_EDGE_RISING ); -disable_irq (wl->irq); wl1251_sdio_ops.enable_irq = wl1251_enable_line_irq; wl1251_sdio_ops.disable_irq = wl1251_disable_line_irq;
drivers/net/wireless/ti/wl1251/spi.c +1 -2
@@ -281,6 +281,7 @@ static int __devinit wl1251_spi_probe(struct spi_device *spi) wl->use_eeprom = pdata->use_eeprom; +irq_set_status_flags (wl->irq,IRQ_NOAUTOEN ); ret =request_irq (wl->irq, wl1251_irq,0 ,DRIVER_NAME , wl);if (ret <0 ) {wl1251_error ("request_irq() failed: %d" , ret);
@@ -289,8 +290,6 @@ static int __devinit wl1251_spi_probe(struct spi_device *spi)irq_set_irq_type (wl->irq,IRQ_TYPE_EDGE_RISING ); -disable_irq (wl->irq); - ret =wl1251_init_ieee80211 (wl);if (ret) goto out_irq;
drivers/net/wireless/ti/wlcore/acx.c +2 -0
@@ -1715,6 +1715,7 @@ out: } +#ifdef CONFIG_PM /* Set the global behaviour of RX filters - On/Off + default action */ int wl1271_acx_default_rx_filter_enable (struct wl1271 *wl,bool enable,enum rx_filter_action action)
@@ -1794,3 +1795,4 @@ out:kfree (acx); return ret; } +#endif /* CONFIG_PM */
drivers/net/wireless/ti/wlcore/acx.h +3 -1
@@ -1330,9 +1330,11 @@ int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, u8 *addr);int wl1271_acx_fm_coex (struct wl1271 *wl);int wl12xx_acx_set_rate_mgmt_params (struct wl1271 *wl);int wl12xx_acx_config_hangover (struct wl1271 *wl); + +#ifdef CONFIG_PM int wl1271_acx_default_rx_filter_enable (struct wl1271 *wl,bool enable,enum rx_filter_action action);int wl1271_acx_set_rx_filter (struct wl1271 *wl,u8 index,bool enable,struct wl12xx_rx_filter *filter); - +#endif /* CONFIG_PM */ #endif /* __WL1271_ACX_H__ */
drivers/net/wireless/ti/wlcore/rx.c +2 -0
@@ -279,6 +279,7 @@ void wl12xx_rx(struct wl1271 *wl, struct wl_fw_status *status)wl12xx_rearm_rx_streaming (wl, active_hlids); } +#ifdef CONFIG_PM int wl1271_rx_filter_enable (struct wl1271 *wl,int index,bool enable,struct wl12xx_rx_filter *filter)
@@ -314,3 +315,4 @@ void wl1271_rx_filter_clear_all(struct wl1271 *wl) wl1271_rx_filter_enable(wl, i, 0, NULL); } } +#endif /* CONFIG_PM */
drivers/nfc/pn544_hci.c +1 -1
@@ -232,7 +232,7 @@ static int pn544_hci_i2c_write(struct i2c_client *client, u8 *buf, int len)static int check_crc (u8 *buf,int buflen) { -u8 len; +int len;u16 crc; len = buf[0 ] +1 ;
net/mac80211/mlme.c +2 -1
@@ -1522,6 +1522,8 @@ static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata)* anymore. The timeout will be reset if the frame is ACKed by * the AP. */ + ifmgd->probe_send_count++; +if (sdata->local->hw.flags &IEEE80211_HW_REPORTS_TX_ACK_STATUS ) { ifmgd->nullfunc_failed = false;ieee80211_send_nullfunc (sdata->local, sdata,0 );
@@ -1538,7 +1540,6 @@ static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata) 0, (u32) -1, true, false); } - ifmgd->probe_send_count++; ifmgd->probe_timeout = jiffies +msecs_to_jiffies (probe_wait_ms);run_again (ifmgd, ifmgd->probe_timeout);if (sdata->local->hw.flags &IEEE80211_HW_REPORTS_TX_ACK_STATUS )
net/mac80211/tx.c +1 -1
@@ -153,7 +153,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx,/* Don't calculate ACKs for QoS Frames with NoAck Policy set */ if (ieee80211_is_data_qos (hdr->frame_control) && - *(ieee80211_get_qos_ctl (hdr)) |IEEE80211_QOS_CTL_ACK_POLICY_NOACK ) + *(ieee80211_get_qos_ctl (hdr)) &IEEE80211_QOS_CTL_ACK_POLICY_NOACK ) dur =0 ;else /* Time needed to transmit ACK
net/mac80211/util.c +6 -6
@@ -1371,6 +1371,12 @@ int ieee80211_reconfig(struct ieee80211_local *local) } } +/* add back keys */ +list_for_each_entry (sdata, &local->interfaces, list) +if (ieee80211_sdata_running (sdata)) +ieee80211_enable_keys (sdata); + + wake_up:/* * Clear the WLAN_STA_BLOCK_BA flag so new aggregation * sessions can be established after a resume.
@@ -1392,12 +1398,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)mutex_unlock (&local->sta_mtx); } -/* add back keys */ -list_for_each_entry (sdata, &local->interfaces, list) -if (ieee80211_sdata_running (sdata)) -ieee80211_enable_keys (sdata); - - wake_up:ieee80211_wake_queues_by_reason (hw,IEEE80211_QUEUE_STOP_REASON_SUSPEND );
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: Wed, 30 May 2012 13:13:00 -0400
Quoted 3 lines
Here is a batch of fixes intended for 3.5. They have spent a little time in linux-next, and for the most part they are reasonably small and obvious.
Pulled, thanks John.