OSDN Git Service

brcmfmac: Prevent re-tuning conflicting with 'wake-up'
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 28 Apr 2015 14:45:41 +0000 (17:45 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 28 Apr 2015 17:11:15 +0000 (01:11 +0800)
commit915d4a526a6f3a08f03bfe3d265797a04dc435a6
treeebfc5526144c2744be474555ebd98b3b5bd66697
parente6c130460ca9af873276e956b9cf750aca4bb457
brcmfmac: Prevent re-tuning conflicting with 'wake-up'

If the device is in a custom sleep state, then re-tuning
will fail. Add calls to sdio_retune_hold_now() and
sdio_retune_release() to prevent re-tuning before the
wake-up command. In the case re-tuning was needed, the
wake-up command might return an error, but the wake-up
is expected still to have happened, and the error is
anyway ignored.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
drivers/net/wireless/brcm80211/brcmfmac/sdio.c