From f09b50d888b9a151a7c41dac7a672e5ad7b69ece Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Fri, 29 Jul 2016 15:56:01 -0700 Subject: [PATCH] qcacld-3.0: Fix link voting for sap mode Bus link voting needs to vote for the link up before voting for the link down. The sap module voted for link down before link up, overriding the default settings of an always on bus. This confused the suspend resume system making it send WOW_IFACE_PAUSE_ENABLED when the bus interface didn't have a "paused" mode. Sap module should vote for link up when a sta is added and vote link down when removed. Change-Id: I5c042a3a4b3d4e6528fdc7edc9e0413c0f811192 CRs-Fixed: 1049469 --- core/wma/src/wma_dev_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index ca129ce2a4af..144a08b8773c 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -4081,7 +4081,7 @@ void wma_add_sta(tp_wma_handle wma, tpAddStaParams add_sta) /* IBSS should share the same code as AP mode */ case BSS_OPERATIONAL_MODE_IBSS: case BSS_OPERATIONAL_MODE_AP: - htc_vote_link_down(wma->htc_handle); + htc_vote_link_up(wma->htc_handle); wma_add_sta_req_ap_mode(wma, add_sta); break; case BSS_OPERATIONAL_MODE_NDI: @@ -4133,7 +4133,7 @@ void wma_delete_sta(tp_wma_handle wma, tpDeleteStaParams del_sta) case BSS_OPERATIONAL_MODE_IBSS: /* IBSS shares AP code */ case BSS_OPERATIONAL_MODE_AP: - htc_vote_link_up(wma->htc_handle); + htc_vote_link_down(wma->htc_handle); wma_delete_sta_req_ap_mode(wma, del_sta); /* free the memory here only if sync feature is not enabled */ if (!rsp_requested &&