qcacmn: Refine the STA keepalive interface

The unified WMI struct used to support the STA keepalive feature has a
few flaws:
- It is poorly named. Struct sta_params is a very generic name for a
  struct that has a very specific purpose.
- It is poorly designed. It utilizes pointers to the IPv4 and MAC
  addresses rather than support having those addresses within the
  struct itself. This prevents the struct from completely representing
  the payload, which is required if we want to utilize this struct in
  the converged UMAC.

To resolve these issues rename and redesign the struct.

This is co-dependent with I20cf9f54a7ec920a90575ffd73c51708414d46a0
("qcacld-3.0: Use the redesigned STA keepalive interface").

Change-Id: I2a401fa6934f05555cb3c30088af62cfbc9a3c59
CRs-Fixed: 2404895
This commit is contained in:
Jeff Johnson
2019-02-25 11:25:44 -08:00
committed by nshrivas
父節點 f054557850
當前提交 be9a952aa2
共有 5 個文件被更改,包括 22 次插入30 次删除

查看文件

@@ -24,7 +24,7 @@
#define _WMI_UNIFIED_STA_PARAM_H_
/**
* struct sta_params - sta keep alive parameters
* struct sta_keep_alive_params - sta keep alive parameters
* @vdev_id: vdev id
* @method: keep alive method
* @timeperiod: time to keep alive
@@ -32,13 +32,13 @@
* @destv4addr: destination ipv4 address
* @destmac: destination mac address
*/
struct sta_params {
struct sta_keep_alive_params {
uint8_t vdev_id;
uint32_t method;
uint32_t timeperiod;
uint8_t *hostv4addr;
uint8_t *destv4addr;
uint8_t *destmac;
uint8_t hostv4addr[QDF_IPV4_ADDR_SIZE];
uint8_t destv4addr[QDF_IPV4_ADDR_SIZE];
uint8_t destmac[QDF_MAC_ADDR_SIZE];
};
/**