qcacmn: Add lock for MLME command queuing to Serialization

MLME commands need to be queued back to back in few scnearios,
added lock to avoid interleaving between commands queueing.

Change-Id: If34aee5849938cbd76183af971ea058ce63505ee
CRs-Fixed: 2384147
Bu işleme şunda yer alıyor:
Srinivas Pitla
2018-11-30 19:19:04 +05:30
işlemeyi yapan: nshrivas
ebeveyn 65e6fc1a43
işleme 0b50f1289c
5 değiştirilmiş dosya ile 131 ekleme ve 5 silme

Dosyayı Görüntüle

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -134,5 +134,23 @@ QDF_STATUS wlan_vdev_chan_config_valid(struct wlan_objmgr_vdev *vdev);
* FAILURE: otherwise failure
*/
QDF_STATUS wlan_vdev_is_going_down(struct wlan_objmgr_vdev *vdev);
/**
* wlan_vdev_mlme_cmd_lock - Acquire lock for command queuing atomicity
*
* API to take VDEV MLME command lock
*
* Return: void
*/
void wlan_vdev_mlme_cmd_lock(struct wlan_objmgr_vdev *vdev);
/**
* wlan_vdev_mlme_cmd_unlock - Release lock for command queuing atomicity
*
* API to release VDEV MLME command lock
*
* Return: void
*/
void wlan_vdev_mlme_cmd_unlock(struct wlan_objmgr_vdev *vdev);
#endif
#endif