dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/net/wireless/ath/carl9170
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
..
Kconfig wireless: allow Atheros card to not depend on ath.ko 2012-11-30 13:38:16 -05:00
Makefile
carl9170.h carl9170: fix sleep in softirq context 2012-10-08 15:06:04 -04:00
cmd.c wireless: Remove casts to same type 2012-06-06 09:31:33 -07:00
cmd.h wireless: Remove unnecessary ; from while (0) macros 2012-04-11 16:23:56 -04:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debug.h
eeprom.h
fw.c carl9170: fix -EINVAL bailout during init with !CONFIG_MAC80211_MESH 2013-01-02 14:38:25 -05:00
fwcmd.h carl9170: import updated firmware headers 2011-08-24 14:41:42 -04:00
fwdesc.h carl9170: import 1.9.6 firmware headers 2012-07-11 15:38:26 -04:00
hw.h carl9170 firmware: update firmware headers 2011-07-18 14:29:43 -04:00
led.c carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
mac.c carl9170: fix spurious transmissions in sniffer mode 2012-10-29 15:18:04 -04:00
main.c carl9170: fix sleep in softirq context 2012-10-08 15:06:04 -04:00
phy.c carl9170: allow users to lower output power level 2012-01-27 14:56:57 -05:00
phy.h
rx.c carl9170: fix copy and paste mishap in carl9170_handle_mpdu 2012-12-10 15:47:31 -05:00
tx.c carl9170: explain why sta cannot be NULL for ampdus 2012-12-06 14:58:55 -05:00
usb.c carl9170: handle traps from firmware loader 2012-10-19 15:53:20 -04:00
version.h carl9170: import 1.9.6 firmware headers 2012-07-11 15:38:26 -04:00
wlan.h carl9170: import 1.9.4 firmware headers 2011-07-05 15:26:51 -04:00