aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 21:30:24 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 14:17:16 (GMT)
commite3768e7c943d97687a8dfc195355995a00981564 (patch)
treed2bbbfca5977fabb21a94ccfcc881c88c4dc3df7 /wpa_supplicant/config.h
parent2c5d725c653af32da42509c56be7430cc1cd971b (diff)
downloadhostap-e3768e7c943d97687a8dfc195355995a00981564.zip
hostap-e3768e7c943d97687a8dfc195355995a00981564.tar.gz
hostap-e3768e7c943d97687a8dfc195355995a00981564.tar.bz2
P2P: Add global configuration parameters for P2P
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 17e2faa..9faa4f9 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -22,6 +22,7 @@
#define DEFAULT_AP_SCAN 1
#endif /* CONFIG_NO_SCAN_PROCESSING */
#define DEFAULT_FAST_REAUTH 1
+#define DEFAULT_P2P_GO_INTENT 7
#define DEFAULT_BSS_MAX_COUNT 200
#include "config_ssid.h"
@@ -33,6 +34,8 @@
#define CFG_CHANGED_OS_VERSION BIT(3)
#define CFG_CHANGED_UUID BIT(4)
#define CFG_CHANGED_COUNTRY BIT(5)
+#define CFG_CHANGED_SEC_DEVICE_TYPE BIT(6)
+#define CFG_CHANGED_P2P_SSID_POSTFIX BIT(7)
/**
* struct wpa_config - wpa_supplicant configuration data
@@ -343,6 +346,21 @@ struct wpa_config {
*/
int wps_cred_processing;
+#define MAX_SEC_DEVICE_TYPES 5
+ /**
+ * sec_device_type - Secondary Device Types (P2P)
+ * See device_type for the format used with these.
+ */
+ char *sec_device_type[MAX_SEC_DEVICE_TYPES];
+
+ int p2p_listen_reg_class;
+ int p2p_listen_channel;
+ int p2p_oper_reg_class;
+ int p2p_oper_channel;
+ int p2p_go_intent;
+ char *p2p_ssid_postfix;
+ int persistent_reconnect;
+
/**
* bss_max_count - Maximum number of BSS entries to keep in memory
*/