IBSS RSN: Do not start 4-way handshake unless RSN is enabled
This commit is contained in:
parent
1df492df34
commit
df4bc5091e
1 changed files with 7 additions and 0 deletions
|
@ -1568,8 +1568,15 @@ wpa_supplicant_event_ft_response(struct wpa_supplicant *wpa_s,
|
||||||
static void wpa_supplicant_event_ibss_rsn_start(struct wpa_supplicant *wpa_s,
|
static void wpa_supplicant_event_ibss_rsn_start(struct wpa_supplicant *wpa_s,
|
||||||
union wpa_event_data *data)
|
union wpa_event_data *data)
|
||||||
{
|
{
|
||||||
|
struct wpa_ssid *ssid;
|
||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
return;
|
return;
|
||||||
|
ssid = wpa_s->current_ssid;
|
||||||
|
if (ssid == NULL)
|
||||||
|
return;
|
||||||
|
if (ssid->mode != WPAS_MODE_IBSS || !wpa_key_mgmt_wpa(ssid->key_mgmt))
|
||||||
|
return;
|
||||||
|
|
||||||
ibss_rsn_start(wpa_s->ibss_rsn, data->ibss_rsn_start.peer);
|
ibss_rsn_start(wpa_s->ibss_rsn, data->ibss_rsn_start.peer);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IBSS_RSN */
|
#endif /* CONFIG_IBSS_RSN */
|
||||||
|
|
Loading…
Reference in a new issue