staging: wilc1000: use mutex lock to synchronized sending 'wid' cmd to firmware
authorAjay Singh <ajay.kathat@microchip.com>
Sun, 2 Dec 2018 18:02:25 +0000 (18:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:48:45 +0000 (09:48 +0100)
commit6dea33021f0b9a13ec0d634930e712eec40030c8
treef30c618940139e15f158eb0d8ff34397755887b1
parentf78d5db98b653e4d717c8b78aa15f76489cd3ab3
staging: wilc1000: use mutex lock to synchronized sending 'wid' cmd to firmware

Use mutex lock to protect the issuing of wid cmd to the firmware.
Currently the wid commands are synchronized by use of hif_workqueue work
queue.
Now, these changes are required to synchronize the access to wid
command, so the commands can be issued directly from cfg80211 context
and 'WILC_wq' thread.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c