linux/drivers/net/wireless/brcm80211/brcmfmac
Arend van Spriel 0f0fe990e3 brcmfmac: restore mpc before passing scan status to cfg80211
Before informing cfg80211 about the scan status the device should
be put back in mpc state. If done after user-space may initiate
another (scheduled) scan and fail because scan is still busy as
shown in logging below:

[ 3301.367376] brcmfmac: brcmf_fweh_event_worker event ESCAN_RESULT (69)
[ 3301.377305] brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0
[ 3301.384993] brcmutil: event payload, len=12
[ 3301.389208] 00000000: 0c 00 00 00 6d 00 00 00 34 12 00 00
[ 3301.389214] brcmfmac: brcmf_sdio_kso_control Enter: on=0
[ 3301.402196] brcmfmac: brcmf_inform_bss scanned AP count (0)
[ 3301.407808] brcmfmac: brcmf_notify_escan_complete Enter
[ 3301.413064] brcmfmac: brcmf_notify_escan_complete ESCAN Completed scan: Done
[ 3301.420137] brcmfmac: brcmf_sdio_bus_txctl Enter
[ 3301.420368] brcmfmac: brcmf_cfg80211_sched_scan_start Enter
[ 3301.420370] brcmfmac: brcmf_cfg80211_sched_scan_start:
				Scanning already: status (1)
[ 3301.440190] brcmfmac: brcmf_sdio_kso_control Enter: on=1
[ 3301.448695] brcmfmac: brcmf_sdio_tx_ctrlframe Enter
[ 3301.453662] brcmfmac: brcmf_sdio_bus_rxctl Enter
[ 3301.458326] brcmfmac: brcmf_sdio_isr Enter
[ 3301.462523] brcmfmac: brcmf_sdio_dpc Enter
[ 3301.466632] brcmfmac: brcmf_sdio_readframes Enter
[ 3301.471431] brcmfmac: brcmf_sdio_read_control Enter
[ 3301.476340] brcmfmac: brcmf_set_mpc MPC : 1

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@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-05-29 13:08:11 -04:00
..
bcdc.c brcmfmac: Limit control message length from host to device. 2014-01-06 15:47:59 -05:00
bcdc.h brcmfmac: Dynamically register a protocol layer. 2013-12-02 14:25:23 -05:00
bcmsdh.c brcmfmac: only show error message when brcmf_sdiod_regrw_helper() fails 2014-03-20 11:55:40 -04:00
btcoex.c brcmfmac: support critical protocol API for DHCP 2013-04-23 14:16:52 -04:00
btcoex.h brcmfmac: support critical protocol API for DHCP 2013-04-23 14:16:52 -04:00
chip.c brcmfmac: Fix brcmf_chip_ai_coredisable not applying reset bits to BCMA_IOCTL 2014-04-24 21:46:22 -04:00
chip.h brcmfmac: make chip related functions host interface independent 2014-02-12 15:35:45 -05:00
dhd_bus.h brcmfmac: Make FWS queueing configurable. 2014-05-13 15:56:46 -04:00
dhd_common.c brcmfmac: Give priority to 5GHz band in selecting target BSS 2014-05-13 15:56:43 -04:00
dhd_dbg.c brcmfmac: expose chip information through debugfs 2013-12-02 14:25:26 -05:00
dhd_dbg.h brcmfmac: Use consistent naming for BCDC. 2013-12-02 14:25:25 -05:00
dhd_linux.c brcmfmac: Move handling 802.1x frames to dhd_linux. 2014-05-13 15:56:45 -04:00
dhd_sdio.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-03-25 20:29:20 -04:00
dhd.h brcmfmac: Move out hdrpull from tx_finalize. 2014-05-13 15:56:45 -04:00
fweh.c brcmfmac: ignore IF event if firmware indicates it 2013-08-15 16:07:54 -04:00
fweh.h brcmfmac: move firmware event related defines to fweh.h 2013-12-02 14:25:25 -05:00
fwil_types.h brcmfmac: Give priority to 5GHz band in selecting target BSS 2014-05-13 15:56:43 -04:00
fwil.c cfg80211: make connect ie param const 2014-02-04 21:48:10 +01:00
fwil.h cfg80211: make connect ie param const 2014-02-04 21:48:10 +01:00
fwsignal.c brcmfmac: Make FWS queueing configurable. 2014-05-13 15:56:46 -04:00
fwsignal.h brcmfmac: Take bus flowcontrol at credit mgmt into account. 2013-06-12 15:02:16 -04:00
Makefile brcmfmac: rename sdio_chip.[ch] 2014-02-12 15:31:50 -05:00
nvram.c brcmfmac: enhance nvram processing 2014-05-13 15:56:47 -04:00
nvram.h brcmfmac: Create common nvram parsing routines. 2014-01-16 14:54:15 -05:00
p2p.c brcmfmac: remove mode field from brcmf_cfg80211_vif structure 2014-03-17 13:44:14 -04:00
p2p.h brcmfmac: Add tx p2p off-channel support. 2013-02-08 14:51:43 -05:00
proto.c brcmfmac: Combine protocol push hdr and bus txdata. 2013-12-18 15:22:55 -05:00
proto.h brcmfmac: Combine protocol push hdr and bus txdata. 2013-12-18 15:22:55 -05:00
sdio_host.h brcmfmac: use pre-allocated scatter-gather table for txglomming 2014-02-28 14:33:45 -05: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
usb.c brcmfmac: Make FWS queueing configurable. 2014-05-13 15:56:46 -04:00
usb.h brcmfmac: usb suspend/resume. 2012-11-16 14:28:47 -05:00
wl_cfg80211.c brcmfmac: restore mpc before passing scan status to cfg80211 2014-05-29 13:08:11 -04:00
wl_cfg80211.h brcmfmac: remove mode field from brcmf_cfg80211_vif structure 2014-03-17 13:44:14 -04:00