network: Build fixes
The WPA key size was missing, and we were comparing strings by pointer address.
This commit is contained in:
parent
03bacf6f2c
commit
e397a8ab4e
1 changed files with 2 additions and 2 deletions
|
@ -857,7 +857,7 @@ generate_ssid_for_hotspot (NetDeviceWifi *device_wifi)
|
|||
return ssid_array;
|
||||
}
|
||||
|
||||
#define WPA_PASSKEY_SIZE
|
||||
#define WPA_PASSKEY_SIZE 8
|
||||
static void
|
||||
set_wpa_key (NMSettingWirelessSecurity *sws)
|
||||
{
|
||||
|
@ -1073,7 +1073,7 @@ start_shared_connection (NetDeviceWifi *device_wifi)
|
|||
|
||||
sws = (NMSettingWirelessSecurity*) nm_setting_wireless_security_new ();
|
||||
|
||||
if (mode == NM_SETTING_WIRELESS_MODE_AP) {
|
||||
if (g_strcmp0 (mode, NM_SETTING_WIRELESS_MODE_AP) == 0) {
|
||||
if (caps & NM_WIFI_DEVICE_CAP_RSN) {
|
||||
set_wpa_key (sws);
|
||||
nm_setting_wireless_security_add_proto (sws, "rsn");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue