Browse Source

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
Houston Hoffman 8 years ago
parent
commit
f09b50d888
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/wma/src/wma_dev_if.c

+ 2 - 2
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 &&