linux/drivers/net/wireless/ath
Christian Lamparter 6c653f6677 carl9170: fix -EINVAL bailout during init with !CONFIG_MAC80211_MESH
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: Sean Patrick Santos <quantheory@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Tested-by: Sean Patrick Santos <quantheory@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-01-02 14:38:25 -05:00
..
ar5523 wireless: allow Atheros card to not depend on ath.ko 2012-11-30 13:38:16 -05:00
ath5k ath5k: RX timestamp is reported at end of frame 2012-12-11 16:00:39 -05:00
ath6kl Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-11-26 14:46:41 -05:00
ath9k ath9k: Fix compilation breakage 2013-01-02 14:38:23 -05:00
carl9170 carl9170: fix -EINVAL bailout during init with !CONFIG_MAC80211_MESH 2013-01-02 14:38:25 -05:00
ath.h ath9k: Add a module parameter to enable diversity 2012-09-24 14:59:11 -04:00
debug.c
hw.c ath_hw: Use common REG_WRITE parameter order 2012-10-19 15:53:06 -04:00
Kconfig wireless: allow Atheros card to not depend on ath.ko 2012-11-30 13:38:16 -05:00
key.c ath9k: fix dynamic WEP related regression 2012-06-25 15:14:13 -04:00
main.c
Makefile ar5523: Add new driver 2012-10-29 15:29:05 -04:00
reg.h
regd_common.h
regd.c
regd.h