aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-10-22 18:00:49 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-26 14:49:10 (GMT)
commit51e9f22809b0f412c9c10baa34ddc46cf5df4f33 (patch)
tree86675d0549df45920610f58758b38cde0e73b9b0 /src/p2p/p2p_i.h
parent556b30daca49c601f4833a77e75cebdd8e496e5d (diff)
downloadhostap-51e9f22809b0f412c9c10baa34ddc46cf5df4f33.zip
hostap-51e9f22809b0f412c9c10baa34ddc46cf5df4f33.tar.gz
hostap-51e9f22809b0f412c9c10baa34ddc46cf5df4f33.tar.bz2
P2P: Add option to allow additional client channels
The new p2p_add_cli_chan=1 configuration parameter can be used to request passive-scan channels to be included in P2P channel lists for cases where the local end may become the P2P client in a group. This allows more options for the peer to use channels, e.g., if the local device is not aware of its current location and has marked most channels to require passive scanning. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index e5075ae..bb5dd39 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -572,6 +572,9 @@ int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel);
void p2p_channels_intersect(const struct p2p_channels *a,
const struct p2p_channels *b,
struct p2p_channels *res);
+void p2p_channels_union(const struct p2p_channels *a,
+ const struct p2p_channels *b,
+ struct p2p_channels *res);
void p2p_channels_remove_freqs(struct p2p_channels *chan,
const struct wpa_freq_range_list *list);
int p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class,
@@ -730,7 +733,8 @@ int p2p_send_action(struct p2p_data *p2p, unsigned int freq, const u8 *dst,
size_t len, unsigned int wait_time);
void p2p_stop_listen_for_freq(struct p2p_data *p2p, int freq);
int p2p_prepare_channel(struct p2p_data *p2p, struct p2p_device *dev,
- unsigned int force_freq, unsigned int pref_freq);
+ unsigned int force_freq, unsigned int pref_freq,
+ int go);
void p2p_dbg(struct p2p_data *p2p, const char *fmt, ...)
PRINTF_FORMAT(2, 3);
void p2p_info(struct p2p_data *p2p, const char *fmt, ...)