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
committed by nshrivas
szülő 412c1e6a88
commit 904e527aa7
2 fájl változott, egészen pontosan 9 új sor hozzáadva és 2 régi sor törölve

Fájl megtekintése

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-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
@@ -166,6 +166,8 @@
#define WLAN_VDEV_FEXT_MAT 0x20000000
/* VDEV is wired PSTA*/
#define WLAN_VDEV_FEXT_WIRED_PSTA 0x40000000
/* Fils discovery on 6G SAP*/
#define WLAN_VDEV_FEXT_FILS_DISC_6G_SAP 0x80000000
/* VDEV OP flags */
/* if the vap destroyed by user */

Fájl megtekintése

@@ -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);