aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAhmad Kholaif <akholaif@qca.qualcomm.com>2015-07-24 08:23:24 +0000
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-04-01 16:46:52 +0530
commitd8dfb429d1b8e8428926daf83d066d29645a6a1c (patch)
tree66591b69ff893ebcb1c7f9169b4dfe05ba9e6782 /src
parenta6743919b14c851bc906cd159ba95b5bffb9a3c7 (diff)
downloadandroid_external_wpa_supplicant_8-d8dfb429d1b8e8428926daf83d066d29645a6a1c.tar.gz
android_external_wpa_supplicant_8-d8dfb429d1b8e8428926daf83d066d29645a6a1c.tar.bz2
android_external_wpa_supplicant_8-d8dfb429d1b8e8428926daf83d066d29645a6a1c.zip
P2P: Expose driver preferred frequency list fetch to P2P
This adds a callback function that can be used from the P2P module to request the current preferred list of operating channels from the driver. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: fc71f7d99db620097296720af1d46b1b94afb0f8 Git-repo: git://w1.fi/srv/git/hostap.git Change-Id: I8135b44c91bdaa89fe80a3e4f802dadfbe557662 CRs-fixed: 842468
Diffstat (limited to 'src')
-rw-r--r--src/p2p/p2p.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h
index f12419fb..ca53aebd 100644
--- a/src/p2p/p2p.h
+++ b/src/p2p/p2p.h
@@ -1034,6 +1034,20 @@ struct p2p_config {
* P2PS_SETUP_* bitmap is used as the parameters and return value.
*/
u8 (*p2ps_group_capability)(void *ctx, u8 incoming, u8 role);
+
+ /**
+ * get_pref_freq_list - Get preferred frequency list for an interface
+ * @ctx: Callback context from cb_ctx
+ * @go: Whether the use if for GO role
+ * @len: Length of freq_list in entries (both IN and OUT)
+ * @freq_list: Buffer for returning the preferred frequencies (MHz)
+ * Returns: 0 on success, -1 on failure
+ *
+ * This function can be used to query the preferred frequency list from
+ * the driver specific to a particular interface type.
+ */
+ int (*get_pref_freq_list)(void *ctx, int go,
+ unsigned int *len, unsigned int *freq_list);
};