linux_dsm_epyc7002/drivers/net/wireless/brcm80211/brcmfmac
Arend van Spriel 0cd75b1989 brcmfmac: fix conversion of channel width 20MHZ_NOHT
The function chandef_to_chanspec() failed when converting a
chandef with bandwidth set to NL80211_CHAN_WIDTH_20_NOHT. This
was reported by user running the device in AP mode.

------------[ cut here ]------------
WARNING: CPU: 0 PID: 304 at
	drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:381
		chandef_to_chanspec.isra.11+0x158/0x184()

Modules linked in:

CPU: 0 PID: 304 Comm: hostapd Not tainted 3.16.0-rc7-abb+g64aa90f #8

[<c0014bb4>] (unwind_backtrace) from [<c0012314>] (show_stack+0x10/0x14)
[<c0012314>] (show_stack) from [<c001d3f8>] (warn_slowpath_common+0x6c/0x8c)
[<c001d3f8>] (warn_slowpath_common) from [<c001d4b4>] (warn_slowpath_null+0x1c/0x24)
[<c001d4b4>] (warn_slowpath_null) from [<c03449a4>] (chandef_to_chanspec.isra.11+0x158/0x184)
[<c03449a4>] (chandef_to_chanspec.isra.11) from [<c0348e00>] (brcmf_cfg80211_start_ap+0x1e4/0x614)
[<c0348e00>] (brcmf_cfg80211_start_ap) from [<c04d1468>] (nl80211_start_ap+0x288/0x414)
[<c04d1468>] (nl80211_start_ap) from [<c043d144>] (genl_rcv_msg+0x21c/0x38c)
[<c043d144>] (genl_rcv_msg) from [<c043c740>] (netlink_rcv_skb+0xac/0xc0)
[<c043c740>] (netlink_rcv_skb) from [<c043cf14>] (genl_rcv+0x20/0x34)
[<c043cf14>] (genl_rcv) from [<c043c0a0>] (netlink_unicast+0x150/0x20c)
[<c043c0a0>] (netlink_unicast) from [<c043c4b8>] (netlink_sendmsg+0x2b8/0x398)
[<c043c4b8>] (netlink_sendmsg) from [<c04066a4>] (sock_sendmsg+0x84/0xa8)
[<c04066a4>] (sock_sendmsg) from [<c0407c5c>] (___sys_sendmsg.part.29+0x268/0x278)
[<c0407c5c>] (___sys_sendmsg.part.29) from [<c0408bdc>] (__sys_sendmsg+0x4c/0x7c)
[<c0408bdc>] (__sys_sendmsg) from [<c000ec60>] (ret_fast_syscall+0x0/0x44)
---[ end trace 965ee2158c9905a2 ]---

Cc: stable@vger.kernel.org # v3.17
Reported-by: Pontus Fuchs <pontusf@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-11-11 16:12:45 -05:00
..
bcdc.c brcmfmac: Add TDLS support to msgbuf. 2014-07-31 13:45:29 -04:00
bcdc.h brcmfmac: conditionally compile firmware protocol source code 2014-09-15 15:09:26 -04:00
bcmsdh.c brcmfmac: Fix OOB interrupt not working for BCM43362 2014-07-29 10:32:57 -04:00
btcoex.c brcmfmac: correct logging levels in btcoex source 2014-06-25 15:32:48 -04:00
btcoex.h brcmfmac: support critical protocol API for DHCP 2013-04-23 14:16:52 -04:00
chip.c brcmfmac: Adding PCIe bus layer support. 2014-07-31 13:45:26 -04:00
chip.h brcmfmac: make chip related functions host interface independent 2014-02-12 15:35:45 -05:00
commonring.c brcmfmac: Adding msgbuf protocol. 2014-07-31 13:45:26 -04:00
commonring.h brcmfmac: Adding msgbuf protocol. 2014-07-31 13:45:26 -04:00
dhd_bus.h brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00
dhd_common.c brcmfmac: Don't control mpc setting during scan operation 2014-06-25 15:32:48 -04:00
dhd_dbg.c brcmfmac: rework debugfs functions in the driver 2014-07-15 16:00:11 -04:00
dhd_dbg.h brcmfmac: Adding PCIe bus layer support. 2014-07-31 13:45:26 -04:00
dhd_linux.c Merge tag 'master-2014-07-31' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next 2014-08-05 13:18:20 -07:00
dhd_sdio.c brcmfmac: dhd_sdio.c: Cleaning up missing null-terminate in conjunction with strncpy 2014-10-23 14:02:06 -04:00
dhd.h brcmfmac: Fix msgbuf flow control. 2014-07-31 13:45:28 -04:00
feature.c brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00
feature.h brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00
firmware.c brcmfmac: Make firmware path a module parameter 2014-07-15 16:00:12 -04:00
firmware.h brcmfmac: Make firmware path a module parameter 2014-07-15 16:00:12 -04:00
flowring.c brcmfmac: Avoid usage of GFP_ATOMIC. 2014-09-30 13:17:47 -04:00
flowring.h brcmfmac: Add TDLS support to msgbuf. 2014-07-31 13:45:29 -04:00
fweh.c brcmfmac: handle IF event for P2P_DEVICE interface 2014-09-15 15:09:26 -04:00
fweh.h brcmfmac: handle IF event for P2P_DEVICE interface 2014-09-15 15:09:26 -04:00
fwil_types.h brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00
fwil.c brcmfmac: reduce log level in fwil if firmware returns error 2014-06-25 15:32:48 -04:00
fwil.h cfg80211: make connect ie param const 2014-02-04 21:48:10 +01:00
fwsignal.c brcmfmac: Fix crash on cleanup. 2014-09-30 13:17:47 -04:00
fwsignal.h brcmfmac: Take bus flowcontrol at credit mgmt into account. 2013-06-12 15:02:16 -04:00
Makefile brcmfmac: conditionally compile firmware protocol source code 2014-09-15 15:09:26 -04:00
msgbuf.c brcmfmac: Avoid usage of GFP_ATOMIC. 2014-09-30 13:17:47 -04:00
msgbuf.h brcmfmac: conditionally compile firmware protocol source code 2014-09-15 15:09:26 -04:00
of.c brcmfmac: add device tree support for SDIO devices 2014-07-29 10:32:56 -04:00
of.h brcmfmac: add device tree support for SDIO devices 2014-07-29 10:32:56 -04:00
p2p.c brcmfmac: assure P2P discovery is disabled when setting P2P_DEVICE mac address 2014-09-30 13:17:47 -04:00
p2p.h brcmfmac: Add tx p2p off-channel support. 2013-02-08 14:51:43 -05:00
pcie.c brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00
pcie.h brcmfmac: Adding PCIe bus layer support. 2014-07-31 13:45:26 -04:00
proto.c brcmfmac: Add TDLS support to msgbuf. 2014-07-31 13:45:29 -04:00
proto.h brcmfmac: Add TDLS support to msgbuf. 2014-07-31 13:45:29 -04:00
sdio_host.h brcmfmac: Fix some wrong register defines 2014-07-29 10:32:56 -04:00
tracepoint.c brcmfmac: introduce tracepoints for message logging 2013-03-06 16:28:31 -05:00
tracepoint.h brcmfmac: Use consistent naming for BCDC. 2013-12-02 14:25:25 -05:00
usb_rdl.h brcm80211: fmac: add USB support for bcm43235/6/8 chipsets 2012-02-22 14:48:53 -05:00
usb.c brcmfmac: Cleanup used device IDs. 2014-07-15 16:00:09 -04:00
usb.h brcmfmac: usb suspend/resume. 2012-11-16 14:28:47 -05:00
vendor.c brcmfmac: replace cfg80211 testmode with vendor command 2014-06-25 15:32:48 -04:00
vendor.h brcmfmac: replace cfg80211 testmode with vendor command 2014-06-25 15:32:48 -04:00
wl_cfg80211.c brcmfmac: fix conversion of channel width 20MHZ_NOHT 2014-11-11 16:12:45 -05:00
wl_cfg80211.h brcmfmac: Add wowl support for PCIE devices. 2014-09-30 13:17:48 -04:00