blob: 014f41e6d0806d477310cbe048098f6ac88827ce (
plain) (
blame)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
# Notice: CONFIG_WIRELESS_EXTENSION and CONFIG_IEEE8021X_EAPOL are
# automatically enabled in Makefile if relevant options are chosen,
# prompting about them is unnecessary.
config_query CONFIG_NO_WPA "Build without WPA support?" n &&
if [[ $WPA_RELEASE == old ]]
then
if [[ $CONFIG_CTRL_IFACE == unix || $CONFIG_CTRL_IFACE == udp ]]
then
CONFIG_CTRL_IFACE=y &&
persistent_add CONFIG_CTRL_IFACE
fi &&
if [[ -z $CONFIG_DNET_PCAP ]] &&
[[ $CONFIG_L2_PACKET == pcap ]]
then
CONFIG_DNET_PCAP=y &&
persistent_add CONFIG_DNET_PCAP
fi &&
config_query CONFIG_CTRL_IFACE \
"Build external control interface?" \
y &&
config_query CONFIG_DNET_PCAP \
"Use libpcap/libdnet instead of native Linux packet socket \
interface?" \
n
else
config_query CONFIG_NO_WPA2 "Build without WPA2 support?" n &&
if [[ $CONFIG_CTRL_IFACE == y ]]
then
CONFIG_CTRL_IFACE=unix &&
persistent_add CONFIG_CTRL_IFACE
fi &&
if [[ -z $CONFIG_L2_PACKET ]] &&
[[ $CONFIG_DNET_PCAP == y ]]
then
CONFIG_L2_PACKET=pcap &&
persistent_add CONFIG_L2_PACKET
fi &&
config_query_list CONFIG_CTRL_IFACE \
"Select control interface to build (n is none):" \
unix \
udp \
n &&
config_query_list CONFIG_L2_PACKET \
"Select layer2 packet processing implementation:" \
linux \
pcap
fi &&
config_query CONFIG_NO_STDOUT_DEBUG "Remove debugging code?" n &&
message "${MESSAGE_COLOR}Hardware driver options:${DEFAULT_COLOR}" &&
#
## Commented-out options require external sources to work, WIP.
#
config_query CONFIG_DRIVER_HOSTAP "Host AP (Prism2/2.5/3) support?" y &&
#config_query CONFIG_DRIVER_HERMES "Agere support?" n &&
#config_query CONFIG_DRIVER_MADWIFI "MADWIFI support?" n &&
config_query CONFIG_DRIVER_ATMEL "Atmel AT76C5XXx support?" y &&
config_query CONFIG_DRIVER_WEXT "Generic Wireless Extensions support?" y &&
config_query CONFIG_DRIVER_NDISWRAPPER "NdisWrapper support?" n &&
#config_query CONFIG_DRIVER_BROADCOM "Broadcom IEEE 802.11a/g support?" n &&
config_query CONFIG_DRIVER_IPW "Intel IPW2100/IPW2200 support?" n &&
config_query CONFIG_DRIVER_WIRED "Wired Ethernet support?" y &&
message "${MESSAGE_COLOR}Authentication method options:${DEFAULT_COLOR}" &&
config_query CONFIG_EAP_MD5 "EAP-MD5-Challenge support?" y &&
config_query CONFIG_EAP_MSCHAPV2 "EAP-MSCHAPv2 support?" y &&
config_query CONFIG_EAP_TLS "EAP-TLS support?" y &&
config_query CONFIG_EAP_PEAP "EAP-PEAP support?" y &&
config_query CONFIG_EAP_TTLS "EAP-TTLS support?" y &&
config_query CONFIG_EAP_GTC "EAP-GTC support?" y &&
config_query CONFIG_EAP_OTP "EAP-OTC support?" y &&
config_query CONFIG_EAP_SIM "EAP-SIM (GSM) support?" n &&
config_query CONFIG_EAP_AKA "EAP-AKA (UMTS) support?" n &&
if [[ $WPA_RELEASE != old ]]
then
message "${MESSAGE_COLOR}Notice: EAP-PSK and EAP-SAKE" \
"options are mutually exclusive.$DEFAULT_COLOR"
fi &&
config_query CONFIG_EAP_PSK "EAP-PSK support?" n &&
config_query CONFIG_EAP_PAX "EAP-PAX support?" n &&
config_query CONFIG_EAP_LEAP "LEAP support?" y &&
if [[ $WPA_RELEASE != old ]]
then
if [[ $CONFIG_EAP_PSK != y ]]
then
config_query CONFIG_EAP_SAKE "EAP-SAKE support?" n
else
message "${MESSAGE_COLOR}EAP-PSK was selected, will" \
"not query about EAP-SAKE.$DEFAULT_COLOR"
fi &&
config_query CONFIG_EAP_GPSK "EAP-GPSK support?" n &&
if [[ $CONFIG_EAP_GPSK == y ]]
then
config_query CONFIG_EAP_GPSK_SHA256 \
"Build SHA256 cipher suite for EAP-GPSK?" \
n
fi
fi &&
if [[ $CONFIG_EAP_TLS == y ||
$CONFIG_EAP_PEAP == y ||
$CONFIG_EAP_TTLS == y ]]
then
message "${MESSAGE_COLOR}Crypto options:${DEFAULT_COLOR}" &&
if [[ $WPA_RELEASE == old ]]
then
CONFIG_TLS=openssl &&
persistent_add CONFIG_TLS
else
config_query_list CONFIG_TLS \
"Select TLS library to use:" \
openssl \
gnutls \
internal
fi &&
config_query CONFIG_PKCS12 "Enable PKCS#12 certificate support?" y &&
config_query CONFIG_SMARTCARD "Enable smartcard support?" y
fi &&
message "${MESSAGE_COLOR}An example config file will be installed" \
"in /etc if you choose to install\nthe init script." \
"${DEFAULT_COLOR}" &&
config_query WPA_CONFIG_FILE \
"Install config file even without the init script?" \
n
|