1. 31 8月, 2016 6 次提交
  2. 19 8月, 2016 10 次提交
  3. 14 8月, 2016 1 次提交
  4. 04 8月, 2016 1 次提交
    • M
      tree-wide: replace config_enabled() with IS_ENABLED() · 97f2645f
      Masahiro Yamada 提交于
      The use of config_enabled() against config options is ambiguous.  In
      practical terms, config_enabled() is equivalent to IS_BUILTIN(), but the
      author might have used it for the meaning of IS_ENABLED().  Using
      IS_ENABLED(), IS_BUILTIN(), IS_MODULE() etc.  makes the intention
      clearer.
      
      This commit replaces config_enabled() with IS_ENABLED() where possible.
      This commit is only touching bool config options.
      
      I noticed two cases where config_enabled() is used against a tristate
      option:
      
       - config_enabled(CONFIG_HWMON)
        [ drivers/net/wireless/ath/ath10k/thermal.c ]
      
       - config_enabled(CONFIG_BACKLIGHT_CLASS_DEVICE)
        [ drivers/gpu/drm/gma500/opregion.c ]
      
      I did not touch them because they should be converted to IS_BUILTIN()
      in order to keep the logic, but I was not sure it was the authors'
      intention.
      
      Link: http://lkml.kernel.org/r/1465215656-20569-1-git-send-email-yamada.masahiro@socionext.comSigned-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Cc: Stas Sergeev <stsp@list.ru>
      Cc: Matt Redfearn <matt.redfearn@imgtec.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Markos Chandras <markos.chandras@imgtec.com>
      Cc: "Dmitry V. Levin" <ldv@altlinux.org>
      Cc: yu-cheng yu <yu-cheng.yu@intel.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Will Drewry <wad@chromium.org>
      Cc: Nikolay Martynov <mar.kolya@gmail.com>
      Cc: Huacai Chen <chenhc@lemote.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
      Cc: Rafal Milecki <zajec5@gmail.com>
      Cc: James Cowgill <James.Cowgill@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Alex Smith <alex.smith@imgtec.com>
      Cc: Adam Buchbinder <adam.buchbinder@gmail.com>
      Cc: Qais Yousef <qais.yousef@imgtec.com>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: Brian Norris <computersforpeace@gmail.com>
      Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
      Cc: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
      Cc: Roland McGrath <roland@hack.frob.com>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Tony Wu <tung7970@gmail.com>
      Cc: Huaitong Han <huaitong.han@intel.com>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Juergen Gross <jgross@suse.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Andrea Gelmini <andrea.gelmini@gelma.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Rabin Vincent <rabin@rab.in>
      Cc: "Maciej W. Rozycki" <macro@imgtec.com>
      Cc: David Daney <david.daney@cavium.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      97f2645f
  5. 20 7月, 2016 7 次提交
  6. 19 7月, 2016 4 次提交
    • P
      ath6kl: Unset IFF_LOWER_UP flag on AP mode leave. · 76b817f6
      Pierre Le Magourou 提交于
      When disabling tethering after having enabled it, the ath6kl driver does
      not set the IFF_LOWER_UP flag to 0 (carrier off) on the wlan interface.
      
      The upper layers (eg. connman) are not notified of the tethering mode
      status change. So, tethering can not be activated anymore.
      
      This patch adds a netif_carrier_off() call when stopping AP mode to fix
      the problem.
      Signed-off-by: NPierre Le Magourou <plemagourou@aldebaran.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      76b817f6
    • P
      ath6kl: Fix wrong regulatory domain disconnection. · f3651bae
      Pierre Le Magourou 提交于
      One minute after a successful connection, the kernel checks if the
      frequency and the channel width are well configured for the country we
      are in. (regulatory domain)
      
      ath6kl driver was setting the NL80211_CHAN_HT20 channel without checking
      for the HT capabilities. (we should have NL80211_CHAN_NO_HT in our
      case because the firmware did not support HT)
      
      This patch adds a check on ht_cap.ht_supported in order to create the
      channel corresponding to the firmware capabilities.
      Signed-off-by: NPierre Le Magourou <plemagourou@aldebaran.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      f3651bae
    • P
      ath6kl: Fix WLAN tethering authentication problem. · 270df8f8
      Pierre Le Magourou 提交于
      When enabling WLAN tethering, a new AP is visible and a STA could
      connect to it. When the STA tries to authenticate to the newly created
      AP, the WPA authentication mechanism is stuck in the 1/4 msg of 4-Way
      Handshake.
      
      In ath6kl_rx(), the ath6kl_find_sta() function is looking for the
      h_source field of the Ethernet frame header received by the STA. The
      datap pointer that points to the Ethernet frame header is incorrect,
      and was pointing at the wrong offset in the buffer.
      
      This commit adds a pad_before_data_start offset to set the datap pointer
      to the Ethernet frame header. datap->h_source parameter is now really
      pointing to the source ethernet address and the authentication process
      can continue.
      Signed-off-by: NPierre Le Magourou <plemagourou@aldebaran.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      270df8f8
    • M
      ath10k: disable wake_tx_queue for older devices · 4ca18078
      Michal Kazior 提交于
      Ideally wake_tx_queue should be used regardless as
      it is a requirement for reducing bufferbloat and
      implementing airtime fairness in the future.
      
      However some setups (typically low-end platforms
      hosting QCA988X) suffer performance regressions
      with the current wake_tx_queue implementation.
      Therefore disable it unless it is really
      beneficial with current codebase (which is when
      firmware supports smart pull-push tx scheduling).
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      4ca18078
  7. 08 7月, 2016 11 次提交