af6cf93a078bd6967f820fca80f20d6c4a8039e4

Once the FW sends the link switch request to host handle the request from scheduler thread and send confirmation back on completion of link switch process with status of link switch (success/failure). Add new serialization command type for link switch. Introduce flags to get the current state of link switch request, set the state to idle when no link switch in progress or once the current link switch is completed. Access to state is protected with MLO dev context lock. Implement various helper API to: a) Transition link switch to next state. b) Get current state of link switch. c) To check whether any link switch is in progress. c) To check whether link switch is happening on assoc VDEV or not. Introduce a new VDEV flag to suggest the VDEV is in link switch process and also implement helper APIs to set/get/clear this VDEV flag. a) The flag is set at start of link switch, once the FW request params are validated and before proceeding for link switch disconnect on VDEV. b) Clear the flag once the Link switch confirmation is sent to FW. Validate the link switch request params: a) IEEE link ID's received. b) Check if new connection is part of MLO connection. c) Check if VDEV is MLO STA VDEV or not. d) Is VDEV in connected state or not, that means VDEV is not in transitioning state due to disconnect. e) Check if any link switch in progress on this MLD f) Current link ID of VDEV equals the FW params. If validation is successful, serialize the link switch command and in the serialization activation start the actual link switch process. Change-Id: Ie582650541054c8cf39aaa8316e86a7a40256a15 CRs-Fixed: 3556422
This is CNSS WLAN Host Driver for products starting from iHelium
Description
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%