qcacld-3.0: Apply cached KEEPALIVE interval after STA connection

Currently host rejects SET_KEEP_ALIVE_INTERVAL command if STA
is not connected. Instead of rejcting cache the KEEPALIVE
interval and apply after STA connection.

Change-Id: Ic45bceb6248f37afd2ab6348545a8c1eeb9e56d0
CRs-Fixed: 3814077
This commit is contained in:
Asutosh Mohapatra
2024-05-07 23:50:07 -07:00
gecommit door Ravindra Konda
bovenliggende 30fe20447c
commit 288a41b8e8
2 gewijzigde bestanden met toevoegingen van 8 en 10 verwijderingen

Bestand weergeven

@@ -11886,22 +11886,21 @@ static int hdd_vdev_set_sta_keep_alive_interval(
return -EINVAL;
}
hdd_debug("sta keep alive interval = %u", keep_alive_interval);
if (device_mode != QDF_STA_MODE) {
hdd_debug("This command is not supported for %s device mode",
device_mode_to_string(device_mode));
return -EINVAL;
}
if (!hdd_is_vdev_in_conn_state(link_info)) {
hdd_debug("Vdev (id %d) not in connected/started state, cannot accept command",
link_info->vdev_id);
return -EINVAL;
}
hdd_debug("sta keep alive interval = %u", keep_alive_interval);
wlan_hdd_save_sta_keep_alive_interval(adapter, keep_alive_interval);
if (!hdd_is_vdev_in_conn_state(link_info)) {
hdd_debug("Vdev (id %d) not in connected/started state, configure KEEPALIVE interval after connection",
link_info->vdev_id);
return 0;
}
if (!wlan_vdev_mlme_is_mlo_vdev(vdev))
return hdd_vdev_send_sta_keep_alive_interval(link_info,
hdd_ctx,

Bestand weergeven

@@ -1799,8 +1799,7 @@ hdd_cm_connect_success_pre_user_update(struct wlan_objmgr_vdev *vdev,
ucfg_dp_nud_indicate_roam(vdev);
/* hdd_objmgr_set_peer_mlme_auth_state */
if (adapter->keep_alive_interval &&
(is_roam || wlan_vdev_mlme_is_mlo_link_switch_in_progress(vdev)))
if (adapter->keep_alive_interval)
hdd_vdev_send_sta_keep_alive_interval(link_info, hdd_ctx,
adapter->keep_alive_interval);
}