qcacld-3.0: Fix keepalive enum

Currently gStaKeepAliveMethod and station_keepalive_method are not
mapped properly due to an offset of one. Fix this by updating enum
definition.

Change-Id: I572ee472b0b45816bf26830060d2b0707c90f387
CRs-Fixed: 3385907
This commit is contained in:
Mohammed Ahmed
2023-01-23 13:23:08 -08:00
committed by Madan Koyyalamudi
parent 2200834742
commit b083b726aa
2 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
@@ -493,8 +493,8 @@
/* /*
* <ini> * <ini>
* gStaKeepAliveMethod - Which keepalive method to use * gStaKeepAliveMethod - Which keepalive method to use
* @Min: 0 * @Min: 1
* @Max: 1 * @Max: 2
* @Default: 1 * @Default: 1
* *
* This ini determines which keepalive method to use for station interfaces * This ini determines which keepalive method to use for station interfaces
@@ -512,8 +512,8 @@
#define CFG_STA_KEEPALIVE_METHOD CFG_INI_INT( \ #define CFG_STA_KEEPALIVE_METHOD CFG_INI_INT( \
"gStaKeepAliveMethod", \ "gStaKeepAliveMethod", \
MLME_STA_KEEPALIVE_NULL_DATA, \ MLME_STA_KEEPALIVE_NULL_DATA, \
MLME_STA_KEEPALIVE_COUNT - 1, \
MLME_STA_KEEPALIVE_GRAT_ARP, \ MLME_STA_KEEPALIVE_GRAT_ARP, \
MLME_STA_KEEPALIVE_NULL_DATA, \
CFG_VALUE_OR_DEFAULT, \ CFG_VALUE_OR_DEFAULT, \
"Which keepalive method to use") "Which keepalive method to use")

View File

@@ -1660,13 +1660,15 @@ struct wlan_mlme_nss_chains {
/** /**
* enum station_keepalive_method - available keepalive methods for stations * enum station_keepalive_method - available keepalive methods for stations
* @MLME_STA_KEEPALIVE_MIN: ensure KEEPALIVE_NULL or ARP are not values of 0
* @MLME_STA_KEEPALIVE_NULL_DATA: null data packet * @MLME_STA_KEEPALIVE_NULL_DATA: null data packet
* @MLME_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet * @MLME_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
* @MLME_STA_KEEPALIVE_COUNT: number of method options available * @MLME_STA_KEEPALIVE_COUNT: number of method options available
*/ */
enum station_keepalive_method { enum station_keepalive_method {
MLME_STA_KEEPALIVE_NULL_DATA, MLME_STA_KEEPALIVE_MIN,
MLME_STA_KEEPALIVE_GRAT_ARP, MLME_STA_KEEPALIVE_NULL_DATA = 1,
MLME_STA_KEEPALIVE_GRAT_ARP = 2,
/* keep at the end */ /* keep at the end */
MLME_STA_KEEPALIVE_COUNT MLME_STA_KEEPALIVE_COUNT
}; };