Add a check to block sending an MSCS ADD request if an MSCS session is
already active as this may lead to termination of the existing MSCS
session. This prevents termination of an existing MSCS session and
ensures robust handling of MSCS requests.
Also log a clear message indicating the reason for rejection.
Signed-off-by: Shubham Joshi <shujosh@qti.qualcomm.com>
return -1;
}
+ if (wpa_s->mscs_setup_done &&
+ wpa_s->robust_av.request_type == SCS_REQ_ADD) {
+ wpa_msg(wpa_s, MSG_INFO,
+ "MSCS: Failed to send MSCS ADD request: MSCS session already active");
+ return -1;
+ }
+
if (!wpa_s->mscs_setup_done &&
wpa_s->robust_av.request_type != SCS_REQ_ADD) {
wpa_msg(wpa_s, MSG_INFO,