qcacmn: Return false if VDEV start fails for STA VDEV
Add change to return the error value to the caller in case when the VDEV start fails for STA VDEV. Change-Id: I8585e1233609113158231ec7104cf5046af23cd5 CRs-Fixed: 2698826
Этот коммит содержится в:

коммит произвёл
nshrivas

родитель
3ae6b5c3fe
Коммит
896773b223
@@ -150,6 +150,9 @@ static bool mlme_vdev_state_init_event(void *ctx, uint16_t event,
|
||||
{
|
||||
struct vdev_mlme_obj *vdev_mlme = (struct vdev_mlme_obj *)ctx;
|
||||
bool status;
|
||||
enum QDF_OPMODE mode;
|
||||
|
||||
mode = wlan_vdev_mlme_get_opmode(vdev_mlme->vdev);
|
||||
|
||||
switch (event) {
|
||||
case WLAN_VDEV_SM_EV_START:
|
||||
@@ -165,7 +168,15 @@ static bool mlme_vdev_state_init_event(void *ctx, uint16_t event,
|
||||
} else {
|
||||
mlme_err(
|
||||
"failed to validate vdev init params to move to START state");
|
||||
status = true;
|
||||
/*
|
||||
* In case of AP if false is returned, we consider as
|
||||
* error scenario and print that the event is not
|
||||
* handled. Hence return false only for STA.
|
||||
*/
|
||||
if (mode == QDF_STA_MODE)
|
||||
status = false;
|
||||
else
|
||||
status = true;
|
||||
mlme_vdev_notify_down_complete(vdev_mlme,
|
||||
event_data_len,
|
||||
event_data);
|
||||
|
Ссылка в новой задаче
Block a user