brcmfmac: add mutex to protect pno requests
authorArend Van Spriel <[email protected]>
Fri, 9 Jun 2017 11:19:21 +0000 (12:19 +0100)
committerKalle Valo <[email protected]>
Tue, 13 Jun 2017 06:57:50 +0000 (09:57 +0300)
commit42596f761449595e3f0f18ce57c88472ad2d6160
tree36b70e786fe2d03fb1d029bff8d3d1a457b79897
parentefc2c1fa8e145b60a7805fa9b6c92ac0746fccc3
brcmfmac: add mutex to protect pno requests

The request references kept in pno are accessed in user-space context
and in firmware event handler context. As such we need to protect it
with a lock. As both context allow sleep a mutex seems appropriate.

Reviewed-by: Hante Meuleman <[email protected]>
Reviewed-by: Pieter-Paul Giesberts <[email protected]>
Reviewed-by: Franky Lin <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c