linux/drivers/net/wireless
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
..
admtek
ath Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2019-02-08 14:14:35 +02:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom brcmfmac: remove set but not used variable 'old_state' 2019-02-19 17:07:40 +02:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel iwlwifi: mvm: stop static queues correctly 2019-02-14 11:29:52 +02:00
intersil Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
marvell mwifiex: don't advertise IBSS features without FW support 2019-02-19 17:15:44 +02:00
mediatek mt76: mt76x2: simplify per-chain signal strength handling 2019-02-18 20:41:50 +01:00
quantenna qtnfmac: enable WPA3 SAE support 2019-02-08 17:30:24 +02:00
ralink wireless-drivers-next patches for 5.1 2019-02-06 09:36:36 -08:00
realtek rtlwifi: rtl8821ae: Remove CamelCase variables 2019-02-19 17:03:10 +02:00
rsi rsi: remove set but not used variables 'info, vif' 2019-02-19 17:09:25 +02:00
st cw1200: no need to check return value of debugfs_create functions 2019-02-01 14:34:56 +02:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2019-02-08 14:14:35 +02:00
zydas zd1201: mark expected switch fall-through 2018-11-06 19:00:12 +02:00
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c mac80211_hwsim: check that n_limits makes sense 2019-01-19 09:10:30 +01:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c wireless: remove unneeded semicolon 2019-02-01 14:25:41 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
virt_wifi.c Merge remote-tracking branch 'net-next/master' into mac80211-next 2019-02-01 11:05:35 +01:00
wl3501_cs.c
wl3501.h