mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
system/configure_network.cpp: try to support open wlan, if psk empty
Origin commit data
------------------
Branch: ni/coolstream
Commit: d5fa59a640
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-11-03 (Tue, 03 Nov 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -291,10 +291,14 @@ void CNetworkConfig::saveWpaConfig()
|
||||
out << "ctrl_interface=/var/run/wpa_supplicant\n";
|
||||
out << "network={\n";
|
||||
out << " ssid=\"" + ssid + "\"\n";
|
||||
out << " psk=\"" + key + "\"\n";;
|
||||
out << " proto=WPA WPA2\n";
|
||||
out << " key_mgmt=WPA-PSK\n";
|
||||
out << " pairwise=CCMP TKIP\n";
|
||||
out << " group=CCMP TKIP\n";
|
||||
if (!key.empty()) {
|
||||
out << " psk=\"" + key + "\"\n";;
|
||||
out << " proto=WPA WPA2\n";
|
||||
out << " key_mgmt=WPA-PSK\n";
|
||||
out << " pairwise=CCMP TKIP\n";
|
||||
out << " group=CCMP TKIP\n";
|
||||
} else {
|
||||
out << " key_mgmt=NONE\n";
|
||||
}
|
||||
out << "}\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user