Change-Id: Idfed20c90265d4e3df4cd2011a46ff52a72f2872
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
dbus_bool_t g_supplicant_network_is_pmf_required(GSupplicantNetwork *network)
{
- if (!network)
- return 0;
+ if (!network || !network->best_bss)
+ return FALSE;
return network->best_bss->pmf_required;
}
/*
* Do not change best BSS if we are connected.
*/
- if (network->interface->state == G_SUPPLICANT_STATE_COMPLETED)
+ if (network->interface->state == G_SUPPLICANT_STATE_COMPLETED && network->best_bss)
return;
network->signal = best_bss->signal;