path: root/wpa_supplicant/p2p_supplicant.h
diff options
authorAnil Gathala Sudha <Anil.Sudha@Atheros.com>2010-11-10 11:33:47 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-10 11:33:47 (GMT)
commit7cfc4ac31960948afdf8f3ca959b9d8744b4524d (patch)
tree251503ea17cde28c0f767296e1ec2a204fbda0a4 /wpa_supplicant/p2p_supplicant.h
parentbacc31286cd17ee2bb3840d625a11d30972a0167 (diff)
P2P: Add support for automatic channel selection at GO
The driver wrapper may now indicate the preferred channel (e.g., based on scan results) on both 2.4 GHz and 5 GHz bands (and an overall best frequency). When setting up a GO, this preference information is used to select the operating channel if configuration does not include hardcoded channel. Similarly, this information can be used during GO Negotiation to indicate preference for a specific channel based on current channel conditions. p2p_group_add command can now use special values (freq=2 and freq=5) to indicate that the GO is to be started on the specified band.
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index a411c9a..d0221f2 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -118,5 +118,7 @@ int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s);
void wpas_p2p_update_channel_list(struct wpa_supplicant *wpa_s);
int wpas_p2p_cancel(struct wpa_supplicant *wpa_s);
void wpas_p2p_interface_unavailable(struct wpa_supplicant *wpa_s);
+void wpas_p2p_update_best_channels(struct wpa_supplicant *wpa_s,
+ int freq_24, int freq_5, int freq_overall);
#endif /* P2P_SUPPLICANT_H */