qcacld-3.0: Block the TWT setup till notify event is received

Currently, TWT setup is allowed after roaming even if
TWT notify from firmware is not received.

Block the TWT setup till notify event is received
from firmware.

Change-Id: Ia6ff8fe9e05f32ddf6dbdd608d9090b612237f26
CRs-Fixed: 2870610
This commit is contained in:
Deeksha Gupta
2021-02-09 09:27:50 +05:30
committed by snandini
parent 7a29ff5f90
commit a3ca2a725e
5 changed files with 67 additions and 68 deletions

View File

@@ -98,14 +98,11 @@ struct twt_session_info {
* struct twt_context - TWT context
* @peer_capability: TWT peer capability bitmap. Refer enum
* wlan_twt_capabilities for representation.
* @wait_for_notify: TWT session teardown received, wait for
* notify event from firmware before next TWT setup is done.
* @num_twt_sessions: Maximum supported TWT sessions.
* @session_info: TWT session related parameters for each session
*/
struct twt_context {
uint8_t peer_capability;
bool wait_for_notify;
uint8_t num_twt_sessions;
struct twt_session_info session_info[WLAN_MAX_TWT_SESSIONS_PER_PEER];
};