|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -67,3 +67,17 @@ bool cfg_nan_get_ndi_mac_randomize(struct wlan_objmgr_psoc *psoc)
|
|
return nan_obj->cfg_param.ndi_mac_randomize;
|
|
return nan_obj->cfg_param.ndi_mac_randomize;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+QDF_STATUS cfg_nan_get_ndp_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
|
|
|
|
+ uint16_t *val)
|
|
|
|
+{
|
|
|
|
+ struct nan_psoc_priv_obj *nan_obj = cfg_nan_get_priv_obj(psoc);
|
|
|
|
+
|
|
|
|
+ if (!nan_obj) {
|
|
|
|
+ nan_err("NAN obj null");
|
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ *val = nan_obj->cfg_param.ndp_inactivity_timeout;
|
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
|
+}
|
|
|
|
+
|