|
@@ -7208,7 +7208,11 @@ function enable_wifi_hotspot {
|
7208
|
7208
|
echo '## Set cipher suites (encryption algorithms) ##' >> /etc/hostapd/hostapd.conf
|
7209
|
7209
|
echo '## TKIP = Temporal Key Integrity Protocol' >> /etc/hostapd/hostapd.conf
|
7210
|
7210
|
echo '## CCMP = AES in Counter mode with CBC-MAC' >> /etc/hostapd/hostapd.conf
|
7211
|
|
- echo 'wpa_pairwise=TKIP' >> /etc/hostapd/hostapd.conf
|
|
7211
|
+ if [ ! $WIFI_PASSWORD ]; then
|
|
7212
|
+ echo 'wpa_pairwise=NONE' >> /etc/hostapd/hostapd.conf
|
|
7213
|
+ else
|
|
7214
|
+ echo 'wpa_pairwise=TKIP' >> /etc/hostapd/hostapd.conf
|
|
7215
|
+ fi
|
7212
|
7216
|
echo '#rsn_pairwise=CCMP' >> /etc/hostapd/hostapd.conf
|
7213
|
7217
|
echo '#' >> /etc/hostapd/hostapd.conf
|
7214
|
7218
|
echo '## Shared Key Authentication ##' >> /etc/hostapd/hostapd.conf
|