qcacmn: Add new feature to control fils discovery on 6Ghz Sap

6Ghz SAP needs to send either a probe response or fils
discovery at every 20ms.

Add a new feature to configure the probe response or
fils discovery frame.

Change-Id: I3b9842021db94515ae4dccbcdc573a4cd84caa56
CRs-Fixed: 2591147
This commit is contained in:
Sandeep Puligilla
2019-12-20 17:24:42 -08:00
zatwierdzone przez nshrivas
rodzic 412c1e6a88
commit 904e527aa7
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -344,6 +344,7 @@ QDF_STATUS vdev_mgr_up_send(struct vdev_mlme_obj *mlme_obj)
enum QDF_OPMODE opmode;
struct wlan_objmgr_vdev *vdev;
struct config_fils_params fils_param = {0};
uint8_t is_6g_sap_fd_enabled;
if (!mlme_obj) {
mlme_err("VDEV_MLME is NULL");
@@ -374,7 +375,11 @@ QDF_STATUS vdev_mgr_up_send(struct vdev_mlme_obj *mlme_obj)
if (QDF_IS_STATUS_ERROR(status))
return status;
is_6g_sap_fd_enabled = wlan_vdev_mlme_feat_ext_cap_get(vdev,
WLAN_VDEV_FEXT_FILS_DISC_6G_SAP);
mlme_debug("SAP FD enabled %d", is_6g_sap_fd_enabled);
if (opmode == QDF_SAP_MODE && mlme_obj->vdev->vdev_mlme.des_chan &&
is_6g_sap_fd_enabled &&
WLAN_REG_IS_6GHZ_CHAN_FREQ(
mlme_obj->vdev->vdev_mlme.des_chan->ch_freq)) {
fils_param.vdev_id = wlan_vdev_get_id(mlme_obj->vdev);