Skip to content
  1. Jan 03, 2013
    • Christian Lamparter's avatar
      carl9170: fix -EINVAL bailout during init with !CONFIG_MAC80211_MESH · 6c653f66
      Christian Lamparter authored
      
      
      Sean reported that as of 3.7, his AR9170 device no longer works
      because the driver fails during initialization. He noted this
      is due to:
      "In carl9170/fw.c, ar->hw->wiphy is tagged with
      NL80211_IFTYPE_MESH_POINT support if the firmware has Content
      after Beacon Queuing. This is both in interface_modes and the
      only iface_combinations entry.
      
      If CONFIG_MAC80211_MESH is not set, ieee80211_register_hw
      removes NL80211_IFTYPE_MESH_POINT from interface_modes, but
      not iface_combinations.
      
      wiphy_register then checks to see if every interface type in
      every interface combination is in interface_modes.
      NL80211_IFTYPE_MESH_POINT was removed, so you get a WARN_ON
      warning and it returns -EINVAL, giving up."
      
      Unfortunately, the iface_combination (types) feature bitmap
      in ieee80211_iface_limit is part of a const member in the
      ieee80211_iface_combination struct. Hence, the MESH_POINT
      feature flag can't be masked by wiphy_register in the
      same way as interface_modes in ieee80211_register_hw.
      
      Cc: <stable@vger.kernel.org>
      Reported-by: default avatarSean Patrick Santos <quantheory@gmail.com>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
      Tested-by: default avatarSean Patrick Santos <quantheory@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      6c653f66
    • Jussi Kivilinna's avatar
      rtlwifi: fix incorrect use of usb_alloc_coherent with usb_control_msg · 4c3de592
      Jussi Kivilinna authored
      
      
      Incorrect use of usb_alloc_coherent memory as input buffer to usb_control_msg
      can cause problems in arch DMA code, for example kernel BUG at
      'arch/arm/include/asm/dma-mapping.h:321' on ARM (linux-3.4).
      
      Change _usb_writeN_sync use kmalloc'd buffer instead.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      4c3de592
    • Sujith Manoharan's avatar
      ath9k: Fix compilation breakage · 12e94327
      Sujith Manoharan authored
      
      
      Since ath9k makes use of mac80211's debugfs hooks to
      maintain station statistics, make ATH9K_DEBUGFS
      select MAC80211_DEBUGFS. This fixes the issue reported by
      Fengguang Wu:
      
      drivers/net/wireless/ath/ath9k/debug.c: In function 'ath9k_sta_add_debugfs':
      drivers/net/wireless/ath/ath9k/debug.c:1589:4: error: 'struct ath_node' has no member named 'node_stat'
      drivers/net/wireless/ath/ath9k/debug.c: In function 'ath9k_sta_remove_debugfs':
      drivers/net/wireless/ath/ath9k/debug.c:1599:19: error: 'struct ath_node' has no member named 'node_stat'
      
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      12e94327
    • Geert Uytterhoeven's avatar
      ssb: SSB_DRIVER_GPIO should depend on GPIOLIB instead of selecting it · 3194f2f0
      Geert Uytterhoeven authored
      
      
      Commit ec43b08b ("ssb: add GPIO driver")
      added SSB_DRIVER_GPIO, which unconditionally selects GPIOLIB, causing
      a Kconfig warning:
      
      warning: (ARCH_REQUIRE_GPIOLIB && SSB_DRIVER_GPIO && BCMA_DRIVER_GPIO && MFD_TC6393XB && FB_VIA) selects GPIOLIB which has unmet direct dependencies (ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB)
      
      and build failure for m68k/allmodconfig:
      
      In file included from drivers/ssb/ssb_private.h:5,
                       from drivers/ssb/main.c:12:
      include/linux/ssb/ssb.h:440: error: field ‘gpio’ has incomplete type
      make[4]: *** [drivers/ssb/main.o] Error 1
      make[3]: *** [drivers/ssb/] Error 2
      
      Turn the select into a dependency to fix this.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      3194f2f0
    • Geert Uytterhoeven's avatar
      bcma: BCMA_DRIVER_GPIO should depend on GPIOLIB instead of selecting it · a7333114
      Geert Uytterhoeven authored
      
      
      Commit cf0936b0 ("bcma: add GPIO driver")
      added BCMA_DRIVER_GPIO, which unconditionally selects GPIOLIB, causing
      a Kconfig warning:
      
      warning: (ARCH_REQUIRE_GPIOLIB && SSB_DRIVER_GPIO && BCMA_DRIVER_GPIO && MFD_TC6393XB && FB_VIA) selects GPIOLIB which has unmet direct dependencies (ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB)
      
      and build failure for m68k/allmodconfig:
      
      In file included from include/linux/bcma/bcma.h:8,
                       from drivers/bcma/bcma_private.h:9,
                       from drivers/bcma/main.c:9:
      include/linux/bcma/bcma_driver_chipcommon.h:582: error: field ‘gpio’ has incomplete type
      In file included from include/linux/bcma/bcma.h:12,
                       from drivers/bcma/bcma_private.h:9,
                       from drivers/bcma/main.c:9:
      include/linux/ssb/ssb.h:440: error: field ‘gpio’ has incomplete type
      make[4]: *** [drivers/bcma/main.o] Error 1
      make[3]: *** [drivers/bcma/] Error 2
      
      Turn the select into a dependency to fix this.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      a7333114
  2. Dec 22, 2012