Procházet zdrojové kódy

qcacld-3.0: Register EHT action frames for wake up

Currently the bitmap of action frames that can wake up the host
is sent via the wmi command WMI_WOW_SET_ACTION_WAKE_UP_CMDID.
This bitmap doesn't include EHT action frames so currently the
host doesn't wake up for EHT action frames.

Enable wake up for EHT action frames during runtime/system suspend.

CRs-Fixed: 3811796
Change-Id: I2c6ab7b7fba5572a02ff0db0f5198f2e9138a97e
Arun Kumar Khandavalli před 10 měsíci
rodič
revize
86620d4a21

+ 8 - 2
components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -66,6 +66,8 @@
 #define PMO_MAC_ACTION_FST            18
 #define PMO_MAC_ACTION_RVS            19
 #define PMO_MAC_ACTION_VHT            21
+#define PMO_MAC_ACTION_EHT            36
+#define PMO_MAC_ACTION_PROT_EHT       37
 #define PMO_VENDOR_PROTECTED          126
 #define PMO_MAC_ACTION_MAX            256
 
@@ -98,6 +100,8 @@
  * PMO_ACTION_FST             18      1
  * PMO_ACTION_RVS             19      1
  * PMO_ACTION_VHT             21      1
+ * PMO_MAC_ACTION_EHT         36      1
+ * PMO_MAC_ACTION_PROT_EHT    37      1
  * PMO_VENDOR_PROTECTED       126     1
  * ----------------------------+------+-------+
  */
@@ -113,7 +117,9 @@
 			 (1 << PMO_MAC_ACTION_RVS) | \
 			 (1 << PMO_MAC_ACTION_VHT))
 
-#define ALLOWED_ACTION_FRAMES_BITMAP1   0x0
+#define ALLOWED_ACTION_FRAMES_BITMAP1 \
+			 ((1 << (PMO_MAC_ACTION_EHT % 32)) |\
+			 (1 << (PMO_MAC_ACTION_PROT_EHT % 32)))
 #define ALLOWED_ACTION_FRAMES_BITMAP2   0x0
 #define ALLOWED_ACTION_FRAMES_BITMAP3 \
 		(1 << (PMO_VENDOR_PROTECTED % 32))