diff options
| author | Varun Reddy Yeturu <vyeturu@qca.qualcomm.com> | 2015-05-05 18:20:06 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-05-06 17:30:34 +0530 |
| commit | 508f84759d32949d893c612d983ea6c8f4083c54 (patch) | |
| tree | 6e66dd8f0b247d138581e47accac017d50c039df | |
| parent | 645f296a391fcfaa2e7ed6337aa79ef02889ab87 (diff) | |
cld-2.0: Avoid VDEV Up when it is already UP
Do not send a vdev up to the firmware when the vdev
is already UP.
CRs-Fixed: 832544
Change-Id: Ia32aa82193bff27e4d4cf0bd86e186380a008865
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 818a53a54901..3e0b53ca3670 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -14710,6 +14710,12 @@ static void wma_add_sta_req_sta_mode(tp_wma_handle wma, tpAddStaParams params) iface->aid = params->assocId; goto out; } + if (wma->interfaces[params->smesessionId].vdev_up == true) { + WMA_LOGE("%s: vdev id %d is already UP for %pM", __func__, + params->smesessionId, params->bssId); + status = VOS_STATUS_E_FAILURE; + goto out; + } if (peer != NULL && peer->state == ol_txrx_peer_state_disc) { /* * This is the case for reassociation. |
