/
hostp2pd.yaml
93 lines (87 loc) · 3.94 KB
/
hostp2pd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
##########################################################################
# hostp2pd - The Wi-Fi Direct Session Manager
# wpa_cli controller of Wi-Fi Direct connections handled by wpa_supplicant
# https://github.com/Ircama/hostp2pd
# (C) Ircama 2021 - CC-BY-NC-SA-4.0
##########################################################################
%YAML 1.1
---
# Configuration settings (uncomment to enable the configuration parameters)
hostp2pd: # (remember to indent options)
# select_timeout_secs: # see read_wpa() and find_timing_level
# normal: 10 # seconds. Period to send p2p_find refreshes
# connect: 90 # seconds. Increased timing while p2p_connect
# long: 600 # seconds. Period to send p2p_find refreshes after exceeding self.max_scan_polling
# enroller: 600 # seconds. Period used by the enroller
# p2p_client: "wpa_cli" # wpa_cli program name
# min_conn_delay: 40 # seconds delay before issuing another p2p_connect or enroll
# max_num_failures: 3 # max number of retries for a p2p_connect
# max_num_wpa_cli_failures: 9 # max number of wpa_cli errors
# max_scan_polling: 2 # max number of p2p_find consecutive polling (0=infinite number)
# save_config_enabled: True # Disable if old wpa_supplicant version crashes with save_config when missing file
# pbc_in_use: None # Use method selected in config. (False=keypad, True=pbc, None=wpa_supplicant.conf)
# p2p_group_add_opts: None # Arguments to add to p2p_group_add, like freq=2 or freq=5
# p2p_connect_opts: None # Arguments to add to p2p_connect, like freq=2 or freq=5
# activate_persistent_group: True # Activate a persistent group at process startup
# activate_autonomous_group: False # Activate an autonomous group at process startup
# ssid_postfix: "Group" # Postfix string to be added to the automatically generated groups
# dynamic_group: False # allow removing group after a session disconnects
# persistent_network_id: None # persistent group network number (None = first in wpa_supplicant config.)
# max_negotiation_time: 120 # seconds. Time for a station to enter the PIN
# wpa_supplicant_min_err_warn: 0 # None(=all warned) or min n. of wpa_supplicant connection errors to skip warning
# pin: "00000000" # pin
# pin_module: None # external pin module
# force_logging: None # force_logging
# interface: "p2p-dev-wlan0" # default value is "auto"; using the command line argument is preferred
# run_program: "" # run_program
# pbc_white_list: # name white list for push button (pbc) enrolment
# - "test1"
# - "test2"
# network_parms: # network parameters when creating a persistent group if none is already defined
# - psk "your_passphrase"
# - ssid "DIRECT-PP-postfix"
# - proto RSN
# - key_mgmt WPA-PSK
# - pairwise CCMP
# - auth_alg OPEN
# config_parms: # wpa_supplicant configuration parameters
# update_config: 1
# device_name: DIRECT-test
# device_type: 6-0050F204-1
# config_methods: keypad
# p2p_go_intent: 15
# persistent_reconnect: 1
# p2p_go_ht40: 1
# country: <country ID>
# p2p_device_random_mac_addr: <mode>
# p2p_device_persistent_mac_addr: <mac address>
# Log file format
logging:
version: 1
disable_existing_loggers: False
formatters:
compact: # used for interactive console
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
#datefmt: '%H:%M:%S'
spaced: # used for the the log file
format: '%(asctime)s %(threadName)-9s %(funcName)-25s %(levelname)-8s %(message)s'
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: spaced
filename: /var/log/hostp2pd.log
level: DEBUG # default error level of the log file
encoding: utf8
maxBytes: 1000000
backupCount: 2
mode: 'w' # default is a which means append
console:
class: logging.StreamHandler
level: ERROR # default error level for interactive mode
formatter: compact
stream: ext://sys.stdout
root:
level: DEBUG
handlers:
- console
- file