linux/drivers/net/wireless/marvell
Brian Norris 6f21ab3046 mwifiex: don't advertise IBSS features without FW support
As it is, doing something like

  # iw phy phy0 interface add foobar type ibss

on a firmware that doesn't have ad-hoc support just yields failures of
HostCmd_CMD_SET_BSS_MODE, which happened to return a '-1' error code
(-EPERM? not really right...) and sometimes may even crash the firmware
along the way.

Let's parse the firmware capability flag while registering the wiphy, so
we don't allow attempting IBSS at all, and we get a proper -EOPNOTSUPP
from nl80211 instead.

Fixes: e267e71e68 ("mwifiex: Disable adhoc feature based on firmware capability")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-02-19 17:15:44 +02:00
..
libertas libertas: no need to check return value of debugfs_create functions 2019-02-01 14:39:21 +02:00
libertas_tf libertas_tf: remove set but not used variable 'flags' 2019-02-19 17:14:23 +02:00
mwifiex mwifiex: don't advertise IBSS features without FW support 2019-02-19 17:15:44 +02:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile
mwl8k.c mwl8k: Expand non-DFS 5G channels 2017-12-07 15:17:26 +02:00