]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add a utility function to get the group configuration
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 2 Jun 2014 14:42:02 +0000 (17:42 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 13:52:06 +0000 (16:52 +0300)
This will be useful for finding the interface related to this group
after formation based on the group SSID.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
src/p2p/p2p.h
src/p2p/p2p_group.c

index 5938aa71505986b6e3944490a0ae6a5e6e751eba..a9396194a38dd94c672bed827494533982eba768 100644 (file)
@@ -1809,6 +1809,13 @@ const u8 * p2p_group_get_dev_addr(struct p2p_group *group, const u8 *addr);
  */
 int p2p_group_is_client_connected(struct p2p_group *group, const u8 *dev_addr);
 
+/**
+ * p2p_group_get_config - Get the group configuration
+ * @group: P2P group context from p2p_group_init()
+ * Returns: The group configuration pointer
+ */
+const struct p2p_group_config * p2p_group_get_config(struct p2p_group *group);
+
 /**
  * p2p_get_peer_found - Get P2P peer info structure of a found peer
  * @p2p: P2P module context from p2p_init()
index 395ca089a8ef4c67a599be7208cb1d36bbc179f3..e79c29548f99cb457cafab654bd52017e5e2c802 100644 (file)
@@ -1013,3 +1013,9 @@ int p2p_group_get_freq(struct p2p_group *group)
 {
        return group->cfg->freq;
 }
+
+
+const struct p2p_group_config * p2p_group_get_config(struct p2p_group *group)
+{
+       return group->cfg;
+}