qcacld-3.0: Add support for SAE single pmk validity

Currently when SAE single pmk lifetime expires, the userspace
issues disconnect. To avoid this, on reaching a threshold value
of the total pmk lifetime, the firmware will clear the single
PMK and initiate a roam scan to perform full SAE and derive
new pmk.

Add changes to:
1. Send the remaining single pmk timeout value in seconds to
firmware.
this is calculated as the diffence in pmk timeout configured by
userspace and the time passed after set_pmksa was done (which is
system timestamp between the set_pmksa timestamp and timestamp at
which RSO command is filled).
2. Add internal roam trigger for SPMK timeout trigger.
3. Set the roam score delta value as 0 for SPMK timeout roam
trigger.

Change-Id: I62c2ddbbfeb2811a4342d41f2bdaa8d988568bcc
CRs-Fixed: 2869665
This commit is contained in:
Pragaspathi Thilagaraj
2021-02-04 01:24:44 +05:30
committed by snandini
父節點 f226f7620d
當前提交 9d61fc3d0e
共有 10 個文件被更改,包括 192 次插入29 次删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2021 The Linux Foundation. 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
@@ -2455,7 +2455,8 @@
* ROAM_TRIGGER_REASON_STA_KICKOUT BIT 15
* ROAM_TRIGGER_REASON_ESS_RSSI BIT 16
* ROAM_TRIGGER_REASON_WTC_BTM BIT 17
* ROAM_TRIGGER_REASON_MAX BIT 18
* ROAM_TRIGGER_REASON_PMK_TIMEOUT BIT 18
* ROAM_TRIGGER_REASON_MAX BIT 19
*
* Related: none
*
@@ -2469,7 +2470,7 @@
"roam_triggers", \
0, \
0xFFFFFFFF, \
0x3FFFF, \
0x7FFFF, \
CFG_VALUE_OR_DEFAULT, \
"Bitmap of roaming triggers")