nl80211: add testmode dump support

    This adds dump support to testmode. The testmode
    dump support in nl80211 requires using two of the
    six cb->args, the rest can be used by the driver
    to figure out where the dump position is at or to
    store other data across invocations.

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
minstrel_ht: fixed rate mode through debugfs

    Found several threads about fixed rate mode in minstrel_ht for test
    environments, but no patches for it.

    This patch provides such a mode through debugfs.

    Signed-off-by: John W. Linville <linville@tuxdriver.com>
b43: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for b43:

      CC [M]  drivers/net/wireless/b43/lo.o
    drivers/net/wireless/b43/lo.c: In function ‘lo_measure_gain_values’:
    drivers/net/wireless/b43/lo.c:304:7: warning: variable ‘trsw_rx’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/b43/dma.o
    drivers/net/wireless/b43/dma.c: In function ‘free_all_descbuffers’:
    drivers/net/wireless/b43/dma.c:760:30: warning: variable ‘desc’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43/dma.c: In function ‘b43_dma_handle_txstatus’:
    drivers/net/wireless/b43/dma.c:1391:30: warning: variable ‘desc’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtlwifi: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for rtlwifi:

      CC [M]  drivers/net/wireless/rtlwifi/base.o
    drivers/net/wireless/rtlwifi/base.c: In function ‘rtl_tx_agg_stop’:
    drivers/net/wireless/rtlwifi/base.c:891:23: warning: variable ‘tid_data’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/base.c: In function ‘rtl_tx_agg_oper’:
    drivers/net/wireless/rtlwifi/base.c:921:23: warning: variable ‘tid_data’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/efuse.o
    drivers/net/wireless/rtlwifi/efuse.c: In function ‘efuse_pg_packet_write’:
    drivers/net/wireless/rtlwifi/efuse.c:928:24: warning: variable ‘dataempty’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/efuse.c: In function ‘efuse_get_current_size’:
    drivers/net/wireless/rtlwifi/efuse.c:1179:5: warning: variable ‘hoffset’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/ps.o
    drivers/net/wireless/rtlwifi/ps.c: In function ‘rtl_ps_set_rf_state’:
    drivers/net/wireless/rtlwifi/ps.c:85:19: warning: variable ‘rtstate’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/regd.o
    drivers/net/wireless/rtlwifi/regd.c: In function ‘_rtl_dump_channel_map’:
    drivers/net/wireless/rtlwifi/regd.c:310:28: warning: variable ‘ch’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/usb.o
    drivers/net/wireless/rtlwifi/usb.c: In function ‘_rtl_usb_transmit’:
    drivers/net/wireless/rtlwifi/usb.c:826:21: warning: variable ‘urb_list’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/usb.c:825:23: warning: variable ‘skb_list’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtl8192c-common: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for rtl8192c-common:

      CC [M]  drivers/net/wireless/rtlwifi/rtl8192c/fw_common.o
    drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c: In function ‘_rtl92c_cmd_send_packet’:
    drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c:549:5: warning: variable ‘own’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192c/phy_common.o
    drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c: In function ‘_rtl92c_phy_iq_calibrate’:
    drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c:1256:6: warning: variable ‘bbvalue’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c: In function ‘rtl92c_phy_iq_calibrate’:
    drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c:1766:6: warning: variable ‘reg_ecc’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c:1765:34: warning: variable ‘reg_eac’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtl8192ce: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for rtl8192ce:

      CC [M]  drivers/net/wireless/rtlwifi/rtl8192ce/hw.o
    drivers/net/wireless/rtlwifi/rtl8192ce/hw.c: In function ‘_rtl92ce_hw_configure’:
    drivers/net/wireless/rtlwifi/rtl8192ce/hw.c:766:6: warning: variable ‘reg_ratr’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/rtl8192ce/hw.c: In function ‘rtl92ce_gpio_radio_on_off_checking’:
    drivers/net/wireless/rtlwifi/rtl8192ce/hw.c:1972:41: warning: variable ‘cur_rfstate’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192ce/phy.o
    drivers/net/wireless/rtlwifi/rtl8192ce/phy.c: In function ‘rtl92c_phy_config_rf_with_headerfile’:
    drivers/net/wireless/rtlwifi/rtl8192ce/phy.c:284:7: warning: variable ‘rtstatus’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192ce/trx.o
    drivers/net/wireless/rtlwifi/rtl8192ce/trx.c: In function ‘_rtl92ce_translate_rx_signal_stuff’:
    drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:595:6: warning: variable ‘psaddr’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtl8192cu: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for rtl8192cu:

      CC [M]  drivers/net/wireless/rtlwifi/rtl8192cu/mac.o
    drivers/net/wireless/rtlwifi/rtl8192cu/mac.c: In function ‘rtl92c_translate_rx_signal_stuff’:
    drivers/net/wireless/rtlwifi/rtl8192cu/mac.c:1116:6: warning: variable ‘psaddr’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtl8192se: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for rtl8192se:

      CC [M]  drivers/net/wireless/rtlwifi/rtl8192se/dm.o
    drivers/net/wireless/rtlwifi/rtl8192se/dm.c: In function ‘_rtl92s_dm_refresh_rateadaptive_mask’:
    drivers/net/wireless/rtlwifi/rtl8192se/dm.c:225:5: warning: variable ‘rssi_level’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192se/fw.o
    drivers/net/wireless/rtlwifi/rtl8192se/fw.c: In function ‘rtl92s_download_fw’:
    drivers/net/wireless/rtlwifi/rtl8192se/fw.c:361:6: warning: variable ‘file_length’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192se/hw.o
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c: In function ‘_rtl92se_hw_configure’:
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c:887:6: warning: variable ‘reg_ratr’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c: In function ‘_rtl92se_set_media_status’:
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c:1125:20: warning: variable ‘ledaction’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c: In function ‘rtl92se_gpio_radio_on_off_checking’:
    drivers/net/wireless/rtlwifi/rtl8192se/hw.c:2274:32: warning: variable ‘cur_rfstate’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192se/phy.o
    drivers/net/wireless/rtlwifi/rtl8192se/phy.c: In function ‘rtl92s_phy_set_bw_mode’:
    drivers/net/wireless/rtlwifi/rtl8192se/phy.c:266:5: warning: variable ‘reg_prsr_rsc’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/rtlwifi/rtl8192se/trx.o
    drivers/net/wireless/rtlwifi/rtl8192se/trx.c: In function ‘_rtl92se_translate_rx_signal_stuff’:
    drivers/net/wireless/rtlwifi/rtl8192se/trx.c:584:6: warning: variable ‘psaddr’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
b43legacy: Fix warnings from gcc 4.6.0

    gcc 4.6.0 warnings for b43legacy:

      CC [M]  drivers/net/wireless/b43legacy/main.o
    drivers/net/wireless/b43legacy/main.c: In function ‘b43legacy_request_firmware’:
    drivers/net/wireless/b43legacy/main.c:1567:6: warning: variable ‘tmshigh’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/main.c: In function ‘b43legacy_op_dev_config’:
    drivers/net/wireless/b43legacy/main.c:2637:6: warning: variable ‘antenna_rx’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/main.c: In function ‘b43legacy_op_bss_info_changed’:
    drivers/net/wireless/b43legacy/main.c:2778:24: warning: variable ‘phy’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/xmit.c: In function ‘generate_txhdr_fw3’:
    drivers/net/wireless/b43legacy/xmit.c:324:7: warning: variable ‘rts_rate_ofdm’ set but not used [-Wunused-but-set-variable]
      CC [M]  drivers/net/wireless/b43legacy/dma.o
    drivers/net/wireless/b43legacy/dma.c: In function ‘free_all_descbuffers’:
    drivers/net/wireless/b43legacy/dma.c:820:36: warning: variable ‘desc’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/dma.c: In function ‘b43legacy_dma_tx’:
    drivers/net/wireless/b43legacy/dma.c:1377:28: warning: variable ‘info’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/dma.c:1374:24: warning: variable ‘hdr’ set but not used [-Wunused-but-set-variable]
    drivers/net/wireless/b43legacy/dma.c: In function ‘b43legacy_dma_handle_txstatus’:
    drivers/net/wireless/b43legacy/dma.c:1438:36: warning: variable ‘desc’ set but not used [-Wunused-but-set-variable]

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
mwifiex: remove support for old chipsets W0/W1

    For SD8787 A0/A1 chipsets we use the default firmware image
    file 'mrvl/sd8787_uapsta.bin'. So the chip rev id variable
    is removed.

    The global variable fw_name is moved to adapter structure
    so that we can support a different interface, such as PCIe,
    in future.

    Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: Bing Zhao <bzhao@marvell.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtlwifi: rtl8192se: Use write barrier when assigning ownership

    As noted by Mike McCormack <mikem@ring3k.org> for rtl8192ce, make sure
    all updates to a descriptor are flushed to memory before assigning ownship
    to hardware.

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
rtlwifi: rtl8192se: Synchronize IRQ after disabling it

    As suggested by Mike McCormack <mikem@ring3k.org> for rtl8192ce, make sure any IRQ
    handlers running on other CPUs complete.

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
ath9k: wake up chip before initializing PAPRD table

    In PAPRD table initialization path we do some register read, so
    make sure the chip is awake during that. Currently PAPRD is disabled.

    Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
ASoC: Update speyside audio driver for hardware revision 2

    Revision 2 of the Speyside platform supplies a 32kHz clock on MCLK2 rather
    than MCLK1.

    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Acked-by: Liam Girdwood <lrg@ti.com>