qcacmn: Abort only host scans on roam start notification

The roam sequence in LFR-3.0 is roam scan start notification
from firmware followed by roam start indication and then
roam synch,roam synch frame events. Roam start is sent
after candidate selection and host driver will disable
queues when roam start is received.
But for emergency roam trigger, firmware sends roam start
indication directly without notifying roam scan start to disable
data path queues immediately after deauth received from the AP.
So roam start is received before roam scan is started at firmware
and before candidate selection is done.

After roam start notification, host sends scan abort for all scan
on vdev by setting scan command request type to
WMI_SCN_STOP_VAP_ALL. This results in roam scan getting aborted at
firmare in emergency deauth roaming case and roaming fails.

Introduce new vdev id value based on which the scan module will
abort only host triggered scans setting the flag
WMI_SCN_STOP_HOST_VAP_ALL in the scan request.

Change-Id: I3a162c55d4a008ff986fd957bed395b39c060bb5
CRs-Fixed: 2636410
Этот коммит содержится в:
Pragaspathi Thilagaraj
2020-03-18 13:05:51 +05:30
коммит произвёл nshrivas
родитель 868ce7c912
Коммит 0150333a89
8 изменённых файлов: 22 добавлений и 6 удалений

Просмотреть файл

@@ -239,6 +239,7 @@ enum wlan_serialization_cmd_type {
* @WLAN_SER_CANCEL_SINGLE_SCAN: Cancel a single scan with a given ID
* @WLAN_SER_CANCEL_PDEV_SCANS: Cancel all the scans on a given pdev
* @WLAN_SER_CANCEL_VDEV_SCANS: Cancel all the scans on given vdev
* @WLAN_SER_CANCEL_VDEV_HOST_SCANS: Cancel all host scans on given vdev
* @WLAN_SER_CANCEL_PDEV_NON_SCAN_CMD: Cancel all non scans on a given pdev
* @WLAN_SER_CANCEL_VDEV_NON_SCAN_CMD: Cancel all non scans on a given vdev
* @WLAN_SER_CANCEL_VDEV_NON_SCAN_CMD_TYPE: Cancel all non scans on a given vdev
@@ -251,6 +252,7 @@ enum wlan_serialization_cancel_type {
WLAN_SER_CANCEL_SINGLE_SCAN,
WLAN_SER_CANCEL_PDEV_SCANS,
WLAN_SER_CANCEL_VDEV_SCANS,
WLAN_SER_CANCEL_VDEV_HOST_SCANS,
WLAN_SER_CANCEL_PDEV_NON_SCAN_CMD,
WLAN_SER_CANCEL_VDEV_NON_SCAN_CMD,
WLAN_SER_CANCEL_VDEV_NON_SCAN_CMD_TYPE,

Просмотреть файл

@@ -908,6 +908,7 @@ wlan_serialization_find_and_cancel_cmd(
WLAN_SER_CMD_ATTR_NONE);
break;
case WLAN_SER_CANCEL_VDEV_SCANS:
case WLAN_SER_CANCEL_VDEV_HOST_SCANS:
/* remove all scan cmds which matches the vdev object */
status = wlan_serialization_cmd_cancel_handler(
ser_obj, NULL, NULL, cmd->vdev,