瀏覽代碼

qcacld-3.0: Do not use NULL data packet for BSS max idle

Do not use the NULL data keep alive method if BSS max idle period
is advertised as NULL packet is not encrypted.
Set the keep alive data method to management if BSS max idle period
is set.

Change-Id: Ib30e8a426e18fe3564fc2de8d48e85fb53840718
CRs-Fixed: 3007868
Kiran Kumar Lokere 3 年之前
父節點
當前提交
e5265cee59
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/wma/src/wma_mgmt.c

+ 4 - 1
core/wma/src/wma_mgmt.c

@@ -817,8 +817,11 @@ void wma_set_sta_keep_alive(tp_wma_handle wma, uint8_t vdev_id,
 	params.method = method;
 	params.timeperiod = timeperiod;
 	if (intr) {
-		if (intr->bss_max_idle_period)
+		if (intr->bss_max_idle_period) {
 			params.timeperiod = intr->bss_max_idle_period;
+			if (method == WMI_KEEP_ALIVE_NULL_PKT)
+				params.method = WMI_KEEP_ALIVE_MGMT_FRAME;
+		}
 	}
 
 	if (hostv4addr)